Skip to content

Instantly share code, notes, and snippets.

apt-get install libpcre3 zlib1g zlib1g-dev libxml2-dev libxslt1-dev python-dev libgd-dev libxml2-dev libxslt1-dev python-dev libgd-dev libgeoip-dev libssl-dev libpcre++-dev
nginx -t
cd /usr/src/
git clone https://github.com/vozlt/nginx-module-vts
cd nginx-module-vts/
@ahmader
ahmader / gist:f7d2b81cd4f20a6ca0e1ef874668e30c
Created September 6, 2020 23:15 — forked from gankit/gist:48bdead2699c5af474b51c05f812bce4
Google Apps Script to send email via Mailgun
// Index of some column that is not used.
var SENT_COLUMN = 15;
// Place your Grid API Key here.
var MAILGUN_KEY = "YOUR_MAILGUN_KEY"
// The emails will be send from here.
var EMAIL_FROM = "Company Name <[email protected]>";
// Errors will be send here
var SUPPORT_EMAIL = "[email protected]";
// Subject of the email
var SUBJECT = "EMAIL SUBJECT";
@ahmader
ahmader / MAC OSX.md
Last active July 15, 2020 18:27
Arduino Copy compiled code using avrdude

Arduino Pro Nano

prepare

brew install avrdude

read (from old)

avrdude -patmega328p -carduino -P/dev/cu.usbserial-AH05Q2H6 -b57600 -D -Uflash:r:/tmp/sketch1.hex:i
<!DOCTYPE html>
<html>
<style>
html {direction: rtl;}
h1 {
position: absolute;
left:-100px;
background: black;color:white;
}
</style>
var ip = require( 'ip' );
var IP = exports
IP.addressInfo = function(name, family) {
var os = require( 'os' );
var family = 'ipv4';
var interfaces = os.networkInterfaces( );
// console.log( interfaces );
var all = Object.keys(interfaces).map(function (nic) {