Skip to content

Instantly share code, notes, and snippets.

View SteveEdson's full-sized avatar

Steve Edson SteveEdson

View GitHub Profile
@SteveEdson
SteveEdson / cloudSettings
Last active October 19, 2017 09:23
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-10-19T09:23:32.280Z","extensionVersion":"v2.8.3"}
// Take a photo on load
takePhoto();
setInterval(() => {
// Take a photo every X minutes, defined in the ENV
takePhoto();
}, 1000 * 60 * parseInt(process.env.PHOTO_INTERVAL, 10));
@SteveEdson
SteveEdson / Dockerfile
Created August 22, 2017 17:53
Dockerfile for project matilda
FROM resin/%%RESIN_MACHINE_NAME%%-node:slim
# switch on systemd init system in container
ENV INITSYSTEM on
COPY . /usr/src/app
WORKDIR /usr/src/app
# Copies the package.json first for better caching on later pushes
COPY package.json package.json

title: Automating optimisations with Gulp date: 2015-03-18T10:06:55+00:00 permalink: /gulp/advanced-tasks excerpt: "Gulp is a powerful task runner, that when used correctly, can vastly improve your workflow." categories:

  • gulp tags:
  • gulp
  • npm

Keybase proof

I hereby claim:

  • I am SteveEdson on github.
  • I am steveedson (https://keybase.io/steveedson) on keybase.
  • I have a public key whose fingerprint is 6945 A97A 2B93 589E FFC1 D47E E9B8 1412 AC0A 0018

To claim this, I am signing this object:

<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script><div id="dc-vadio-wrapper" class="dc-video-on"></div>
<script id="jsbin-javascript">
// Define base url
var url = "https://www.vadio.com:443/embed.php?id=dc-vadio-wrapper&stream=";
// Get current hour
var hour = new Date().getHours;
// Select the appropriate stream
var stream;
@SteveEdson
SteveEdson / 0_reuse_code.js
Created October 27, 2013 23:15
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
<?php
/**
* Sends statistics to the stats daemon over UDP
*
**/
class StatsD {
/**
@SteveEdson
SteveEdson / showcronjobs.sh
Created February 27, 2013 09:34
Show user and system cronjobs
#!/bin/bash
# Taken from http://stackoverflow.com/questions/134906/how-do-i-list-all-cron-jobs-for-all-users
# By yukondude
# System-wide crontab file and cron job directory. Change these for your system.
CRONTAB='/etc/crontab'
CRONDIR='/etc/cron.d'
# Single tab character. Annoyingly necessary.
tab=$(echo -en "\t")