may 14, 2014
• added help • fixed some issues for fonts with space in family name
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # This script dumps the content of a shared memory block | |
| # used by Linux/Cdorked.A into a file named httpd_cdorked_config.bin | |
| # when the machine is infected. | |
| # | |
| # Some of the data is encrypted. If your server is infected and you | |
| # would like to help, please send the httpd_cdorked_config.bin | |
| # to our lab for analysis. Thanks! |
| set nocompatible " Disable vi-compatibility | |
| set t_Co=256 | |
| colorscheme xoria256 | |
| set guifont=menlo\ for\ powerline:h16 | |
| set guioptions-=T " Removes top toolbar | |
| set guioptions-=r " Removes right hand scroll bar | |
| set go-=L " Removes left hand scroll bar | |
| set linespace=15 |
may 14, 2014
• added help • fixed some issues for fonts with space in family name
| var gulp = require('gulp'); | |
| var gutil = require('gulp-util'); | |
| var notify = require('gulp-notify'); | |
| var sass = require('gulp-ruby-sass'); | |
| var autoprefix = require('gulp-autoprefixer'); | |
| var minifyCSS = require('gulp-minify-css') | |
| var coffee = require('gulp-coffee'); | |
| var exec = require('child_process').exec; | |
| var sys = require('sys'); |
| DROP FUNCTION IF EXISTS MurmurHashV3; | |
| DELIMITER // | |
| CREATE FUNCTION `MurmurHashV3`(`keyx` varchar(65535), `seed` int unsigned) | |
| RETURNS int unsigned | |
| BEGIN | |
| DECLARE remainder,bytes,c1,c2,i, m1,m2 INT unsigned; | |
| DECLARE h1,k1,h1b BIGINT unsigned; | |
| SET remainder = LENGTH(keyx) & 3; | |
| SET bytes = LENGTH(keyx) - remainder; | |
| SET h1 = seed; |
| <?php | |
| function benchmark($name, $iterations, Closure $function) | |
| { | |
| echo "Starting Benchmark: {$name} (".number_format($iterations)." Iterations)\n"; | |
| $start = microtime(true); | |
| for ($i = 0; $i < $iterations; $i++) { | |
| $function(); | |
| } | |
| $elapsed = microtime(true) - $start; |
| # The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited | |
| # | |
| # Current known FCC address ranges: | |
| # https://news.ycombinator.com/item?id=7716915 | |
| # | |
| # Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft | |
| # | |
| # In your nginx.conf: | |
| location / { |
This is a bash script that will automatically turn your wifi off if you connect your computer to an ethernet connection and turn wifi back on when you unplug your ethernet cable/adapter. If you decide to turn wifi on for whatever reason, it will remember that choice. This was improvised from this mac hint to work with Yosemite, and without hard-coding the adapter names. It's supposed to support growl, but I didn't check that part. I did, however, add OSX notification center support. Feel free to fork and fix any issues you encounter.
Most the credit for these changes go to Dave Holland.
In the below keyboard shortcuts, I use the capital letters for reading clarity but this does not imply shift, if shift is needed, I will say shift. So ⌘ + D does not mean hold shift. ⌘ + Shift + D does of course.
| Function | Shortcut |
|---|---|
| New Tab | ⌘ + T |
| Close Tab or Window | ⌘ + W (same as many mac apps) |
| Go to Tab | ⌘ + Number Key (ie: ⌘2 is 2nd tab) |
| Go to Split Pane by Direction | ⌘ + Option + Arrow Key |