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
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
setxkbmap gb
BROWSER=firefox
EDITOR=nano
if [ -d /etc/X11/xinit/xinitrc.d ]; then
@cirrusUK
cirrusUK / weechat
Last active April 27, 2024 06:32
my weechat configs
/server add Dalnet irc.dal.net/6697
/set irc.server.Dalnet.autoconnect on
/set irc.server.Dalnet.autojoin "#Scotland,#soccer,#cafechat,#ALLNITECAFE,#androidirc,#apple,#bsd,#linux"
/set irc.server.Dalnet.username "cirrus"
/server add geekshed irc.geekshed.net/6667
/server del freenode
/mouse enable|disable|toggle [<delay>]
1.00KiB ca-certificates
1.00KiB dnssec-anchors
1.00KiB lib32-mesa-libgl
1.00KiB mozilla-common
1.00KiB pulseaudio-alsa
1.00KiB xorg-server-utils
1.00KiB xorg-utils
2.00KiB pambase
4.00KiB ix
4.00KiB xorg-font-utils
a52dec
aalib
acl
acpid
adwaita-icon-theme
alsa-firmware
alsa-lib
alsa-oss
alsa-plugins
alsa-utils
background no
out_to_console yes
out_to_x no
update_interval 1.0
total_run_times 0
use_spacer none
default_color 497BF7
override_utf8_locale yes
use_xft yes
TEXT
#!/bin/bash
TYPE=$1
if [ "$1" != "rx" -a "$1" != "tx" ]; then
echo "Invalid argument: $1" 1>&2
echo "Must be 'tx' or 'rx'" 1>&2
echo "Usage: $0 (rx|tx)" 1>&2
exit 1
fi
#put this in ~/.bashrc or ~/.zshrc
## SEP SEARCH FUNCTION ##
sepSearch() {
echo -n -e "\n============================================\n\tWelcome to WikiPedia Search"; echo ""; i=1 ; for line in $(lynx --dump "http://plato.stanford.edu/search/searcher.py?query=$1" | grep http://plato.stanford.edu | cut -c7-); do echo $i $line; lines[$i]=$line ; i=$(($i+1)); done ; echo -n -e "\n============================================\n\tPlease select the link to open - "; read answer; w3m ${lines[$answer]}
}
## WIKIPEDIA SEARCH FUNCTION ##
wikipediaSearch() {
@cirrusUK
cirrusUK / .zshrc
Last active August 29, 2015 14:13
[[ $- = *i* ]] || return
#140731-001982,
export \
BROWSER=firefox \
EDITOR=nano \
#toilet -f mono12 --gay --w 100 Arch
alsi -c1=red -c2=blue -t red
fortune | ponysay
#command cowsay -f tux $(fortune all)
notes for video: http://www.youtube.com/watch?v=6jC7qgdlf4E
1. figure out which drive/partition you want to auto mount
sudo fdisk -l
2. find the uuid/type
sudo blkid
3. edit fstab
sudo nano /etc/fstab
example:
UUID=8A11-521D /media/MYUSBSTICK vfat defaults 0 0
UUID=E8D6B339D6B3073A /media/NTFShare ntfs defaults 0 0
#!/bin/bash
########################################################################
#### Script Name: inxi
#### version: 1.8.11
#### Date: June 26 2012
#### Patch Number: 00
########################################################################
#### SPECIAL THANKS
########################################################################
#### Special thanks to all those in #lsc and #smxi for their tireless