Skip to content

Instantly share code, notes, and snippets.

View isevcik's full-sized avatar

Ivan Sevcik isevcik

View GitHub Profile
# 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" \
// Add !important to lines missing it
\;(?<!important\;)$
[
// 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 },
{
"ignored_packages":
[
"Vintage"
],
"ensure_newline_at_eof_on_save": true,
"trim_trailing_white_space_on_save": true,
}
@isevcik
isevcik / sort-shoes.js
Last active April 7, 2016 17:36
Sort Shoes
// ==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==
jQuery('.members_download a:first-child').each(function(i, e)
{
var _iframe_dl = $('<iframe />')
.attr('src', e.href)
.hide()
.appendTo('body');
}
);