Skip to content

Instantly share code, notes, and snippets.

View alex-phillips's full-sized avatar

Alex Phillips alex-phillips

View GitHub Profile
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@alex-phillips
alex-phillips / SzechuanSauce.txt
Created October 7, 2017 22:16 — forked from xinmyname/SzechuanSauce.txt
Szechuan Sauce from Binging with Babish
Szechuan Sauce
1/2 cup water
1/2 cup white vinegar
1/2 cup sugar
1/2 cup soy sauce
1 tbs apple cider vinegar
1/2 tsp sesame seed oil
1/4 tsp garlic powder
1/4 tsp onion powder
@alex-phillips
alex-phillips / etc_docker_daemon.json
Created September 25, 2017 12:23
Change default docker network
{
"bip": "172.18.0.1/24"
}
import React, { Component } from 'react';
import { Line } from 'react-chartjs-2';
import Utils from '../../utils';
import Config from '../../config';
const brandPrimary = '#20a8d8';
const brandSuccess = '#4dbd74';
const brandInfo = '#63c2de';
const brandDanger = '#f86c6b';
<?php
$settings_base_dir = '/Users/exonintrendo';
$network_interface = 'ppp0';
if (file_exists("$settings_base_dir/.deluge_starter.lock")) {
log_msg("Lock file exists. Exiting.");
exit;
}
<?php
class VPNNetMonitoring extends Primer\Console\Command\BaseCommand
{
private $vpnInterface = 'ppp0';
public function configure()
{
$this->setName('netmon:transmission');
$this->setDescription("Monitoring the necessary network interface to bind all Transmission traffic through");

Keybase proof

I hereby claim:

  • I am alex-phillips on github.
  • I am alexphillips (https://keybase.io/alexphillips) on keybase.
  • I have a public key whose fingerprint is 5BF9 48EB 30B2 41D7 8A77 FF5C BD8E 652D 4BB0 38A7

To claim this, I am signing this object:

@alex-phillips
alex-phillips / titon.hh
Last active August 29, 2015 14:16
Sample Titon console app
<?hh
require_once('./vendor/autoload.php');
use Titon\Console\Kernel;
use Titon\Console\Console;
use Titon\Console\Input;
use Titon\Console\Output;
use Titon\Kernel\Middleware\Pipeline;
@alex-phillips
alex-phillips / 0_reuse_code.js
Last active August 29, 2015 14:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@alex-phillips
alex-phillips / TypeComparison.php
Last active August 29, 2015 14:09
PHP vs JS Loose Comparisons with '=='
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Problem, Boole?</title>
<style>
body {
font-family: Verdana, Geneva, sans-serif;
}