Skip to content

Instantly share code, notes, and snippets.

View adw0rd's full-sized avatar
:octocat:
I may be slow to respond.

Mikhail Andreev adw0rd

:octocat:
I may be slow to respond.
View GitHub Profile
@adw0rd
adw0rd / ftp-airnet-kinopoisk-helper.js
Created February 29, 2012 03:53
Ftp-Airnet-Kinopoisk helper (greasemonkey)
// ==UserScript==
// @name Ftp-Airnet-Kinopoisk helper
// @namespace http://airnet.lan/
// @version 0.1
// @description airnet helper for kinopoisk
// @include ftp://ftp.airnet.lan/Video/*
// ==/UserScript==
var list = document.getElementsByTagName('table');
var el = list[0].getElementsByTagName('tr');
@adw0rd
adw0rd / bashrc
Last active May 2, 2022 16:32
Bashrc tips and tricks
# make bash autocomplete with up arrow
bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward'
alias cls="find . -name '*.pyc' -delete -print ; find -name '*~' -delete -print"
# git hightlight cmd line (and show branch name)
# export PS1='\u@\h\w$(__git_ps1 " @%s")$ '
export PS1='\u@\h\w$(__git_ps1 " git:(%s)")/$ '