Skip to content

Instantly share code, notes, and snippets.

View Outpox's full-sized avatar
🐤
- – — – -

Guillaume Outpox

🐤
- – — – -
View GitHub Profile

Keybase proof

I hereby claim:

  • I am outpox on github.
  • I am outpox (https://keybase.io/outpox) on keybase.
  • I have a public key ASA1llsFQhpRdTyQymEcaoRSmeJaS0E6hE2zH5yq_r8AWAo

To claim this, I am signing this object:

@Outpox
Outpox / cpu.js
Created November 7, 2016 07:12 — forked from bag-man/cpu.js
How to calculate the current CPU load with Node.js; without using any external modules or OS specific calls.
var os = require("os");
//Create function to get CPU information
function cpuAverage() {
//Initialise sum of idle and time of cores and fetch CPU info
var totalIdle = 0, totalTick = 0;
var cpus = os.cpus();
//Loop through CPU cores
@Outpox
Outpox / recordit.sh
Last active September 6, 2016 08:05
#!/bin/bash
# Source: http://askubuntu.com/questions/107726/how-to-create-animated-gif-images-of-a-screencast/201018#201018
# Requires: byzanz -> sudo apt-get install byzanz
# xrectsel from https://github.com/lolilolicon/xrectsel
# Delay before starting
DELAY=3
# Sound notification to let one know when recording is about to start (and ends)
beep() {