Skip to content

Instantly share code, notes, and snippets.

View kbourgoin's full-sized avatar

Keith Bourgoin kbourgoin

View GitHub Profile
@kbourgoin
kbourgoin / cloudSettings
Created March 25, 2019 20:30
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-03-25T20:30:21.597Z","extensionVersion":"v3.2.7"}
import calendar
import datetime
import time
import timeit
def toInternal(dt):
if dt is not None:
seconds = calendar.timegm(dt.utctimetuple())
# Avoiding the invalid range of years (100-1899) for mktime in Python < 3
if dt.year not in range(100, 1900):

Keybase proof

I hereby claim:

  • I am kbourgoin on github.
  • I am kbourgoin (https://keybase.io/kbourgoin) on keybase.
  • I have a public key ASCO2RF76ZP-z3_AjR5U3cu_D2XnN0jO6libZH8i78iozAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am kbourgoin on github.
  • I am kbourgoin (https://keybase.io/kbourgoin) on keybase.
  • I have a public key ASDx4_FkU4jn7_JiWAskAfMos-t-qID4pkNuTCR1-BXiiAo

To claim this, I am signing this object:

@kbourgoin
kbourgoin / logs.go
Last active September 25, 2015 00:21
package main
import (
"bufio"
"fmt"
"log"
"net/url"
"os"
"strings"
"time"
#!/bin/sh
# From - http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/
#
# redis - this script starts and stops the redis-server daemon
# Originally from - https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server
#
# chkconfig: - 85 15
# description: Redis is a persistent key-value database
# processname: redis-server
# config: /etc/redis/redis.conf
{
"1": [9, 11, 12],
"2": [6, 14, 12, 9, 5, 1],
"3": [1, 6, 8, 20, 22],
"4": [24, 20, 3, 11],
"5": [2, 1, 6],
"6": [2, 18, 17],
"7": [24, 1, 10, 12, 2],
"8": [3, 14, 6, 1],
"9": [3, 21, 10, 2, 18, 1],
geneA
geneB
geneC
geneA
geneB
geneC