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
#!/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
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
#!/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
#!/usr/bin/python3 | |
import urllib.request | |
import urllib.parse | |
import re | |
import sys | |
inargs = sys.argv | |
inargs.remove(inargs[0]) | |
inargs = ' '.join(inargs) |
NewerOlder