Skip to content

Instantly share code, notes, and snippets.


Gareth Jones symm

Block or report user

Report or block symm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:d653e6374c8d834aa9407eea10ebac36
# File: /usr/local/etc/rc.d/
# Enable TLER for drives on boot of Synology
case $1 in
smartctl -d sat -l scterc,70,70 /dev/sda
smartctl -d sat -l scterc,70,70 /dev/sdb
symm / connect.php
Created Feb 8, 2018 — forked from sators/connect.php
PHP MySQLi Amazon Aurora RDS EC2 IAM Role Based Authentication
View connect.php
/********* CONFIG ********/
$clusterEndpoint = "";
$clusterPort = 3306;
$clusterRegion = "us-east-1";
$dbUsername = "";
$dbDatabase = "";
View gist:b4667db3b89f507073e71a20c0e38178
View basic-server.js
"use strict";
// Optional. You will see this name in eg. 'ps' or 'top' command
process.title = 'node-chat';
// Port where we'll run the websocket server
var webSocketsServerPort = 1337;
// websocket and http servers
var webSocketServer = require('websocket').server;
symm / chat-frontend.js
Created Dec 18, 2017 — forked from martinsik/chat-frontend.js
Node.js chat frontend and server
View chat-frontend.js
$(function () {
"use strict";
// for better performance - to avoid searching in DOM
var content = $('#content');
var input = $('#input');
var status = $('#status');
// my color assigned by the server
var myColor = false;
symm / Rakefile
Created Nov 16, 2012
Pingomatic task for Octopress blogging
View Rakefile
desc 'Ping pingomatic'
task :pingomatic do
require 'xmlrpc/client'
cfg = YAML.load_file("_config.yml")
puts '* Pinging ping-o-matic''', '/').call('weblogUpdates.extendedPing', "#{cfg['title']}" , "#{cfg['url']}", "#{cfg['subscribe_rss']}")
rescue LoadError
puts '! Could not ping ping-o-matic, because XMLRPC::Client could not be found.'
symm /
Created Oct 25, 2017 — forked from OnlyInAmerica/
Create Mega Adblock Hostsfile for use with Dnsmasq (Modified from Pi-hole)
# Modified Pi-hole script to generate a generic hosts file
# for use with dnsmasq's addn-hosts configuration
# original :
# The Pi-hole now blocks over 120,000 ad domains
# Address to send ads to (the RPi)
View superfortress.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gm9_autorun_script_stage_1.txt
# Install boot9strap, copy files to another SD and copy luma to CTRNAND
# last changed: 20170923
# author: Some1CP
set SUCCESSMSG "Install + Copy completed successfully"
# Allow NAND writing
allow S:/firm0.bin
allow S:/firm1.bin
allow S:/sector0x96.bin
You can’t perform that action at this time.