View now.js
export default () => new Date()
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 vscode.json
{
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.fontSize": 14,
"workbench.colorTheme": "Dark Candy",
}
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)
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;
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;
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'