Skip to content

Instantly share code, notes, and snippets.

@RIAstar
RIAstar / firefox-config.properties
Last active January 2, 2016 08:19
FireFox about:config
# tracking protection
privacy.trackingprotection.enabled=true
# default search engine
browser.search.defaultenginename=DuckDuckGo
# no delay when installing plugins
security.dialog_enable_delay=0
# increase weight of bookmarks in awesomebar
package net.riastar.components {
import flash.events.Event;
import flashx.textLayout.elements.ParagraphElement;
import flashx.textLayout.elements.SpanElement;
import flashx.textLayout.elements.TextFlow;
import flashx.textLayout.operations.DeleteTextOperation;
import flashx.textLayout.operations.FlowOperation;
import flashx.textLayout.operations.InsertTextOperation;
@RIAstar
RIAstar / start_http_server_in_current_dir.sh
Created August 17, 2013 14:52
[shell,ruby] Start http server in current directory
#oneliner
ruby -r webrick -e "s = WEBrick::HTTPServer.new(:Port => 80, :DocumentRoot => Dir.pwd); trap('INT') { s.shutdown }; s.start"
#alias
alias http="ruby -r webrick -e \"s = WEBrick::HTTPServer.new(:Port => 80, :DocumentRoot => Dir.pwd); trap('INT') { s.shutdown }; s.start\""
@RIAstar
RIAstar / recursively_delete_file_type.sh
Created August 17, 2013 14:45
[shell] recursively delete file type
#with confirmation
find . -type f -name "*.tmp" -exec rm -i {} \;
#without confirmation
find . -type f -name "*.tmp" -exec rm -f {} \;
@RIAstar
RIAstar / git_delete_remote_branch.sh
Created June 16, 2013 18:30
[git] delete remote branch
#delete remote branch
git push origin :feature-branch
@RIAstar
RIAstar / merge_single.sh
Created June 12, 2013 15:28
[git] Merge a single file
#merge 'file' from branch 'develop' into branch 'feature'
git checkout feature
git checkout develop file
@RIAstar
RIAstar / cygwin_config.sh
Created April 24, 2013 11:33
[win,shell] Cygwin config options
#enhanced history search
#put in .inputrc
"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
set completion-ignore-case on
@RIAstar
RIAstar / windows_registry.txt
Created January 7, 2013 12:10
[win] Windows registry hacks
#turn off systray balloon tips
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
EnableBalloonTips:DWORD = 0
@RIAstar
RIAstar / recursively_convert_EOL.sh
Created December 14, 2012 16:29
[shell] Convert all files in folder from dos to unix EOL (end of line) recursively
find . -type f -exec dos2unix {} {} ';'
@RIAstar
RIAstar / guitar_tab_template.ly
Created November 6, 2011 22:06
[ly] Guitar tab template
\version "2.14.1"
\header {
title = "songtitle"
composer = "composer"
arranger = "arranger"
instrument = "Guitar"
}
guitar = {