This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 :
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
watch -n1 'mysql -uUSER -pPASSWORD --execute="SHOW PROCESSLIST"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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"; |
Here are several different ways to test a TCP port without telnet.
BASH (man page)
$ cat < /dev/tcp/127.0.0.1/22
SSH-2.0-OpenSSH_5.3
^C
$ cat < /dev/tcp/127.0.0.1/23
OlderNewer