Skip to content

Instantly share code, notes, and snippets.

View iturdikulov's full-sized avatar
🎯
Focusing

Inom Turdikulov iturdikulov

🎯
Focusing
View GitHub Profile
@igal
igal / .vimperatorrc.local.vim
Created March 11, 2010 21:19
My Vimperator configuration
"===[ Settings ]========================================================
" Autocomplete using Firefox Awesomebar subsystem
set complete=l
" Show completions as you type? '' waits for tab, 'auto' shows them immediately
set wildoptions=''
" Select the longest autocomplete match
set wildmode='list:full'
@ashearer
ashearer / gist:745908
Created December 17, 2010 23:38
Vim key bindings for Mac to open a Terminal or Finder window pointed at the current file's parent
" Add to ~/.vimrc
" F5 opens a Terminal window with its current directory set to the current
" file's parent.
" [The command uses an extra CR at the end to get rid of the "Continue"
" prompt, since it will always run over a one-line status bar. :silent doesn't
" help when the command itself is too long for the status bar. Putting the
" command into a variable before executing may be another way to do it.
" Even better: in a function, save sc (showcmd), set nosc, run cmd, restore sc.]
map <F5> :!osascript -e 'tell app "Terminal" to activate do script with command "cd " & quoted form of "%:p:h"'<CR><CR>
@chrisroos
chrisroos / gpg-import-and-export-instructions.md
Created September 9, 2011 10:49
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/

or, instead of backing up trustdb...

@philiparthurmoore
philiparthurmoore / wget-alias.terminal
Created February 25, 2012 10:51
Using a wget alias on Mac OS X
alias wget="curl -O --retry 999 --retry-max-time 0 -C -"
##
# Line should be placed at ~/.bash_profile
# Source: http://www.mymacosx.com/terminal/wget-replacement-macos.html
# Source: http://superuser.com/questions/142459/persistent-retrying-resuming-downloads-with-curl
##
@fmoo
fmoo / gist:2018384
Created March 11, 2012 22:09
Tunneling arbitrary TCP connections over HTTP CONNECT requests with Twisted
from twisted.web import http
from twisted.internet import protocol, reactor
from twisted.internet.error import CannotListenError, ConnectError
from twisted.internet.interfaces import IReactorTCP
from zope.interface import implements
from twisted.python import log
class ProxyConnectError(ConnectError):
@ronjouch
ronjouch / ronj-autohotkey.ahk
Created April 20, 2012 13:28
Collection of AutoHotkey scripts I use
; Variables definition
; -----------------------------------------------------------------------------
EnvGet, userProfile, USERPROFILE
Software := userProfile . "\Dropbox\software\"
; Launch or toggle program, http://lifehacker.com/5468862/create-a-shortcut-key-for-restoring-a-specific-window
; -----------------------------------------------------------------------------
ToggleWinMinimize(WindowTitle)
{
SetTitleMatchMode,2
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 28, 2024 21:36
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@benyarb
benyarb / vimium_colemak
Last active November 18, 2023 04:37
Vimium Colemak Keybindings
# Custom key mappings
map n scrollDown
map N previousTab
map e scrollUp
map E nextTab
map i scrollRight
map I goForward
@lovevn
lovevn / gist:4324998
Created December 18, 2012 04:24
Good deal crawler Get from http://pastebin.com/QNFyu4sa
# -*- coding: utf-8 -*-
# Competitor Intelligence Agent
# License: Creative Commons CC BY-NC-SA
#
# By Michael Gradek, a proud Udacian
# Twitter: @MichaelGradek
#
# Competitor Intelligence Agent aims to collect and display a report with relevant information about Groupon.es, one of the largest Collective Buying sites in Spain (... and in the world!)
# For more information about Collective Buying please refer to: http://en.wikipedia.org/wiki/Group_buying
@lmullen
lmullen / .slate
Created February 8, 2013 04:19
My configuration file for the Slate window manager
# GLOBAL CONFIGURATIONS
# -------------------------------------------------------------------
# See https://github.com/jigish/slate/wiki/Global-Configs
config defaultToCurrentScreen true
config secondsBeforeRepeat 0.4
config secondsBetweenRepeat 0.1
config keyboardLayout "qwerty"
config nudgePercentOf screenSize
config resizePercentOf screenSize