Skip to content

Instantly share code, notes, and snippets.

Drugoy

Block or report user

Report or block Drugoy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Drugoy
Drugoy / tmux.conf
Created Jan 18, 2017
Someone's tmux.conf
View tmux.conf
# tmux configuration file
# set terminal to "screen-256color"
set -g default-terminal "screen-256color"
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
bind r source-file ~/.tmux.conf
View Reddit Display Inline Images
// ==UserScript==
// @name Reddit Display Inline Images
// @namespace http://userscripts.org/users/432375
// @description Displays linked imgaes directly in the page
// @version 2.0
// @updateURL https://userscripts.org/scripts/source/124010.meta.js
// @include http://www.reddit.com/*
// @include https://www.reddit.com/*
// @author aditya
// @grant GM_xmlhttpRequest
@Drugoy
Drugoy / netStandDescription
Last active Aug 29, 2015
A small script to save describe networking stands
View netStandDescription
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SetWorkingDir, %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance, Force
If %0% ; The script was called with at least 1 argument, expectedly the user drag'n'dropped something onto the script.
Loop, %0%
input := %A_Index%
If FileExist(input) ; Not sure if this needed, since user can't drag'n'drop an unexisting file.
FileRead, input, %input%
@Drugoy
Drugoy / QuotesRe 4 ahk.coder
Last active Jan 1, 2016
Сгруппированные правила для QuotesRe секции ahk.coder
View QuotesRe 4 ahk.coder
; Quotation marks
0 `(")((?:[^"]*?(?:"")?)*?)("(?!"))` `\1=(2,#ff0000,0) \2=(3,#00ff00,0) \3=(3,#ff0000,0)`
; 0args
0 `^(.*::)?\s*(#ErrorStdOut|#InstallKeybdHook|#InstallMouseHook|#NoEnv|#NoTrayIcon|#Persistent|#WinActivateForce|Edit|EnvUpdate|KeyHistory|ListHotkeys|ListVars|Reload|SplashTextOff|WinMinimizeAll|WinMinimizeAllUndo)(\s+;.*$)?$` `\1=(2,${STR},0) \2=(2,${OP},0) \3=(3,${COMM},0)`
; 1u
0 `^(.*::)?\s*(#If|#InputLevel|#SingleInstance|#UseHook|Break|Catch|Continue|Critical|Exit|ExitApp|FileEncoding|FileRecycleEmpty|ListLines|OnExit|Return|SetCapsLockState|SetNumLockState|SetScrollLockState|Suspend|Throw)(\s*,\s*|\s+([^;]*?))?(\s+;.*$)?$` `\1=(2,${STR},0) \2=(2,${OP},0) \4=(2,${VAR},#ff0000) \5=(3,${COMM},0)`
; 2u
0 `^(.*::)?\s*(#IfWinActive|#IfWinNotActive|#IfWinExist|#IfWinNotExist|#Warn|ClipWait|Pause|SoundBeep)(\s*,\s*|\s+([^;]*?))?(\s+;.*$)?(\s*,\s*([^;]*?))?(\s+;.*$)?$` `\1=(2,${STR},0) \2=(2,${OP},0) \4=(2,${VAR},#ff0000) \5=(3,${COMM},0) \7=(2,${VAR},#00ff00) \8=(3,${COMM},0)`
; 3u
0 `^(.*::)?\s
@Drugoy
Drugoy / ahk.coder QuotesRE
Created Dec 31, 2013
Правила для секции QuotesRE для ahk.coder. Эти правила должны раскрасить аргументы у практически всех команд.
View ahk.coder QuotesRE
0 `(")((?:[^"]*?(?:"")?)*?)("(?!"))` `\1=(2,#ff0000,0) \2=(3,#00ff00,0) \3=(3,#ff0000,0)`
; 0args
0 `^(.*::)?\s*(#ErrorStdOut)(\s+;.*$)?$` `\1=(2,${STR},0) \2=(2,${OP},0) \3=(3,${COMM},0)`
0 `^(.*::)?\s*(#InstallKeybdHook)(\s+;.*$)?$` `\1=(2,${STR},0) \2=(2,${OP},0) \3=(3,${COMM},0)`
0 `^(.*::)?\s*(#InstallMouseHook)(\s+;.*$)?$` `\1=(2,${STR},0) \2=(2,${OP},0) \3=(3,${COMM},0)`
0 `^(.*::)?\s*(#NoEnv)(\s+;.*$)?$` `\1=(2,${STR},0) \2=(2,${OP},0) \3=(3,${COMM},0)`
0 `^(.*::)?\s*(#NoTrayIcon)(\s+;.*$)?$` `\1=(2,${STR},0) \2=(2,${OP},0) \3=(3,${COMM},0)`
0 `^(.*::)?\s*(#Persistent)(\s+;.*$)?$` `\1=(2,${STR},0) \2=(2,${OP},0) \3=(3,${COMM},0)`
0 `^(.*::)?\s*(#WinActivateForcet)(\s+;.*$)?$` `\1=(2,${STR},0) \2=(2,${OP},0) \3=(3,${COMM},0)`
0 `^(.*::)?\s*(Edit)(\s+;.*$)?$` `\1=(2,${STR},0) \2=(2,${OP},0) \3=(3,${COMM},0)`
You can’t perform that action at this time.