Skip to content

Instantly share code, notes, and snippets.

View rgbkrk's full-sized avatar
🌎
Think globally, act locally

Kyle Kelley rgbkrk

🌎
Think globally, act locally
View GitHub Profile
@rgbkrk
rgbkrk / wget.log
Created May 29, 2015 11:28
wget spidering of devrax
Spider mode enabled. Check if remote file exists.
--2015-05-28 20:34:08-- http://162.242.140.53/
Connecting to 162.242.140.53:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13862 (14K) [text/html]
Remote file exists and could contain links to other resources -- retrieving.
--2015-05-28 20:34:09-- http://162.242.140.53/
Reusing existing connection to 162.242.140.53:80.
HTTP request sent, awaiting response... 200 OK
@rgbkrk
rgbkrk / kcli.py
Last active August 29, 2015 14:21
#!/usr/bin/env python
"""
Simple client utility to mock GET /api/kernelspecs from the notebook server,
return local JSON.
This differs in that resources are returned as if consumed locally (PNGs, etc.),
rather than a full notebook server.
"""
@rgbkrk
rgbkrk / gtavcheats.md
Last active August 20, 2024 13:33
gta v cheats

Player Effects

CHEAT EFFECT BUTTON COMBINATION
Drunk Mode Triangle, Right, Right, Left, Right, Square, Circle, Left
Explosive Ammo Rounds Right, Square, X, Left, R1, R2, Left, Right, Right, L1, L1, L1
Explosive Melee Attacks Right, Left, X, Triangle, R1, Circle, Circle, Circle, L2
Fast Run Triangle, Left, Right, Right, L2, L1, Square
Fast Swim Left, Left, L1, Right, Right, R2, Left, L2, Right
Flaming Bullets L1, R1, Square, R1, Left, R2, R1, Left, Square, Right, L1, L1
@rgbkrk
rgbkrk / build it
Created May 2, 2015 05:46
No idea how to build zmq with Electron headers
00:37:32 {master *%>} kyle6475@puter ~/code/jupyter-sidecar/node_modules/zmq$ HOME=~/code/electron/ node-gyp rebuild --target=0.25.0 --arch=x64 --dist-url=https://atom.io/download/atom-shell
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info spawn python
gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
@rgbkrk
rgbkrk / Arrrrr
Created April 27, 2015 17:13
:-/ R
Step 20 : RUN echo "library(devtools); install_github('jimhester/robustr')" | R --no-save
---> Running in 0dad537b2da8
R version 3.1.3 (2015-03-09) -- "Smooth Sidewalk"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-unknown-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
@rgbkrk
rgbkrk / pickledepickle.py
Created April 16, 2015 22:06
Using an IPython kernel with cloudpickle for a clean testing namespace
try:
from queue import Empty # Python 3
except ImportError:
from Queue import Empty # Python 2
import cloudpickle
import IPython
def remote_pickledepickle(obj):
km, client = IPython.kernel.manager.start_new_kernel()
'\x80\x02ccloudpickle.cloudpickle\n_fill_function\nq\x00(ccloudpickle.cloudpickle\n_make_skel_func\nq\x01cnew\ncode\nq\x02(K\x01K\x01K\x02KCU\rd\x01\x00|\x00\x00\x17GHd\x00\x00Sq\x03NU\x06hello q\x04\x86q\x05)U\x04nameq\x06\x85q\x07U\x1f<ipython-input-14-2eacb1b1d2b4>q\x08U\x05helloq\tK\x01U\x02\x00\x01q\n))tq\x0bRq\x0c]q\r}q\x0e\x87q\x0fRq\x10}q\x11N}q\x12tR.'
@rgbkrk
rgbkrk / rgbkrk_sprint.md
Last active August 29, 2015 14:18
PyCon 2015 Sprint Options

There are a lot of things I can focus on during the sprints at PyCon. I'm listing the following to help me hone in on what to focus on and what others might want to join on.

Notebook Viewer

  • Plan out indexing
  • Switch to Ansible+Ubuntu for deployment
  • Python 3 SDK

IPython

@rgbkrk
rgbkrk / lunicode.js.ipynb
Created March 2, 2015 23:31
Lunicode in the IPython Jupyter Notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rgbkrk
rgbkrk / face recognition.ipynb
Created February 18, 2015 04:27
Face Recognition, eigenfaces
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.