Skip to content

Instantly share code, notes, and snippets.

@RIAstar
RIAstar / search_replace.vim
Created July 11, 2011 21:25
[vim] search & replace stuff
" remove ctrl+M at linebreaks
:1,$s/^M//g
" type :1,$s/ CTRL-Q CTRL-M //g for entering the ^M character
" backslash to forward slash
:%s/\\/\//g
@RIAstar
RIAstar / cfinvoke_endpoint.cfm
Created August 23, 2011 08:34
[cf] CFInvoke endpoint
<cfset service = createObject("webservice", serviceUrl) />
<cfset service._setProperty("javax.xml.rpc.service.endpoint.address", endpoint) />
<cfinvoke webservice="#service#" method="remoteMethodName" someArgument="hello" returnvariable="result" />
or
<cfscript>
service = createObject("webservice", serviceUrl);
service._setProperty("javax.xml.rpc.service.endpoint.address", endpoint);
result = service.remoteMethodName(someArgument="hello");
@RIAstar
RIAstar / firefox_config.txt
Created September 27, 2011 09:22
Firefox about:config
#fix Flash debugging timeout
#default: 45
dom.ipc.plugins.timeoutSecs = -1
#disable "Firefox Updated" page
#default: current version number
browser.startup.homepage_override.mstone = ignore
#ctrl+tab cycles through previews instead of actual tabs
browser.ctrlTab.previews = true
@RIAstar
RIAstar / subversion_commands.sh
Created October 28, 2011 10:10
[svn] SubVersion commands
#copy folder to another repo
svnadmin dump /svn/old_repo > repo.dump
svndumpfilter include path/to/folder --drop-empty-revs --renumber-revs --preserve-revprops < repo.dump > filtered.dump
svnadmin load /svn/new_repo < filtered.dump
@RIAstar
RIAstar / lilypond_snippets.ly
Created November 6, 2011 22:03
[ly] Common LilyPond snippets
%breaks
\break \pageBreak
%decorations (on a note)
\fermata \segno \coda
%as text
\mark \markup { \musicglyph #"scripts.segno" }
%bars
\bar "|."
@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 = {
@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 / 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 / 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 / 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