Skip to content

Instantly share code, notes, and snippets.

@Igglybuff
Igglybuff / urlpinch.pl
Created March 14, 2015 20:35
url-shortener
#!/usr/bin/perl -w
use strict;
use WWW::Shorten 'TinyURL';
my %DATA = (
name => 'urlpinch',
author => 'Igglybuff',
version => '0.0.1-alpha',
license => 'GPL3',
@Igglybuff
Igglybuff / imgscrot.py
Last active August 29, 2015 14:17
imgscrot.py
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.
@Igglybuff
Igglybuff / disk.sh
Created July 30, 2015 16:50
a few i3blocks scripts
#!/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"
@Igglybuff
Igglybuff / xig.js
Created July 30, 2015 16:52
obligatory xigglyxuff generator in js
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";
@Igglybuff
Igglybuff / .i3config
Created July 30, 2015 16:58
i3 config file
# 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 &
@Igglybuff
Igglybuff / vin-thumbs
Created December 24, 2015 22:53
vinetto + Thumbs.db image extractor for forensics
#!/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
@Igglybuff
Igglybuff / config
Created January 3, 2016 14:30
newsbeuter config
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
@Igglybuff
Igglybuff / asterix
Created January 6, 2016 19:57
Exercising my brain by printing things on the screen.
#!/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
@Igglybuff
Igglybuff / .i3blocks.conf
Created July 30, 2015 16:54
config file for i3blocks
# 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
@Igglybuff
Igglybuff / match-releases.sh
Last active December 20, 2018 12:10
A very scrappy (and probably brittle) script for generating a "Match Releases" expression for autodl-irssi from dvdsreleasedates.com. Requires Lynx.
#!/bin/bash
#
# Depends on Lynx:
#
# $ apt-get -y install lynx
#
URL="https://www.dvdsreleasedates.com/"