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
https://www.abilitynet.org.uk/news-blogs/how-changing-settings-your-ipad-and-iphone-can-help-people-tremors-and-other-dexterity
View tler.sh
#!/bin/sh
# File: /usr/local/etc/rc.d/tler.sh
# Enable TLER for drives on boot of Synology
case $1 in
start)
smartctl -d sat -l scterc,70,70 /dev/sda
smartctl -d sat -l scterc,70,70 /dev/sdb
;;
stop)
@symm
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
<?php
/********* CONFIG ********/
$clusterEndpoint = "";
$clusterPort = 3306;
$clusterRegion = "us-east-1";
$dbUsername = "";
$dbDatabase = "";
/*************************/
View gist:b4667db3b89f507073e71a20c0e38178
https://stackoverflow.com/questions/6409167/symfony-2-multiple-and-dynamic-database-connection
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
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
symm / Rakefile
Created Nov 16, 2012
Pingomatic task for Octopress blogging
View Rakefile
desc 'Ping pingomatic'
task :pingomatic do
begin
require 'xmlrpc/client'
cfg = YAML.load_file("_config.yml")
puts '* Pinging ping-o-matic'
XMLRPC::Client.new('rpc.pingomatic.com', '/').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.'
end
@symm
symm / make-mega-adblock-hostsfile.sh
Created Oct 25, 2017 — forked from OnlyInAmerica/make-mega-adblock-hostsfile.sh
Create Mega Adblock Hostsfile for use with Dnsmasq (Modified from Pi-hole)
View make-mega-adblock-hostsfile.sh
#!/bin/bash
# Modified Pi-hole script to generate a generic hosts file
# for use with dnsmasq's addn-hosts configuration
# original : https://github.com/jacobsalmela/pi-hole/blob/master/gravity-adv.sh
# The Pi-hole now blocks over 120,000 ad domains
# Address to send ads to (the RPi)
piholeIP="192.168.1.1"
outlist='./final_blocklist.txt'
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.