I hereby claim:
- I am matthiassturm on github.
- I am msturm (https://keybase.io/msturm) on keybase.
- I have a public key ASDY-RKOa_QJp8OvqQMpG_c0YFfRm_0yK521yITBovU7nQo
To claim this, I am signing this object:
# what this config does: | |
# 1. beautify the status bar | |
# 2. rebind prefix to C-a (prevent breaking your fingers) | |
# 3. rebind window swapping to cursor keys | |
# 4. bind C-r to reload config | |
# 5. disable mouse scroll, but bind C-m/C-M to control it | |
#set -g utf8 on | |
#set -g default-terminal "screen-256color" | |
set -g default-terminal "xterm-256color" |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
function remac { | |
sudo /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -z | |
sudo ifconfig en0 ether $(openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//') | |
sudo networksetup -detectnewhardware | |
echo $(ifconfig en0 | grep ether) | |
} |
04fbae81d870a955913f48dcc71a3a9d0c183e53ffa97b0469ef5d3834d3bc8a13779c8c6421af3670a8e93fc840489890933658fe1dcd06758bf92d5c52fae007; indiagator |
#!/bin/bash | |
# before running this script, do: | |
# brew install imagemagick jpegoptim | |
mkdir output | |
for f in *.jpg; do | |
convert -resize '300x300^' -gravity center -crop 300x300+0+0 ./"$f" ./output/"$f" | |
done |
/* http://www.quora.com/Web-Development/What-are-the-most-interesting-HTML-JS-DOM-CSS-hacks-that-most-web-developers-dont-know-about */ | |
* { background-color: rgba(255,0,0,.2); } | |
* * { background-color: rgba(0,255,0,.2); } | |
* * * { background-color: rgba(0,0,255,.2); } | |
* * * * { background-color: rgba(255,0,255,.2); } | |
* * * * * { background-color: rgba(0,255,255,.2); } | |
* * * * * * { background-color: rgba(255,255,0,.2); } |
<?php | |
function thumb_create($p_photo_file, $p_thumb_file, $p_max_size, $p_quality=60) | |
{ | |
$pic = @imagecreatefromjpeg($p_photo_file); | |
if ($pic) | |
{ | |
$thumb = @imagecreatetruecolor($p_max_size, $p_max_size) or die ("Can't create Image!"); | |
$width = imagesx($pic); |
#!/bin/bash | |
e=1405195200;while [[ $(date +%Y) -ne $e ]];do figlet $(($e-$(date +%s)));sleep 1;clear;done;figlet $e |
#!/bin/bash | |
for f in *.flv; do | |
avconv -i "$f" -c:a aac -strict -2 -b:a 128k -c:v libx264 -profile:v baseline ${f%%.flv}.mp4; | |
done |