Skip to content

Instantly share code, notes, and snippets.

@theel0ja
theel0ja / Caddyfile
Created July 30, 2017 13:17 — forked from Esmala/index.html
Shep's simplistic city building game
We couldn’t find that file to show.
@theel0ja
theel0ja / functions.php
Last active June 10, 2017 12:49 — forked from Esmala/index.php
Network Status Monitor (Convert colour indications in image to percentages) for www.elisaip.net/utilization.shtml
<?php
// Get coords
function GetCoords() {
$coords = array();
// Non IATA:
// Espoo -> ESP
$coords["HEL2_to_TLL1"] = array(x => 405, y => 286);
$coords["HEL2_to_FRA1"] = array(x => 329, y => 240);
$coords["HEL2_to_ARN4"] = array(x => 345, y => 162);
@theel0ja
theel0ja / mysql_secure.sh
Last active May 8, 2018 17:57 — forked from enoch85/mysql_secure.sh
Automating mysql_secure_installation for MySQL 5.7
#!/bin/bash
apt-get -y install expect
SECURE_MYSQL=$(expect -c "
set timeout 10
spawn mysql_secure_installation
expect \"Enter current password for root:\"