Skip to content

Instantly share code, notes, and snippets.

tabstop 8
indent_incr 4
pixel_per_char 6
pixel_per_line 15
frame 1
target_self 0
open_tab_blank 0
open_tab_dl_list 0
display_link 1
display_link_number 0
@cirrusUK
cirrusUK / bashtube.sh
Last active April 27, 2024 06:21
shell scripts for watching playlists / sports channels
#!/bin/bash
#This script requires mpv, pipe viewer (pv) & toilet.
red=`tput setaf 1`
green=`tput setaf 2`
yellow=`tput setaf 3`
printf %"s\n"
printf %"s\n"
tput setaf 3
blue=`tput setaf 4`
echo -e "\e[0;36mπŸ“Ί \e[0;31mπŸ“Ί \e[0;32mπŸ“Ί \e[0;33mπŸ“Ί \e[0;34mπŸ“Ί \e[0;39mπŸ“Ί \e[0;38mπŸ“Ί \e[0;35mπŸ“Ί \e[0;37mπŸ“Ί \e[0;33mπŸ“Ί \e[0;39mπŸ“Ί \e[0;33mπŸ“Ί \e[0;34mπŸ“Ί \e[0m\n"
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 27, 2024 06:20
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@cirrusUK
cirrusUK / 20-mirrorupgrade.hook
Last active April 27, 2024 06:20
/etc/pacman.d/hooks
[Trigger]
Operation = Upgrade
Type = Package
Target = pacman-mirrorlist
[Action]
Description = Updating pacman-mirrorlist with reflector and removing pacnew...
When = PostTransaction
Depends = reflector
Exec = /usr/bin/env sh -c "reflector --protocol https --country 'Ireland' --latest 30 --number 10 --sort rate --save /etc/pacman.d/mirrorlist; if [[ -f /etc/pacman.d/mirrorlist.pacnew ]]; then rm /etc/pacman.d/mirrorlist.pacnew; fi"
@cirrusUK
cirrusUK / rofi-bangs.sh
Last active April 27, 2024 06:20
rofi scripts
#!/usr/bin/env bash
# author: unknown
#
# β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“
# β–‘β–“ author β–“ cirrus <cirrus@archlinux.info>
# β–‘β–“ code β–“ https://gist.github.com/cirrusUK
# β–‘β–“ mirror β–“ http://cirrus.turtil.net
# β–‘β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“
# β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
#
# ┏━┓┏━┓┏━┓┏━╸╻╻ ┏━╸
# ┣━┛┣┳┛┃ ┃┣╸ ┃┃ ┣╸
# .β•Ή ╹┗╸┗━┛╹ ╹┗━╸┗━╸
export FT2_SUBPIXEL_HINTING=1
export BROWSER=firefox
export CLIBROWSER=w3m
export BROWSERCLI=w3m
export PLAYER=mpv
export MUSICER=ocp-x11
@cirrusUK
cirrusUK / tweet.sh
Created August 25, 2018 15:57
twitter app written in bash
#!/usr/bin/env bash
#
# Original: from https://github.com/ryuichiueda/TomoTool
# ===============================================================
# The MIT License
#
# Copyright (C) 2013-2015 Ryuichi Ueda
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@cirrusUK
cirrusUK / rofi-streams.sh
Last active April 27, 2024 06:19
needs rofi, streamlink,mpv, acestream optional
#!/usr/bin/env bash
# author: unknown
#
# β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“
# β–‘β–“ author β–“ cirrus <cirrus@archlinux.info>
# β–‘β–“ code β–“ https://gist.github.com/cirrusUK
# β–‘β–“ mirror β–“ http://cirrus.turtil.net
# β–‘β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“
# β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘
#
@cirrusUK
cirrusUK / tvplayer
Created March 3, 2020 19:44
shell script which uses streamlink's tvplayer plugin to peruse live UK TV channels. πŸ“Ί
#!/bin/sh
#This script requires streamlink,mpv, pipe viewer (pv) & toilet.
#Uses streamlink's tvplayer plugin to peruse UK TV channels.πŸ“Ί
# Some streams require login to https://tvplayer.com use flags below to authenticate
#streamlink -p mpv 'https://foo' best --tvplayer-email your@mail --tvplayer-password yourpasswd
# (1) prompt user, and read command line argument.πŸ“‘
red=`tput setaf 1`
green=`tput setaf 2`
yellow=`tput setaf 3`
printf %"s\n"
#!/bin/sh
##Usage
# Download URLs from file (named queue) with history.
# The file named queue must be in the same dir as this script.
# 1.create & add download urls to ~/tmp/queue
# 2.place this file in ~/tmp and chmod +x it.
# 3. ./execute file and wget all the things.
# License: LGPLv2