Skip to content

Instantly share code, notes, and snippets.

Avatar

Steven Saus uriel1998

View GitHub Profile
@uriel1998
uriel1998 / toodt.sh
Created Apr 25, 2014
A quick shell script to use pandoc to convert markdown to libreoffice and open it.
View toodt.sh
#!/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 Feb 13, 2014
Background manager, setter, tiler, mirrorer, etc - using mostly feh and imagemagick
View newwall.sh
#!/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 Oct 11, 2013
Present any network "logon page" with network connect.
View inet_test.sh
#!/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 Jul 17, 2013
Simple e-mail autoresponder which doesn't send e-mail to an address more than once.
View emailresponder.sh
#!/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
View netspeed.sh
#!/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 Dec 18, 2015
Alliteration Ink's Anti-Discrimination and Sexual Harassment Policy
View respectpolicy.html
<!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 Jun 4, 2013
CSS comparison of default and mobile for AlliterationInk.com
View default.css
*
{
@import url(http://fonts.googleapis.com/css?family=Belleza);
margin: 0px;
padding: 0px;
}
body
{
background-color: #fff;
@uriel1998
uriel1998 / Instructions.md
Last active Dec 16, 2015
Reference for reducing junk mail and unsolicited phone calls.
View Instructions.md

#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 Dec 14, 2015
mmcirc.pl - For use with MMC IRC chat bot. It's largely for me (steven_saus), so YMMV.
View mmcirc.pl
#!/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';
@uriel1998
uriel1998 / colorize-0.0.3.pl
Created Feb 25, 2013
colorize perl script for xchat. Lets you colorize nicks that are in the middle of messages. No longer online, so I snagged this copy from archive.org before it went away completely.
View colorize-0.0.3.pl
#!/usr/bin/perl
# This script was no no longer online, so I snagged it from archive.org at
# http://web.archive.org/web/20051216235430/http://ant.home.comcast.net/colorize/colorize-pod.html
#
# colorize-0.0.3.pl - Colorize messages, nicks in message text, or both.
#
# Usage: see the POD at the end of this file or type '/colorize ?' in Xchat.
#
# To customize the brackets that surround the sending nick, e.g. <nick>,