Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View waTeim's full-sized avatar

Jeff Waller waTeim

View GitHub Profile

Keybase proof

I hereby claim:

  • I am wateim on github.
  • I am wateim (https://keybase.io/wateim) on keybase.
  • I have a public key ASA_fOlKcCEaRZCJcKnDTOvQAYrYhdwhjsC0sdMRkn0tmAo

To claim this, I am signing this object:

@waTeim
waTeim / macOS_template.xml
Created August 21, 2018 00:38
libvirt template for macOS
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>HOSTNAME</name>
<memory unit='KiB'>7812500</memory>
<currentMemory unit='KiB'>7812500</currentMemory>
<vcpu placement='static'>4</vcpu>
<os>
<type arch='x86_64' machine='pc-q35-2.11'>hvm</type>
<loader readonly='yes' type='pflash'>/usr/local/share/OVMF/OSX-KVM/OVMF_CODE.fd</loader>
<nvram template='/usr/local/share/OVMF/OSX-KVM/OVMF_VARS.fd'>/var/lib/libvirt/qemu/nvram/HOSTNAME_VARS.fd</nvram>
<boot dev='hd'/>
ame: GeForce GTX 980
major: 5 minor: 2 memoryClockRate (GHz) 1.2785
pciBusID 0000:03:00.0
Total memory: 4.00GiB
Free memory: 3.91GiB
I tensorflow/core/common_runtime/gpu/gpu_init.cc:126] DMA: 0
I tensorflow/core/common_runtime/gpu/gpu_init.cc:136] 0: Y
I tensorflow/core/common_runtime/gpu/gpu_device.cc:755] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 980, pci bus id: 0000:03:00.0)
Step #48, avg. train loss: 0.49619
Step #148, avg. train loss: 0.48362
warning: JITed object file architecture armv4 is not compatible with target architecture arm.
warning: JITed object file architecture armv4 is not compatible with target architecture arm.
warning: JITed object file architecture armv4 is not compatible with target architecture arm.
warning: JITed object file architecture armv4 is not compatible with target architecture arm.
warning: JITed object file architecture armv4 is not compatible with target architecture arm.
Program received signal SIGABRT, Aborted.
0x757b2f70 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) where
@waTeim
waTeim / Precompile_Base.jl
Created March 19, 2016 03:14
Julia package precompile steps to aid in startup speed on ARM
function _precompile_()
ccall(:jl_generating_output, Cint, ()) == 1 || return nothing
precompile(Base.Serializer.serialize_type, (Base.SerializationState{Base.Pipe}, DataType,))
precompile(Base.Serializer.write_as_tag, (Base.Pipe, Int32,))
precompile(Base.check_open, (Base.PipeEndpoint,))
precompile(Base.Serializer.serialize_cycle, (Base.SerializationState{Base.Pipe}, UInt8,))
precompile(Base.write, (Base.Pipe, Array{UInt8, 1},))
precompile(Base.flush, (Base.PipeEndpoint,))
precompile(Base.Serializer.serialize, (Base.SerializationState{Base.Pipe}, Int32,))
precompile(Base.Filesystem.lstat, (ASCIIString,))
julia> import StateSpace;
INFO: Precompiling module StatsBase...
WARNING: unable to determine host cpu name.
WARNING: unable to determine host cpu name.
WARNING: unable to determine host cpu name.
WARNING: Method definition call(Type{ArrayViews.UnsafeContiguousView}, Ptr{#T<:Any}, Int32, NTuple{#N<:Any, Int32}) in module ArrayViews at /home/jeffw/.julia/v0.5/ArrayViews/src/arrviews.jl:18 overwritten at /home/jeffw/.julia/v0.5/ArrayViews/src/arrviews.jl:26.
WARNING: unable to determine host cpu name.
INFO: Precompiling module Distributions...
WARNING: unable to determine host cpu name.
WARNING: unable to determine host cpu name.
@waTeim
waTeim / cert-list.text
Created February 9, 2016 18:41
Troubleshooting Julia git cert problems
3dr_solo:~/src/tmp$ ls -l /etc/ssl/certs/
drwxr-xr-x 2 root root 10240 Feb 9 06:09 ./
drwxr-xr-x 3 root root 1024 Feb 9 06:09 ../
lrwxrwxrwx 1 root root 55 Feb 9 06:09 A-Trust-nQual-03.pem -> /usr/share/ca-certificates/mozilla/A-Trust-nQual-03.crt
lrwxrwxrwx 1 root root 52 Feb 9 06:09 ACEDICOM_Root.pem -> /usr/share/ca-certificates/mozilla/ACEDICOM_Root.crt
lrwxrwxrwx 1 root root 65 Feb 9 06:09 AC_Ra??z_Certic??mara_S.A..pem -> /usr/share/ca-certificates/mozilla/AC_Ra??z_Certic??mara_S.A..crt
lrwxrwxrwx 1 root root 69 Feb 9 06:09 Actalis_Authentication_Root_CA.pem -> /usr/share/ca-certificates/mozilla/Actalis_Authentication_Root_CA.crt
lrwxrwxrwx 1 root root 61 Feb 9 06:09 AddTrust_External_Root.pem -> /usr/share/ca-certificates/mozilla/AddTrust_External_Root.crt
lrwxrwxrwx 1 root root 71 Feb 9 06:09 AddTrust_Low-Value_Services_Root.pem -> /usr/share/ca-certificate
@waTeim
waTeim / changes-to-binding.txt
Created February 7, 2016 06:31
Some experimenting julia on a 3DR drone
"libraries":
[
"-lgfortran", <--- added
"-lopenblas", <--- added
"-ljulia"
]
}
"cflags":
[
jeffw@wedja MINGW64 ~/src/node-julia
$ npm install
npm WARN package.json node-julia@1.2.2 No license field.
> node-julia@1.2.2 install C:\msys64\home\jeffw\src\node-julia
> node-gyp rebuild
C:\msys64\home\jeffw\src\node-julia>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
@waTeim
waTeim / bug.html
Created September 10, 2015 22:40
Webcola Bug Illustration
<!DOCTYPE html>
<html>
<head>
<title>reapply group example </title>
<link rel='stylesheet' href='/stylesheets/style.css' />
</head>
<body>
<script src="javascripts/d3.v3.js"></script>
<script src="javascripts/cola.v3.min.js"></script>
<h1>Reapply Group Example</h1>