Skip to content

Instantly share code, notes, and snippets.

View xero's full-sized avatar
💭
💾

xero harrison xero

💭
💾
View GitHub Profile
@xero
xero / autostart
Created June 13, 2014 17:36
herbstluftwm - autostart *wip
#!/bin/bash
#
# ██ ██ ██ ██ ████ ██
# ░██ ░██ ░██ ░██ ░██░ ░██
# ░██ █████ ██████░██ ██████ ██████ ░██ ██ ██ ██████ ██████
# ░██████ ██░░░██░░██░░█░██████ ██░░░░ ░░░██░ ░██░██ ░██░░░██░ ░░░██░
# ░██░░░██░███████ ░██ ░ ░██░░░██░░█████ ░██ ░██░██ ░██ ░██ ░██
# ░██ ░██░██░░░░ ░██ ░██ ░██ ░░░░░██ ░██ ░██░██ ░██ ░██ ░██
# ░██ ░██░░██████░███ ░██████ ██████ ░░██ ███░░██████ ░██ ░░██
# ░░ ░░ ░░░░░░ ░░░ ░░░░░ ░░░░░░ ░░ ░░░ ░░░░░░ ░░ ░░
@xero
xero / .stalonetrayrc
Created June 16, 2014 13:07
~/.stalonetrayrc
background "#101010"
decorations none
dockapp_mode none
fuzzy_edges 0
geometry 1x1+333 # position x:333 y:0
grow_gravity NW
icon_gravity NW
icon_size 16
log_level err
kludges force_icons_size
@xero
xero / monokai.html
Last active August 29, 2015 14:05
monokai color scheme hacking
<html>
<head>
<title>monokai color scheme hacking</title>
<style type="text/css">
body {
background: #272822;
color: #f8f8f2;
font-family: "Lucida Console", Monaco, monospace;
}
@xero
xero / preview-color.png
Last active August 29, 2015 14:07
placeholer
preview-color.png
@xero
xero / h9rbj
Created January 31, 2015 18:18
impressivewebs/HTML9-Responsive-Boilerstrap-js deobfuscated >> http://git.io/FdMF
var ꐓ = [
"<pre style='font-family: monospace; font-size: 50px;'>",
"write",
" OH HAI<br>",
" .\"\";._ _.---._ _.-\"\".<br>",
" /_.'_ '-' /`-` _ \\<br>",
" .' / `\\ \\ /` \\ '.<br>",
" .' / ; _ _ '-; \\ ;'.<br>",
" _.' ; / / \\ \\ / \\ ; '._;._<br>",
" .-'.--. | / | \\0|0/ \\ | '-.<br>",
Verifying that +xero is my blockchain ID. https://onename.com/xero
@xero
xero / .gitconfig
Created April 24, 2012 16:58
custom git log graph alias for .gitconfig
#fyi %x20 is a space.
[alias]
graph = log --graph --color --pretty=format:"%C(yellow)%H%C(green)%d%C(reset)%n%x20%cd%n%x20%cn%x20(%ce)%n%x20%s%n"
@xero
xero / dox.sh
Created August 30, 2012 19:40
working on automating my documentation generation. this script pulls out all the php files from a git repo, parses the names, and feeds them into doxphp and pipes that into doxphp2sphinx. which will make rst files from the inline phpdoc comments. the seco
#!/bin/sh
@echo "Making docs"
git ls-files | grep php | while read line; do filename=$(basename $line); newfile=docs/$filename; echo $newfile; doxphp
< $line | doxphp2sphinx > ${newfile/%.php/.rst}; done
@echo "deleting empty files"
rm -f $(find . -empty)
@xero
xero / git-logo-ascii.txt
Created September 4, 2012 20:17
GIT logo ascii art
xxx
xxx
xxxxxxxxxxxxx
xxxxxxxxxxxxx
xxx
xxx
xxxxxxxxxxxxx
xxxxxxxxxxxxx
@xero
xero / dbbackup.sh
Created January 17, 2013 20:05
this shell script will take an .sql backup file and install it to a given database. it will prompt you for username, password, database, and sql file. i set my default file location to ~/Downloads/ because that's where i always have my backups. edit as necessary.
#!/bin/sh
echo -e "\e[01;33m[username]\e[00m"
read user
echo -e "\e[01;33m[password]\e[00m"
read pass
echo -e "\e[01;33m[database]\e[00m"
read db
echo -e "\e[01;33m[sql file]\e[00m"
read file
mysql> mysql -u $user -p $pass $db < ~/Downloads/$file