This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@-moz-document domain("reddit.com") { | |
.side { | |
opacity: 0 !important; /* set to 1 (instead of 0) to make sure the sidebar is always visible */ | |
position: absolute !important; /* set to 'inline' (instead of 'absolute') to make sure the sidebar is always visible */ | |
width: 0px !important; /* set to 300 (instead of 0) to make sure the sidebar is always visible */ | |
overflow: hidden !important; /* set to visible (instead of 'hidden') to make sure the sidebar is always visible */ | |
display: none !important; | |
} | |
#header span.pagename, /* remove page name e.g. 'Gaming' */ | |
/*#sr-header-area, /* bar that contains subreddit links */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
tmux lsb | head -n1 | cut -d":" -f3 | sed "s/^ \"//" | sed "s/\"\n$//" | xclip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
password=$(echo -n $@ | sha1sum | sed 's/ -$//') | |
first_five=$(echo -n $password | cut -c 1-5) | |
all_the_rest=$(echo -n $password | cut -c 6-) | |
curl -s https://api.pwnedpasswords.com/range/$first_five > /tmp/pwned | |
retrieve=$(cat /tmp/pwned | grep -i $all_the_rest | cut -d':' -f2) | |
if [ -n $retrieve ]; then | |
echo "Password is safe!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
if [ $(cat /tmp/test) == 1 ]; then | |
echo "Yes!" | |
echo 0 > /tmp/test | |
else | |
echo "No!" | |
echo 1 > /tmp/test | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
used=$(free -m | grep Mem | awk '{print $3}') | |
avail=$(free -m | grep Mem | awk '{print $2}') | |
setenta=$((avail*70/100)) | |
ochenta=$((avail*80/100)) | |
noventa=$((avail*90/100)) | |
porcentaje=$(free -b | grep Mem | awk '{print $3/$2 * 100}' | awk -F . '{print $1}') | |
displaymbs() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#################### | |
# Pre-config stuff # | |
#################### | |
pkill herbstclient | |
hc() { | |
herbstclient "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#################### | |
# Pre-config stuff # | |
#################### | |
pkill herbstclient | |
hc() { | |
herbstclient "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import System.IO | |
import System.Exit | |
import XMonad | |
import qualified Data.Map as M | |
import qualified XMonad.StackSet as W | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.ManageDocks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Terminate already running bar instances | |
killall -q polybar | |
# Wait until the processes have been shut down | |
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done | |
# Launch Polybar, using default config location ~/.config/polybar/config | |
polybar -r onebar & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;========================================================== | |
; | |
; | |
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ | |
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ | |
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ | |
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ | |
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ | |
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ | |
; |
OlderNewer