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/python3 | |
import urllib.request | |
import urllib.parse | |
import re | |
import sys | |
inargs = sys.argv | |
inargs.remove(inargs[0]) | |
inargs = ' '.join(inargs) |
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/perl -w | |
use strict; | |
use WWW::Shorten 'TinyURL'; | |
my %DATA = ( | |
name => 'urlpinch', | |
author => 'Igglybuff', | |
version => '0.0.1-alpha', | |
license => 'GPL3', |
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 base65 | |
import json | |
import requests | |
import sys | |
import os | |
from base64 import b64encode | |
# cheeky little script which uploads an image to imgur.com then prints the direct link to the image | |
# add your imgur api key to your environment variables, or just throw it straight into the code. |
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 | |
# check how much free disk space remains on primary drive | |
kbs=$(df -k /tmp | tail -1 | awk '{print $4}') | |
echo "$(( $kbs / 1024 / 1024 ))GB" |
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
var xiglist = [ "w", "j", "p", "g", "l", "n", "m", "b", "z", "r", "t" ]; | |
var c1 = xiglist[Math.floor(Math.random() * xiglist.length)]; | |
var c2 = xiglist[Math.floor(Math.random() * xiglist.length)]; | |
while (c1 == c2) { | |
c1 = xiglist[Math.floor(Math.random() * xiglist.length)]; | |
} | |
var xig = c1 + " i g g l y " + c2 + " u f f"; |
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
# i3blocks config file | |
# | |
# Please see man i3blocks for a complete reference! | |
# The man page is also hosted at http://vivien.github.io/i3blocks | |
# | |
# List of valid properties: | |
# | |
# align | |
# color | |
# command |
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
# autostart applications | |
# some of these probably shouldn't be in here | |
# i am a lazy whore | |
exec /home/wigglytuff/.screenlayout/default1.sh | |
exec xset -dpms | |
exec xset s noblank | |
exec xset s 0 0 | |
exec xset s off | |
exec xset r rate 200 25 | |
exec compton & |
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 | |
# | |
# finds all Windows thumbnail caches in the current directory | |
# and all subdirectories, then extracts the thumbnail images | |
# with vinetto to a directory. | |
# | |
# a little dirty, but it works. | |
file_list=() | |
while IFS= read -d $'\0' -r file ; do |
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
unbind-key j | |
unbind-key k | |
bind-key j down | |
bind-key k up | |
bind-key ^D pagedown | |
bind-key ^U pageup | |
color listfocus color98 color234 | |
#color listnormal color98 color234 |
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 | |
for i in {1..51}; do | |
j=$((51 - $i)) | |
printf %"$j"s | |
if [[ $i > 1 ]]; then | |
p=$(($i + $i)) | |
fi | |
printf %"$p"s | tr " " "*" | |
echo |
OlderNewer