Skip to content

Instantly share code, notes, and snippets.

View cirrusUK's full-sized avatar
💭
Dunroamin, Duncarin, Dunlivin.

cirrus cirrusUK

💭
Dunroamin, Duncarin, Dunlivin.
View GitHub Profile
@cirrusUK
cirrusUK / pac.sh
Created March 11, 2014 20:48
shell script to show terminal colours, based on the arcade game pacman
#!/bin/sh
# ANSI Color -- use these variables to easily have different color
# and format output. Make sure to output the reset sequence after
# colors (f = foreground, b = background), and use the 'off'
# feature for anything you turn on.
initializeANSI()
{
esc=""
@cirrusUK
cirrusUK / rofi-search
Created November 23, 2021 00:22
Search teh web with Rofi
@cirrusUK
cirrusUK / rofi-streams.sh
Last active November 19, 2021 16:22
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
# ░▓▓▓▓▓▓▓▓▓▓
# ░░░░░░░░░░
#
# -- windows & pane creation ---------------------------------------------------
# new window retains current path, possible values are:
# - true
# - false (default)
tmux_conf_new_window_retain_current_path=false
# new pane retains current path, possible values are:
# - true (default)
# - false
#!/bin/bash
################################################################
# rf
# open files, cd into directories and stuff
# not the most intuitively written bash script but it werks hehe
# made by theo
################################################################
#!/usr/bin/env bash
set -eu
declare -A T=(
[red]=$'\e[0;31m' [green]=$'\e[1;32m' [orange]=$'\e[1;33m'
[lightblue]=$'\e[0;34m' [purple]=$'\e[0;35m' [cyan]=$'\e[0;36m'
[lightgray]=$'\e[0;37m' [darkgray]=$'\e[1;30em'
[lightred]=$'\e[1;31m' [lightgreen]=$'\e[0;32m'
[yellow]=$'\e[0;49;93m' [blue]=$'\e[1;34m'
@cirrusUK
cirrusUK / documentaries.txt
Last active July 20, 2021 13:13
use fzf to list and play documentaries with mpv https://i.imgur.com/BuBwEFY.png
https://www.beyondminds.org/archives/files/Documentaries/- IN-SHADOW - A Modern Odyssey - Animated Short Film.mp4
https://www.beyondminds.org/archives/files/Documentaries/10 Legendary Cities Proven Real-PAGWl0fw_4Q.mp4
https://www.beyondminds.org/archives/files/Documentaries/10 Suspected Conspiracy Theories That Oddly Turned out to Be True.mp4
https://www.beyondminds.org/archives/files/Documentaries/Above Majestic HDRip.mp4
https://www.beyondminds.org/archives/files/Documentaries/Agenda 21, The Plan To Kill You - by David Icke.mp4
https://www.beyondminds.org/archives/files/Documentaries/Alien Contact - Outer Space.mp4
https://www.beyondminds.org/archives/files/Documentaries/Alien Megastructure Bigger Than Jupiter Detected at the Cygnus Constellation-ebMD3W5W8HY.mp4
https://www.beyondminds.org/archives/files/Documentaries/Aliens Genetically Created Us - Overwhelming Evidence-bOheFLpfmck.mp4
https://www.beyondminds.org/archives/files/Documentaries/All Is Self (Documentary).mp4
https://www.beyondminds.org/archiv
<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 / hackersays.sh
Last active July 6, 2021 16:50
Since ruby 3.0.0 teh hackersays gem has failed to work, so i cobbled this together, show hackersay.com quotes in dunst/libnotify desktop notifications.
#!/bin/bash
#export DISPLAY=":0"
export XDG_RUNTIME_DIR=/run/user/$(id -u)
#export XAUTHORITY=/home/cirrus/.Xauthority
icon="~/.icons/ui-icons_blue.png"
BOOT=$( wget hackersays.com -O - 2>/dev/null | sed -e '/<span>/b' -e d | head -n1 |cut -c7- | grep -Po '.*(?=.......$)' && wget hackersays.com -O - 2>/dev/null | sed -e '/<cite>/b' -e d | head -n1 |cut -c7- | grep -Po '.*(?=.......$)'
)
dunstify -i "$icon" -r 100 "Hackersays" "$BOOT"
exit