Skip to content

Instantly share code, notes, and snippets.

View uriel1998's full-sized avatar

Steven Saus uriel1998

View GitHub Profile
@uriel1998
uriel1998 / simple_covers.sh
Created April 26, 2014 23:45
A simple cover art downloader/extractor.
#!/bin/bash
# requires mpc to get song info
# requires glyr https://github.com/sahib/glyr to retrieve metadata
# requires eyeD3 http://eyed3.nicfit.net/ to extract image from mp3
# uses xseticon, wmctrl, and transset to make its little terminal window all pretty. Feel free to delete these lines.
snark=$(echo $WINDOWID)
xseticon -id $snark ~/.icons/Faenza-Like/iKamasutra.png
@uriel1998
uriel1998 / toodt.sh
Created April 25, 2014 01:50
A quick shell script to use pandoc to convert markdown to libreoffice and open it.
#!/bin/bash
# usage:
if [ -f "$1" ]; then
file=$(basename "$1")
filename=${file%.*}
pandoc "$1" -V geometry:margin=1in -s -o "$filename".odt
lowriter "$filename".odt
fi
@uriel1998
uriel1998 / newwall.sh
Created February 13, 2014 22:13
Background manager, setter, tiler, mirrorer, etc - using mostly feh and imagemagick
#!/bin/bash
# Quite a bit of inspiration from https://gist.github.com/brycied00d/1190483
# I have a lot of backgrounds, and a laptop. I use xinarama, so my DISPLAY is always 0:0
# But I wanted to have one randomizer that used feh (2.9.3 is the version I have) but actually showed resolution-appropriate images.
# I also wanted to be able to select the color - "tiled", "orange", "blue", "black", "simple", "wide" (hooray for symlinks) at times.
# Uses xrandr to see if there is an HDMI monitor attached (which in my use cases always means I am rocking two monitors
#sets background
@uriel1998
uriel1998 / inet_test.sh
Created October 11, 2013 21:32
Present any network "logon page" with network connect.
#!/bin/bash
# I have both the interface and external ip echoed to conky, so I had a version of this script already.
# This version is for autolaunch, so it presents a nice popup browser if it can't resolve its own IP
# address (such as for places that have public wifi and "click here".
# This version is designed to start up with the GUI interface, not as a system
# service! So if you use it with WICD, do not do it as an ifup command, otherwise
# you will have issues because it can't launch the browser.
@uriel1998
uriel1998 / emailresponder.sh
Created July 17, 2013 18:27
Simple e-mail autoresponder which doesn't send e-mail to an address more than once.
#!/bin/bash
/usr/bin/getmail -r /home/USER/.getmail/getmail.rc
mailpath=/home/USER/mailpath
tmpdir=$(mktemp -d)
echo "########################################################"
for i in $mailpath/new/*; do
if [ -f $i ]; then
#!/usr/bin/env bash
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2011-10-09
#
# _______________| netspeed : check download speed via command line.
#
# Usage: netspeed [tokyo, london, usw, use, east, west, URL]
# ^default U.S. west coast.
# [ -speed_KB/sec ]
# ^negation activates the Mbps converter.
#
@uriel1998
uriel1998 / respectpolicy.html
Last active December 18, 2015 02:29
Alliteration Ink's Anti-Discrimination and Sexual Harassment Policy
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- THIS POLICY IS NOW MAINTAINED AT https://github.com/uriel1998/ainkpolicies -->
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
@uriel1998
uriel1998 / default.css
Created June 4, 2013 23:19
CSS comparison of default and mobile for AlliterationInk.com
*
{
@import url(http://fonts.googleapis.com/css?family=Belleza);
margin: 0px;
padding: 0px;
}
body
{
background-color: #fff;
@uriel1998
uriel1998 / Instructions.md
Last active December 16, 2015 18:39
Reference for reducing junk mail and unsolicited phone calls.

#Instructions

##Junkmail Declaration

  1. Edit "your name" into the document.
  2. List prior residents
  3. Change permissions as you care to
  4. Enclose in "postage paid" return envelopes.

##Catalog Choice

@uriel1998
uriel1998 / mmcirc.pl
Last active December 14, 2015 04:09
mmcirc.pl - For use with MMC IRC chat bot. It's largely for me (steven_saus), so YMMV.
#!/usr/bin/perl
#
# mmcirc.pl - For use with MMC IRC chat bot.
# It's largely for me (steven_saus), so YMMV.
#
# Largely a collection of useful snippets from http://xchatdata.net/Scripting/PerlSnippets
#
my $version = '0.1';
my $name = 'MyMineCraftIRC helper';