Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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\""
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 / 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