This file contains hidden or 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
jQuery('.members_download a:first-child').each(function(i, e) | |
{ | |
var _iframe_dl = $('<iframe />') | |
.attr('src', e.href) | |
.hide() | |
.appendTo('body'); | |
} | |
); |
This file contains hidden or 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
// ==UserScript== | |
// @name Sort Shoes | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match http://www.bata.cz/* | |
// @grant none | |
// @grant GM_registerMenuCommand | |
// ==/UserScript== |
This file contains hidden or 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
Show hidden characters
{ | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"ensure_newline_at_eof_on_save": true, | |
"trim_trailing_white_space_on_save": true, | |
} |
This file contains hidden or 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
[ | |
// swap the keybindings for paste and paste_and_indent | |
{ "keys": ["super+v"], "command": "paste_and_indent" }, | |
{ "keys": ["super+shift+v"], "command": "paste" }, | |
// skip cursor after autocompleted })" with TAB | |
{ "keys": ["tab"], "command": "move", "args": {"by": "characters", "forward": true}, "context": | |
[ | |
{ "key": "following_text", "operator": "regex_contains", "operand": "^[)'}\"\\]]", "match_all": true }, | |
{ "key": "auto_complete_visible", "operator": "equal", "operand": false }, |
This file contains hidden or 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
// Add !important to lines missing it | |
\;(?<!important\;)$ |
This file contains hidden or 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
# access logs grep filter out bots | |
alias ag='grep -v \ | |
-e SeznamBot \ | |
-e Googlebot \ | |
-e seoscanners \ | |
-e SiteExplorer \ | |
-e bingbot \ | |
-e heritrix \ | |
-e Baiduspider \ | |
-e "wp-cron" \ |
This file contains hidden or 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
<?php | |
if ($handle = opendir('..')) { | |
while (false !== ($entry = readdir($handle))) { | |
if ($entry != "." && $entry != "..") { | |
echo "<a href='http://$entry." . basename(dirname(dirname(__FILE__))) . "'>$entry</a><br>"; | |
} | |
} | |
closedir($handle); | |
} | |
?> |
This file contains hidden or 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
alias cdd="cd ~/Documents/swdev" | |
alias cds="cd src/Web/Website/" | |
# GIT | |
alias gdp="git checkout develop && git pull" | |
alias gmp="git checkout master && git pull" | |
alias gs="git status" | |
alias gd="git diff -w" | |
alias gdc="git diff -w --cached" | |
alias ga="git add . && git status" |
This file contains hidden or 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
#!/bin/bash | |
# Transfering OpenVPN profile (.ovpn file) with all required certificate files into mobile device | |
# like iPhone or Android can be sometimes tricky. This script will embed all these ca, crt and key files | |
# into specified .ovpn profile file. Then you can transfer just this .ovpn file into your device. | |
# Since the .ovpn file will contain the key, it should be kept confidental. | |
# | |
# Usage: ./ovpn-append-cert.sh --ca ca.crt --crt client.crt --key client.key client.ovpn | |
POSITIONAL=() |
This file contains hidden or 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
“Sometimes, the elegant implementation is just a function. Not a method. Not a class. Not a framework. Just a function.” | |
~ John Carmack |
OlderNewer