Skip to content

Instantly share code, notes, and snippets.

View killerswan's full-sized avatar

Kevin Cantú killerswan

View GitHub Profile

Download emacs-24.5-bin-i686-mingw32.zip from GNU and extract it.

Run it using a minimal path to avoid crashes when closing:

set path=C:\Users\kevin.cantu\Desktop\emacs\emacs-24.5-bin-i686-mingw32\bin
runemacs

Download gnutls-3.4.9-w32.zip from GnuTLS and exctract it.

@killerswan
killerswan / build.bat
Created March 18, 2016 02:14
specify sub-projects to build in a solution
setlocal
@echo on
set here=%~dp0
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\vcvars64.bat"
pushd %here%\vsprojects-2010
msbuild protobuf.sln /target:libprotobuf-lite:Rebuild /p:Platform=x64;Configuration=Debug || goto :error
msbuild protobuf.sln /target:libprotobuf-lite:Rebuild /p:Platform=Win32;Configuration=Debug || goto :error
C:\Users\kevin.cantu\Desktop>cat banana.groovy
print "banana"
String bb = "banana"
assert "banana" == bb
assert "banana" != bb
C:\Users\kevin.cantu\Desktop>
C:\Users\kevin.cantu\Desktop>apache-groovy-sdk-2.4.6\groovy-2.4.6\bin\groovy.bat banana.groovy
C:\Users\kevin.cantu\vimfiles\bundle\copypath.vim>git diff
diff --git a/plugin/copypath.vim b/plugin/copypath.vim
index 07cbd1e..14ba8da 100644
--- a/plugin/copypath.vim
+++ b/plugin/copypath.vim
@@ -64,6 +64,16 @@ if !exists('g:copypath_copy_to_unnamed_register')
let g:copypath_copy_to_unnamed_register = 0
endif
+function CopyURL()
@killerswan
killerswan / log.txt
Created December 17, 2015 00:11
FSharp binding logs C:\Users\kevin.cantu\AppData\Local\Temp\log.txt and C:\Users\kevin.cantu\AppData\Local\Temp\log2.txt
> outputmode json
> compilerlocation
msg received {u'MSBuild': u'C:\\Windows\\Microsoft.NET\\Framework64\\v3.5\\MSBuild.exe', u'Fsi': u'C:\\Program Files (x86)\\Microsoft SDKs\\F#\\4.0\\Framework\\v4.0\\fsi.exe', u'Fsc': u'C:\\Program Files (x86)\\Microsoft SDKs\\F#\\4.0\\Framework\\v4.0\\fsc.exe'}
> compilerlocation
msg received {u'MSBuild': u'C:\\Windows\\Microsoft.NET\\Framework64\\v3.5\\MSBuild.exe', u'Fsi': u'C:\\Program Files (x86)\\Microsoft SDKs\\F#\\4.0\\Framework\\v4.0\\fsi.exe', u'Fsc': u'C:\\Program Files (x86)\\Microsoft SDKs\\F#\\4.0\\Framework\\v4.0\\fsc.exe'}
> parse "C:\code\fs\wonderland-fsharp-katas\wonderland-fsharp-katas\card-game-war.fsx" full
> // See the file card-game.md for detailed information.
>
> // feel free to use these cards or use your own data structure
>
/*
* $ pg_dump --host=localhost --username=xyz db > db-2015-12-01.backup
* $ psql --host=localhost --username=xyz db
*
* http://www.postgresql.org/docs/8.3/static/functions-matching.html
*/
\dt
select * from ci_parameters where ci_parameters.key='tag' and ci_parameters.value ~ 'signed-';;
update ci_parameters set value = regexp_replace(value, 'signed-', 'signed_') where value ~ 'signed-';;
@killerswan
killerswan / gist:adfdaa3801286d1bf5e6
Created September 23, 2015 14:36
(stellar) On af2e1dbb7232cd29, the single-peer vagrant setup (described here: https://github.com/stellar/vagrant-examples) seems not to be coming up because of a NODE_SEED v. VALIDATION_SEED collision.
single-peer $ vagrant ssh -c 'sudo tail -30 /var/log/upstart/stellar-core.log'
2015-09-23T14:27:10.880 <startup> [] [default] WARN
2015-09-23T14:27:10.880 <startup> [] [default] WARN Deprecated variable: PEER_SEED
2015-09-23T14:27:10.880 <startup> [] [default] WARN
2015-09-23T14:27:10.881 <startup> [] [default] WARN Variable renamed to NODE_SEED, so
2015-09-23T14:27:10.881 <startup> [] [default] WARN treating as such for the time being.
2015-09-23T14:27:10.881 <startup> [] [default] WARN
2015-09-23T14:27:10.881 <startup> [] [default] WARN ***************************************
2015-09-23T14:27:10.883 <startup> [] [default] FATAL Got an exception: set both NODE_SEED and deprecated VALIDATION_SEED [main.cpp:406]
2015-09-23T14:27:11.021 <startup> [] [default] WARN ***************************************
@killerswan
killerswan / gist:b56da34371553d04e458
Created September 23, 2015 07:13
vagrant ssh on stellar single-peer seems to fail (probably easy, but I am too jet-lagged to sort it out tonight)
single-peer $ history | tail -15
514 mkdir stellar-things
515 cd stellar-things/
516 git clone https://github.com/stellar/vagrant-examples
517 sudo git clone https://github.com/stellar/vagrant-examples
518 dir
519 cd vagrant-examples/
520 dir
521 cd single-peer/
522 dir
@killerswan
killerswan / windbg.txt
Created September 4, 2015 09:30
BrGuestSvr crasing @ 3.0.0.3204
Microsoft (R) Windows Debugger Version 6.12.0002.633 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [C:\ProgramData\Bromium\vSentry\Logs\Stage2Image0001_BrGuestSvr.exe-20150904-021527.091_wer-1848.dmp]
User Mini Dump File with Full Memory: Only application data is available
WARNING: Inaccessible path: 'C:\code\vSentry\out\DEBUG_win7-64bit\bin'
Symbol search path is: SRV*C:\symcache*\\files.us.bromium.net\public\symsrv;SRV*C:\symcache*http://msdl.microsoft.com/download/symbols;SRV*C:\symcache*\\files.uk.bromium.net\public\symsrv;C:\code\vSentry\out\DEBUG_win7-64bit\servers;C:\code\vSentry\uxen\xen\dist\windows\debug;C:\symbols;SRV*C:\symcache*http://symbols.mozilla.org/firefox;C:\code\vSentry\uxen\xen\dist\windows;C:\code\vSentry\out\DEBUG_win7-64bit\bin