Skip to content

Instantly share code, notes, and snippets.

@tecbeast42
tecbeast42 / pixellock
Last active April 26, 2017 09:43
blurlock pixel style
#!/bin/bash
xwd -root | convert xwd:- -scale 16% -scale 625% /tmp/screenshotpixel.png
i3lock -i /tmp/screenshotpixel.png
@tecbeast42
tecbeast42 / gist:8e8b539e3f914dc23916
Created January 8, 2016 08:38
Sublime Keybindings
[
{ "keys": ["f12"], "command": "reindent", "args": {"single_line": false} },
{ "keys": ["ctrl+q"], "command": "valign" },
{ "keys": ["alt+y"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["alt+shift+y"], "command": "toggle_comment", "args": { "block": true } },
{ "keys": ["ctrl+shift+o"], "command": "prompt_open_folder" },
{ "keys": ["ctrl+shift+b"], "command": "toggle_side_bar" },
{ "keys": ["ctrl+shift+w"], "command": "close_all" },
{ "keys": ["ctrl+shift+t"], "command": "open_terminal" },
{ "keys": ["ctrl+shift+alt+t"], "command": "open_terminal_project_folder" },
@tecbeast42
tecbeast42 / gist:59f9ae2bdab7aa949fed
Created July 18, 2015 23:22
Test your php hash performance
//Prepare Hashed Data
$toHash = [];
for($i = 0; $i <= 10000;$i++) {
$toHash[] = str_random(1000);
}
$algos = hash_algos();
$results = [];
foreach($algos as $algo) {