Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Dunroamin, Duncarin, Dunlivin.

cirrus cirrusUK

💭
Dunroamin, Duncarin, Dunlivin.
View GitHub Profile
View rofi-search
View .tmux.conf.local
# -- 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
View rf
#!/bin/bash
################################################################
# rf
# open files, cd into directories and stuff
# not the most intuitively written bash script but it werks hehe
# made by theo
################################################################
View connected
#!/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 Jul 20, 2021
use fzf to list and play documentaries with mpv https://i.imgur.com/BuBwEFY.png
View documentaries.txt
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
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 / hackersays.sh
Last active Jul 6, 2021
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.
View hackersays.sh
#!/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
@cirrusUK
cirrusUK / feiler
Last active Jul 6, 2021
edited teiler to work with fzf
View feiler
#!/bin/bash
# Menus
promptDelay() {
printf "%s\n" "$@" | fzf --header="Delay:"
}
mainMenu () {
@cirrusUK
cirrusUK / snippet.toml
Last active Jun 19, 2021
pet : CLI Snippet Manager
View snippet.toml
[[snippets]]
description = "system info"
command = "inxi -F"
output = ""
[[snippets]]
description = "output random letters"
command = "head /dev/urandom | tr -dc a-z | cut -c4-8"
output = ""
@cirrusUK
cirrusUK / hud.sh
Created Jun 14, 2021
Heads Up Display showing realtime RAM & CPU usage in corner of VDU, using osd_cat.
View hud.sh
#!/bin/bash
export DISPLAY=":0"
export XDG_RUNTIME_DIR=/run/user/$(id -u)
while true; do free | grep Mem | awk '{print $3/$2 * 100.0}'; sleep 1; done | osd_cat --align right --pos bottom -o 50 --lines 1 --delay 2 -f '-*-envy code r-*-*-*-*-24-*-*-*-*-*-*-*' -c orange & while true; do top -b -n1 | grep "Cpu(s)" | awk '{print $2 + $4}'; sleep 1; done | osd_cat --align right --pos bottom --lines 1 --delay 2 -f '-*-envy code r-*-*-*-*-24-*-*-*-*-*-*-*' -o 20 -c orange