Skip to content

Instantly share code, notes, and snippets.

@crcastle
crcastle / ESP8266-nRF24L01.ino
Created September 23, 2015 06:38
Using an Adafruit Huzzah ESP8266 with nRF24L01+ as a (one-way) internet gateway for several nRF24L01+ sensor nodes
#include <SPI.h>
#include <RF24Network.h>
#include <RF24.h>
#include <ESP8266WiFi.h>
const char* ssid = "ssid";
const char* password = "password";
const char* host = "coolapp.herokuapp.com";
@Khoulaiz
Khoulaiz / gist:41b387883a208d6e914b
Last active March 13, 2024 10:51
Checking ports without telnet

Here are several different ways to test a TCP port without telnet.

$ cat < /dev/tcp/127.0.0.1/22
SSH-2.0-OpenSSH_5.3
^C

$ cat &lt; /dev/tcp/127.0.0.1/23
@petunio4
petunio4 / 0_reuse_code.js
Last active August 29, 2015 14:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@geraldvillorente
geraldvillorente / gist:94e9bd953c01a4ce8dad
Last active October 26, 2017 05:07
MySQL show processlist in realtime
watch -n1 'mysql -uUSER -pPASSWORD --execute="SHOW PROCESSLIST"'
@jdfight
jdfight / 0_reuse_code.js
Last active August 29, 2015 14:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@cgervais
cgervais / keybase.md
Created April 3, 2015 02:49
keybase.md

Keybase proof

I hereby claim:

  • I am cgervais on github.
  • I am chrisg (https://keybase.io/chrisg) on keybase.
  • I have a public key whose fingerprint is 9333 99D0 85F6 B214 FA29 D23D 224B 79C8 EAF0 145A

To claim this, I am signing this object:

@avaghti1
avaghti1 / .vimrc
Created April 3, 2015 02:28
vimrc
set number
highlight Comment ctermfg=yellow
set list
set listchars=trail:.
set statusline+=%F
set laststatus=2
set hlsearch
set ic
set incsearch
set ruler
#!/usr/bin/ruby
# Requirements:
# - rb-dayone and doing gems installed for the system Ruby.
# (Mine (OSX 10.10) are in /Library/Ruby/Gems/2.0.0/gems/)
#
# How to run:
# $./dayone-to-doing.rb 0A8BE4BB9F7E40B5A6F3F621797FC6F5.doentry
# The parameter passed to the script is the doentry file that was just created.
# The script will:
@briankohles
briankohles / markdown_cheatsheet.md
Last active August 29, 2015 13:55
A markdown cheat sheet - includes GFM

H1

Alt-H1

H2

Alt-H2

H3

H4

H5
H6
@americkson
americkson / gist:5196021
Last active September 6, 2016 03:43
GIT - Working with branches

Create a branch:

$ git branch <name_of_your_new_branch>  

Push the branch on github :

$ git push origin <name_of_your_new_branch>  

Switch to your new branch :