Skip to content

Instantly share code, notes, and snippets.

View killerswan's full-sized avatar

Kevin Cantú killerswan

View GitHub Profile
@killerswan
killerswan / errors.log
Created July 18, 2015 11:01
Elixir syntastic error on a new Mix project's mix.exs
Error detected while processing function <SNR>55_BufWritePostHook..<SNR>55_UpdateErrors..<SNR>55_Cache
Errors..240..239:
line 5:
E691: Can only compare List with List
E15: Invalid expression: status < 0
Error detected while processing function <SNR>55_BufWritePostHook..<SNR>55_UpdateErrors..<SNR>55_Cache
Errors..240..262:
line 3:
E712: Argument of filter() must be a List or Dictionary
WITH reference_commits as (
/* commits for build X */
select commits.id
from build_commits, commits
where
build_commits.build_id = 5284 and
build_commits.commit_id = commits.id
), builds_sharing_commits as (
main :: ...
main =
let
notMagic :: ...
notMagic = putStrLn . readExpr . head
in
notMagic =<< getArgs`
@killerswan
killerswan / exception from IPython notebook
Last active August 29, 2015 14:08
an IJulia bug on Windows, fixed by running `Pkg.build("Nettle")` to generate that `deps.jl` file.
>ipython notebook --profile julia --log-level DEBUG
...
2014-10-24 20:01:26.605 [NotebookApp] Polling kernel...
ERROR: could not open file C:\Users\kevin.cantu\.julia\v0.3\Nettle\src\../deps/deps.jl
in include at boot.jl:245
in include_from_node1 at loading.jl:128
while loading C:\Users\kevin.cantu\.julia\v0.3\Nettle\src\Nettle.jl, in expression starting on line 3
while loading C:\Users\kevin.cantu\.julia\v0.3\IJulia\src\IJulia.jl, in expression starting on line 11
while loading C:\Users\kevin.cantu\.julia\v0.3\IJulia\src\kernel.jl, in expression starting on line 4
...
@killerswan
killerswan / .gitconfig
Created October 23, 2014 23:02
my simplified git config
[user]
name = Kevin Cantu
email = [email protected]
[core]
preloadindex = true
[merge]
conflictstyle = diff3
@killerswan
killerswan / gist:62e1b2807ff60b30f213
Created October 17, 2014 02:42
msi_only is safe to remove, I think...
C:\code\vSentry\tests\scripts\job_scheduling\HCKwww>grep -iHrn msi_only *
batchscheduler.py:133: def copy_files(self, wait=False, msi_only=False):
batchscheduler.py:149: if msi_only:
batchscheduler.py:156: def install(self, wait=False, msi_only=False):
batchscheduler.py:161: res = self.copy_files(wait, msi_only)
batchscheduler.py:232: def try_install(self, wait=False, msi_only=False):
batchscheduler.py:234: return self.try_action(lambda: self.install(wait=wait, msi_only=msi_only), Binary file batchscheduler.pyc matches
C:\code\vSentry\tests\scripts\job_scheduling\HCKwww>grep -iHrn "copy_files(" *
batchscheduler.py:133: def copy_files(self, wait=False, msi_only=False):
@killerswan
killerswan / howto.md
Last active December 9, 2015 15:45
eliminating warnings about iconv.dll in Git 1.9.4 on Windows...

In Git 1.9.4, and its included gpg, I see silly error messages which can be eliminated by downloading iconv.dll and putting it in Git\bin\ and Git\libexec\git-core\:

gpg: error loading `iconv.dll': The specified module could not be found.

First, get the GnuPG public keys themselves from here. I saved that block to a file, and can check fingerprints like so:

>gpg --with-fingerprint gnupg.key
gpg: error loading `iconv.dll': The specified module could not be found.
struct Foo {
x: int
}
struct Bar<'a> {
foo: &'a Foo
}
trait Baz {
fn baz();
@killerswan
killerswan / gist:ce432525ecc1ce46b977
Created August 26, 2014 04:12
RoboCopy usage message
C:\Users\builduk>robocopy /?
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Tue Aug 26 05:09:59 2014
Usage :: ROBOCOPY source destination [file [file]...] [options]
@killerswan
killerswan / gist:98486086d32a3fad001a
Created July 26, 2014 16:29
An error on mismatched visibility when (perhaps) misusing `quote_item!`
ovid $ git ll -1 --oneline
* b197f03 (HEAD, master) cleanup
ovid $
ovid $ git diff
ovid $
ovid $ ./build.sh
provide_csv_given_labels: name: MyCSV
provide_csv_given_labels: path: ./sample1.txt
provide_csv_given_labels: labels: Verse
Parsing given labels...