Skip to content

Instantly share code, notes, and snippets.


Antonio Xfox1

View GitHub Profile
View ArduinoNanoWebServer.ino
#include <SoftwareSerial.h>
SoftwareSerial esp8266(2, 3);
#define serialCommunicationSpeed 9600
#define DEBUG true
const int lightPin = 5;
//---------- Vars for commands ----------
int lightPower = 0;
View script.js
const url = window.location.origin;
let socket = io.connect(url);
var myTurn = true;
var symbol;
function getBoardState() {
var obj = {};
/* We are creating an object where each attribute corresponds
View index.js
const http = require("http")
const express = require("express");
const app = express();
const socketIo = require("");
const fs = require("fs");
const server = http.Server(app).listen(8080);
const io = socketIo(server);
const clients = {};
View answers.json
"triggers": [
"good night"
"replies": [
"reply": "To you...",
"type": "text"
#Screen 1
cd /home/<user>/<folder1>
sudo -u <user> screen -dmS "Screen_name_1" "command1" "arguments1"
#Screen 2
cd /home/<user>/<folder2>
sudo -u <user> screen -dmS "Screen_name_2" "command2" "arguments2"
View screen-usage.csv
Action Command
create screen screen
create screen if inside a screen [Ctrl+a][c]
detach screen [Ctrl+a][d]
kill screen [Ctrl+a][k]
rename screen [Ctrl+a][:] then type 'sessionname <name_you_want>'
screen list screen -ls
resume screen screen -r <screen_name>