Skip to content

Instantly share code, notes, and snippets.

ariia-git / ddns-api.php
Created May 31, 2020 — forked from fredsted/ddns-api.php
Virtualmin Dynamic DNS (DDNS) server
View ddns-api.php
// This script receives DDNS updates via HTTP
// example: http://server/ddns-api.php?name=home = updates to IP of requester
define('DDNS_DATA_FILE', '/home/ddns/ddns.json');
define('DDNS_DOMAIN', '');
header("Content-type: text/plain");
ariia-git /
Created Jul 3, 2018 — forked from simenbrekken/
Super simple Backbone + Express + MongoDB REST backend application


If you're on OSX you're probably best off using Homebrew to install this stuff:

$ brew install node mongodb


ariia-git / chatServer.js
Created May 31, 2018 — forked from creationix/chatServer.js
A simple TCP based chat server written in node.js
View chatServer.js
// Load the TCP Library
net = require('net');
// Keep track of the chat clients
var clients = [];
// Start a TCP Server
net.createServer(function (socket) {
// Identify this client
ariia-git /
Created Jan 22, 2018 — forked from soarez/
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

ariia-git / jira-behing-nginx-ssl
Created Oct 28, 2017 — forked from jtbonhomme/jira-behing-nginx-ssl
Atlassian JIRA behind nginx + SSL
View jira-behing-nginx-ssl
# force HTTP to HTTPS - /etc/nginx/conf.d/nonssl.conf
server {
listen 80;
access_log off;
return 301 https://$server_name$request_uri;
# /etc/nginx/conf.d/jira.conf
server {
#!/usr/bin/env python
import sys, getopt, csv, pprint
from pymongo import MongoClient
global_mongo = None
global_db = None
global_coll = None
def usage(msg):
ariia-git /
Last active Jun 11, 2016 — forked from gboudreau/
How to compile ffmpeg on Amazon Linux (EC2)
# Based on instructions found here:
if [ "`/usr/bin/whoami`" != "root" ]; then
echo "You need to execute this script as root."
exit 1
cat > /etc/yum.repos.d/centos.repo<<EOF
ariia-git / SecureSessionHandler.php
Created Oct 12, 2015 — forked from eddmann/SecureSessionHandler.php
Secure session handler implementation.
View SecureSessionHandler.php
class SecureSessionHandler extends SessionHandler {
protected $key, $name, $cookie;
public function __construct($key, $name = 'MY_SESSION', $cookie = [])
$this->key = $key;
$this->name = $name;