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
# Signal strength: | |
while x=1; do /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | grep agrCtlRSSI | awk '{print "Signal strength: "$2}' ; sleep 0.5; done | |
# BSSID | |
while x=1; do /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | grep BSSID; sleep 0.5; done | |
# Speed | |
ping www.google.se |
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 os | |
from xattr import xattr | |
from sys import argv, stderr | |
directory = './walker' | |
child_was_empty = None | |
last_depth = None | |
#from https://github.com/danthedeckie/display_colors/blob/master/display_colors.py |
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
/* utf.js - UTF-8 <=> UTF-16 convertion | |
* | |
* Copyright (C) 1999 Masanao Izumo <iz@onicos.co.jp> | |
* Version: 1.0 | |
* LastModified: Dec 25 1999 | |
* This library is free. You can redistribute it and/or modify it. | |
*/ | |
/* | |
* Interfaces: |
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/env python | |
""" | |
Copied from http://eventlet.net/doc/examples.html#echo-server | |
Simple server that listens on port 8014 and echos back every input to | |
the client. To try out the server, start it up by running this file. | |
""" | |
import eventlet |
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
/* | |
Safari and Chrome (os x) both handles webfonts badly when compared | |
with the Photoshop version of the same font. They are generally harder and rough. | |
Example: | |
http://www.dropmocks.com/mBnnKJ | |
Left: Web font in Safari, Right: Fixed web font | |
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
/*// ======================================================= | |
The Retro Affect Animation Exporter | |
Created: January 6th, 2010 | |
______________________________________________________________________________ | |
Authors: | |
Peter Jones | |
David Carrigg | |
The function getFrame(IO) is by: | |
jugenjury from ps-scripts.com |
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
find ./ -iname "*Demo-Master.mov" -exec ./ffmpeg -i {} -c:v libx264 -preset slower -b:v 2500k -b:a 196k -vf scale=-1:720 -pix_fmt yuv420p {}.ffmpeg.mp4 ";" -ls |
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
curl https://dl.dropboxusercontent.com/u/78509419/munin-html > /usr/share/munin/munin-html |
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
*, *:before, *:after { | |
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; | |
} |
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
// Source: https://github.com/h5bp/html5-boilerplate/blob/master/js/plugins.js | |
// Avoid `console` errors in browsers that lack a console. | |
(function() { | |
var method; | |
var noop = function () {}; | |
var methods = [ | |
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', | |
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', | |
'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd', |
OlderNewer