start new:
tmux
start new with session name:
tmux new -s myname
| /** | |
| * Affine Cipher Class. | |
| * | |
| * Class to cipher text using the affine method. | |
| * | |
| * @version 0.0.1 | |
| * @file This files defines the AffineCipher class. | |
| * @author Teo Gonzalez Calzada [thblckjkr]. | |
| */ |
| /** | |
| * Requires JQuery >= 1.8 | |
| * @param {info} str string-based data of the | |
| * Author: @thblckjkr | Theo G | |
| * Ported to JQuery from https://github.com/juliangruber/parse-apache-directory-index | |
| * Usage: | |
| * $.get("/a/directory/path", function(data, status){ | |
| * var files = directoryparse(data); | |
| * console.log(files); | |
| * }) |
| #! /bin/bash | |
| # You need to execute this bash file on tmux, to have an easy way to see the output | |
| # then, just execute the script and have a daily report of the status | |
| # | |
| # Default ouput on $path/log.md can be readed by markdown and by a human | |
| # | |
| # Maybe you'll need to do some modifications | |
| # Autor: Teo Gonzalez Calzada @thblckjkr | |
| # Global variables |
| var options = { | |
| host: this.blackbox.ip, | |
| port: this.blackbox.port, | |
| path: '/alive', | |
| method: 'GET', | |
| headers: { | |
| 'Accept': 'application/json', | |
| 'Accept-Encoding': 'gzip,deflate,sdch', | |
| 'Accept-Language': 'en-US,en;q=0.8' | |
| } |
| /* | |
| * Reloader for any page | |
| * | |
| * Dependences: | |
| * JQuery (?) | |
| * | |
| * Author: [thblckjkr] | |
| */ | |
| var Reloader = function (options) { | |
| this.timeToReload = 45; // Time to reload the page (in seconds) |
| Prevent proxy on APT-get | |
| sudo apt-get -o Acquire::http::proxy=false | |
| Prevent Proxy on NPM | |
| npm config rm proxy | |
| npm config rm https-proxy | |
| npm update --noproxy |