This is a gist used in the following blog posts:
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
const net = require("net"); | |
// creating a custom socket client and connecting it.... | |
const client = new net.Socket(); | |
client.connect({ | |
port: 2222 | |
}); | |
client.on("connect", () => { |
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
function getAllVariables(){ | |
var searchVarByValue = function(searchString){ | |
var values = Object.keys(this.ValueToVar); | |
var findings = []; | |
for (var i=0; i< values.length; i++){ | |
if (values[i] == undefined) | |
continue; | |
var position = values[i].toLowerCase().indexOf(searchString.toLowerCase()); | |
if (position != -1){ | |
findings.push({ 'variable': this.ValueToVar[values[i]], 'value' : values[i] }); |
/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine 😉
- Generate your SSH keys as per your git provider documentation.
- Add each public SSH keys to your git providers acounts.
- In your
~/.ssh/config
, set each ssh key for each repository as in this exemple:
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
var net = require('net'); | |
// creates the server | |
var server = net.createServer(); | |
//emitted when server closes ...not emitted until all connections closes. | |
server.on('close',function(){ | |
console.log('Server closed !'); | |
}); |
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/python3 | |
import serial, time, sys, threading | |
from colorama import Fore, Style, init as colorama_init | |
colorama_init() | |
# lock to serialize console output | |
lock = threading.Lock() |
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
/** | |
* Web browsers use URIs for the href attribute of the <a> tag and for bookmarks. The URI scheme, such as http:, file:, or ftp:, specifies the protocol and the format for the rest of the string. | |
* Browsers also implement a prefix javascript: that to a parser is just like any other URI. | |
* Internally, the browser sees that the specified protocol is javascript, treats the rest of the string as a JavaScript application which is then executed, and uses the resulting string as the new page. | |
* | |
* The executing script has access to the current page, which it may inspect and change. | |
* If the script returns an undefined type (rather than, for example, a string), the browser will not load a new page, with the result that the script simply runs against the current page content. | |
* This permits changes such as in-place font size and color changes without a page reload. | |
*/ |
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
Summary of 8080 Instructions | |
------- -- ---- ------------ | |
Abbreviations used in this Summary: | |
R Any of the 8-Bit registers A,B,C,D,E,H,L. | |
data Any 8-bit or 16-bit value. | |
PC Program Counter. | |
SP Stack Pointer. |