Skip to content

Instantly share code, notes, and snippets.

cirrus cirrusUK

Block or report user

Report or block cirrusUK

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cirrusUK
cirrusUK / rofi-streams.sh
Last active May 21, 2019
needs rofi, streamlink,mpv, acestream optional
View rofi-streams.sh
#!/usr/bin/env bash
# author: unknown
#
# ▓▓▓▓▓▓▓▓▓▓
# ░▓ author ▓ cirrus <cirrus@archlinux.info>
# ░▓ code ▓ https://gist.github.com/cirrusUK
# ░▓ mirror ▓ http://cirrus.turtil.net
# ░▓▓▓▓▓▓▓▓▓▓
# ░░░░░░░░░░
#
@cirrusUK
cirrusUK / MPVNP
Last active Dec 13, 2018
MPV now playing shell script [requires ponymix
View MPVNP
#!/bin/bash
export DISPLAY=":0.0"
MPVNP=$(ponymix list | awk 'NR==16' | cut -c14- |sed 's/.\{6\}$//' )
notify-send -h string:bgcolor:#191919 -h string:fgcolor:#f2810d -i ~/.icons/mpv.png "📺 MPV Now Playing " "$MPVNP"
View cirrus.html
<center>
<body background="bg.gif" >
<pre> <FONT COLOR="17885C">
<title>A Webpage</title> <center> </font><FONT COLOR="#c22e13">Powered by Archlinux Arm + Raspberry Pi</font>
<pre></FONT></pre>
<a href='https://alpha.app.net/cirrusuk' class='adn-button' target='_blank' data-type='follow' data-width='277' data-height='27' data-user-id='@cirrusuk' data-show-username='1' rel='me'><FONT COLOR="C4BE24">Follow me on App.net</FONT> </a><script>(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src='//d2zh9g63fcvyrq.cloudfront.net/adn.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'adn-button-js'));</script>
https://geo.itunes.apple.com/us/album/perfect/id1193701079?i=1193701400&app=music
<iframe src="http://tools.applemusic.com/embed/v1/song/1193701400?country=us" height="110px" width="100%" frameborder="0"></iframe>
@cirrusUK
cirrusUK / tweet.sh
Created Aug 25, 2018
twitter app written in bash
View tweet.sh
#!/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
View .profile
# ┏━┓┏━┓┏━┓┏━╸╻╻ ┏━╸
# ┣━┛┣┳┛┃ ┃┣╸ ┃┃ ┣╸
# .╹ ╹┗╸┗━┛╹ ╹┗━╸┗━╸
export FT2_SUBPIXEL_HINTING=1
export BROWSER=firefox
export CLIBROWSER=w3m
export BROWSERCLI=w3m
export PLAYER=mpv
export MUSICER=ocp-x11
@cirrusUK
cirrusUK / taurus
Created Jan 28, 2018
# install AUR packages with cower
View taurus
#!/bin/sh
# install AUR packages with cower
cd $HOME/build/aur && cower -d "$1"
builddir="$_"
cd "$builddir" && ${EDITOR:-nano} PKGBUILD
makepkg -sirc && cd - &>/dev/null
read -p "Remove Build directory? [Y/n]? " yn
View rofi-bangs.sh
#!/usr/bin/env bash
# author: unknown
#
# ▓▓▓▓▓▓▓▓▓▓
# ░▓ author ▓ cirrus <cirrus@archlinux.info>
# ░▓ code ▓ https://gist.github.com/cirrusUK
# ░▓ mirror ▓ http://cirrus.turtil.net
# ░▓▓▓▓▓▓▓▓▓▓
# ░░░░░░░░░░
#
@cirrusUK
cirrusUK / 20-mirrorupgrade.hook
Last active May 31, 2018
/etc/pacman.d/hooks
View 20-mirrorupgrade.hook
[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 / bashtube.sh
Last active Jul 10, 2017
shell scripts for watching playlists / sports channels
View bashtube.sh
#!/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"
View config
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
You can’t perform that action at this time.