Skip to content

Instantly share code, notes, and snippets.

View hak8or's full-sized avatar

hak8or hak8or

View GitHub Profile
@pl12133
pl12133 / fake_data_scheduler.sh
Created July 1, 2015 00:47
Fake Data Scheduler script, example of POSTing data directly to the InfluxDB HTTP API
#!/bin/bash
__randomWithRange() {
# http://www.tldp.org/LDP/abs/html/randomvar.html
# USAGE: __randomWithRange FLOOR CEILING
local number=0 #initialize
while [ "$number" -le $1 ]
do
number=$RANDOM
let "number %= $2" # Scales $number down within $RANGE.
@gabereiser
gabereiser / gist:8833668
Created February 5, 2014 21:36
IPv6 node.js server
var http = require('http')
var server
function onRequest(req, res) {
console.log('[' + this.name + ']', req.method, req.url)
res.writeHead(200, {'Content-Type': 'text/plain'})
res.end('Hello World\n')
}
function onListening() {
@wsargent
wsargent / docker_cheat.md
Last active June 27, 2024 15:58
Docker cheat sheet
@shime
shime / _readme.md
Last active November 8, 2020 08:54 — forked from ryin/tmux_local_install.sh
installation script for tmux 1.9a

Having trouble installing the latest stable version of tmux?

I know, official package for your OS/distro is outdated and you just want the newest version of tmux.

Well, this script should save you some time with that.

Prerequisities

  • gcc
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active June 29, 2024 08:12
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname