Skip to content

Instantly share code, notes, and snippets.

View fmatic's full-sized avatar

Janne Heinikangas fmatic

View GitHub Profile
@srescio
srescio / YOURLSbatchDelete.js
Last active August 29, 2015 14:07
YOURLS js console IP batch listing & delete
//Get all IPs to add in YourlsBlacklistIPs plugin for manual blacklisting
var allIP = [];
$('td.ip').each(function(){
var ip = $(this).text();
allIP.push(ip);
})
console.log( allIP.join('\n') );
@thomasmb
thomasmb / statusboard-serverstats.php
Created April 10, 2013 14:05
A simple script for getting and displaying server stats in StatusBoard
<?php
//add your server aliases here
$servers = array(
"185.14.184.234" => "mcfly.bensmann.no",
"185.14.184.xxx" => "another.server.com",
);
//this script is triggered by this command from the terminal or cron:
//echo "time=`uptime`&df=`df -h`" | curl -s -d @- http://domain.com/path/to/script.php
@eerohele
eerohele / mosh-cygwin.md
Last active March 3, 2024 04:20
Compiling Mosh (http://mosh.mit.edu/) under Cygwin

NOTE: You don't need to compile Mosh on Cygwin yourself anymore; just install the package with Cygwin's setup.exe.

  1. Download Cygwin.

  2. Run setup.exe and install the following packages in addition to the default ones:

    • make
    • boost
    • libncurses-devel
    • pkg-config
  • perl