Skip to content

Instantly share code, notes, and snippets.

View jimlloyd's full-sized avatar

Jim Lloyd jimlloyd

View GitHub Profile
@jimlloyd
jimlloyd / CMakeLists.txt
Last active July 12, 2021 07:04
Loading a Tensorflow.js model from C++/WASM
add_executable(spike spike.cpp)
target_compile_options(spike PRIVATE "SHELL:--bind")
target_link_options(
spike
PRIVATE "--bind"
PRIVATE "SHELL:-s ASYNCIFY"
PRIVATE "SHELL:-s ASYNCIFY_IMPORTS=[loadModel]"
)
# I removed, and the installed cuda
$ sudo apt-get remove cuda nvidia-cuda-dev
...
$ sudo apt autoremove
...
jim@ryley:/usr/lib$ sudo apt-get -y install cuda
Reading package lists... Done
Building dependency tree
#!/bin/bash
# ~/.ssh/rc
# Fix SSH auth socket location so agent forwarding works with tmux
if test "$SSH_AUTH_SOCK" ; then
ln -sf $SSH_AUTH_SOCK ~/.ssh/ssh_auth_sock
fi
#.tmux.conf
# Install this as `~/.tmux.conf` on every remote host where tmux sessions are used to preserve ssh port forwarding
# Remove SSH_AUTH_SOCK to disable tmux automatically resetting the variable
set -g update-environment "DISPLAY SSH_ASKPASS SSH_AGENT_PID \
SSH_CONNECTION WINDOWID XAUTHORITY"
# Use a symlink to look up SSH authentication
setenv -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock
@jimlloyd
jimlloyd / npm-debug.log
Created March 14, 2015 21:20
npm-debug.log for npm error "invalid version: 3001.0001.0000-dev-harmony-fb"
This file has been truncated, but you can view the full file.
16008 silly gunzTarPerm extractEntry example.js
16009 silly gunzTarPerm extractEntry index.js
16010 silly gunzTarPerm extractEntry example/get/main.js
16011 silly gunzTarPerm extractEntry example/get/server.js
16012 silly gunzTarPerm modified mode [ 'example/get/server.js', 436, 420 ]
16013 silly gunzTarPerm extractEntry .travis.yml
16014 silly gunzTarPerm extractEntry example/array.js
16015 silly gunzTarPerm extractEntry example/quote.js
16016 silly gunzTarPerm extractEntry test/parse.js
16017 silly gunzTarPerm extractEntry .travis.yml
@jimlloyd
jimlloyd / gist:f63b5c0362bd2116270f
Last active August 29, 2015 14:06 — forked from okram/gist:c638c24f4d1d4688d5d3
Gremlin statements with V2 vs V3 timings
// all time is in milliseconds
// timing was determined with 't = System.currentTimeMillis(); g...iterate(); System.currentTimeMillis() - t'
// evaluations we rerun over and over until they settled at a repeatable time and that is the time presented.
// evaluations were over the Grateful Dead graph.
GREMLIN3: g = TinkerGraph.open(); g.loadGraphML('data/grateful-dead.xml')
GRELMIN2: g = new TinkerGraph(); g.loadGraphML('data/graph-example-2.xml'); g.removeVertex(g.v(0))
g.V().outE().inV().outE().inV().outE().inV().iterate()

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"