Skip to content

Instantly share code, notes, and snippets.

View tdegrunt's full-sized avatar

Tom de Grunt tdegrunt

View GitHub Profile
@tdegrunt
tdegrunt / tmux-tmuxinator-setup.md
Created March 3, 2020 22:09 — forked from colmarius/tmux-tmuxinator-setup.md
Project start/stop with tmux + tmuxinator

1. Install tmux + tmuxinator

gem install tmuxinator

2. Add ~/.tmuxinator project specific configurations

# File: ~/.tmuxinator/project-name.yml

name: project-name
@tdegrunt
tdegrunt / sidekiq_monitoring
Created February 15, 2020 23:10 — forked from ngsmrk/sidekiq_monitoring
Sidekiq queue checking via rails console
stats = Sidekiq::Stats.new
stats.queues
stats.enqueued
stats.processed
stats.failed
@tdegrunt
tdegrunt / halmak.md
Created December 11, 2018 18:49
Carpalx run for halmak
➜ bin/carpalx
Keyboard effort
------------------------------------------------------------
k1                      1.002  69.6  69.6
k1,k2                   1.359  24.8  94.3
k1,k2,k3                1.441   5.7 100.0
b                       0.307  13.6  13.6
p                       1.134  50.2 127.1
ph                      0.000   0.0   0.0
@tdegrunt
tdegrunt / Gemfile
Created February 14, 2019 21:23 — forked from Dmdv/Gemfile
Nginx, Sinatra, and Puma.
source :rubygems
gem "puma"
gem "sinatra"

;; Automatically generated
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(anzu-cons-mode-line-p nil)
@tdegrunt
tdegrunt / ping_pong_udp.js
Created January 15, 2012 22:47
PING PONG with UDP/dgram sockets
// Node 0.4.12
dgram = require('dgram');
var secret_port = 1337;
var clientPort = 0;
function clientListen(port) {
var server = dgram.createSocket("udp4");
server.on("message", function (msg, rinfo) {
@tdegrunt
tdegrunt / Razer Synapse Yosemite.md
Created September 19, 2014 09:21
How to fix Razer Synapse in Mac OSX 10.0 Yosemite

How to fix Razer Synapse in Mac OSX 10.0 Yosemite

Start Terminal.app and type:

sudo nvram boot-args="kext-dev-mode=1"

Verify that command works by typing:

sudo nvram -p | grep -i boot-args
@tdegrunt
tdegrunt / readme.md
Created April 5, 2018 09:37 — forked from maxivak/readme.md
Integrating Gem/Engine and Main Rails App
@tdegrunt
tdegrunt / async_console.rb
Created February 5, 2018 14:35 — forked from postmodern/async_console.rb
An asynchronous Console that can evaluate Ruby code in the background.
require 'thread'
class AsyncConsole
#
# Creates a new Asynchronous Console, within the given context.
#
# @param [Module] context
# The context to evaluate code within.
#
@tdegrunt
tdegrunt / rest_status_codes.md
Created January 11, 2012 10:19
REST Status codes

REST Status codes

Retrieve all users:

index	GET  	/users      200 - Returns all users
							[301 - ?!?!]

Create a new user: