Skip to content

Instantly share code, notes, and snippets.

View jnsjunior's full-sized avatar

João Norberto de Souza Junior jnsjunior

View GitHub Profile
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

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 "[email protected]"
@anarchivist
anarchivist / gist:3003928
Created June 27, 2012 12:58
Mitsumi/Newtronics D509V3 Jumpers
DS0 - drive select
DS2 - drive select
MS - motor on vs. drive select
RDY - ready vs. disk change
LD - high / low (density?)
S2 - motor speed (360 RPM or 300/360 RPM dual speed)
@RickCarlino
RickCarlino / gforth_cheat_sheet.md
Last active April 6, 2025 10:02
gforth cheat sheet

Math

  • .s - Show the stack
  • +, -, *, mod - Math operators
  • /mod - performs both / and mod

Stack manipulation

  • drop and 2drop - drop a stack item (once / twice)
  • dup - duplicate a stack item
  • rot - rotate the stack
@rveitch
rveitch / es_proxy.js
Created November 17, 2016 05:51
Example Elasticsearch Proxy for Node.js
var express = require('express');
var request = require('request');
var app = express();
var port = Number(process.env.PORT || 3000);
var apiServerHost = (process.env.ELASTIC_URL || 'http://127.0.0.1:9200')
// Listen for requests on all endpoints
app.use('/', function(req, res, body) {
// short-circuit favicon requests for easier debugging
@allenyllee
allenyllee / install_tools.sh
Last active April 3, 2025 12:17
mount vhdx in linux
#!/bin/bash
# install qemu utils
sudo apt install qemu-utils
# install nbd client
sudo apt install nbd-client