Skip to content

Instantly share code, notes, and snippets.

@tecbeast42
tecbeast42 / pixellock
Last active Apr 26, 2017
blurlock pixel style
View pixellock
#!/bin/bash
xwd -root | convert xwd:- -scale 16% -scale 625% /tmp/screenshotpixel.png
i3lock -i /tmp/screenshotpixel.png
View gist:8e8b539e3f914dc23916
[
{ "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 Jul 18, 2015
Test your php hash performance
View gist:59f9ae2bdab7aa949fed
//Prepare Hashed Data
$toHash = [];
for($i = 0; $i <= 10000;$i++) {
$toHash[] = str_random(1000);
}
$algos = hash_algos();
$results = [];
foreach($algos as $algo) {
You can’t perform that action at this time.