Skip to content

Instantly share code, notes, and snippets.

View sethbergman's full-sized avatar
🐋
Building Docker Images for Dell Technologies

Seth Bergman sethbergman

🐋
Building Docker Images for Dell Technologies
View GitHub Profile
@ben-ng
ben-ng / parser.js
Created July 19, 2013 18:10
Heroku DB URL parser
function parse_url(str, component) {
// http://kevin.vanzonneveld.net
// + original by: Steven Levithan (http://blog.stevenlevithan.com)
// + reimplemented by: Brett Zamir (http://brett-zamir.me)
// + input by: Lorenzo Pisani
// + input by: Tony
// + improved by: Brett Zamir (http://brett-zamir.me)
// + improved by: Ben Ng (http://benng.me)
// % note: Based on http://stevenlevithan.com/demo/parseuri/js/assets/parseuri.js
// % note: blog post at http://blog.stevenlevithan.com/archives/parseuri
@craigeley
craigeley / reporter_to_airtable.rb
Last active March 16, 2017 09:55
An example of moving Reporter entries to Airtable in near-real time using Reporter's JSON output and the Airtable API.
#!/usr/bin/env ruby
# Scipt Example for Moving Reporter Entries to Airtable Rows in near-real time
require 'time'
require 'json'
# To prevent encoding errors on OSX
if RUBY_VERSION =~ /2.*.*/
Encoding.default_external = Encoding::UTF_8
Encoding.default_internal = Encoding::UTF_8
// server/app.js
const express = require('express');
const morgan = require('morgan');
const path = require('path');
const app = express();
// Setup logger
app.use(morgan(':remote-addr - :remote-user [:date[clf]] ":method :url HTTP/:http-version" :status :res[content-length] :response-time ms'));
@sethbergman
sethbergman / cloudSettings
Last active July 8, 2018 00:01
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-07-08T00:01:14.381Z","extensionVersion":"v2.9.2"}
@sethbergman
sethbergman / keybase.md
Created April 24, 2018 06:20
sethbergman - keybase

Keybase proof

I hereby claim:

  • I am sethbergman on github.
  • I am sethbergman (https://keybase.io/sethbergman) on keybase.
  • I have a public key ASBjHXfozXkY4xQx-GhGOPg6SGVbwz4kNHPp3gDsWCdB_go

To claim this, I am signing this object:

@synch-cc
synch-cc / webdev_online_resources.md
Created August 2, 2018 07:56 — forked from ParryQiu/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@reidransom
reidransom / crawl_site
Last active August 15, 2018 22:00
Download an entire website with wget
wget \
--recursive \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \
--restrict-file-names=windows \
--domains website.org \
--no-parent \
www.website.org/tutorials/html/
@sethbergman
sethbergman / add-ssh-key.sh
Last active October 28, 2018 21:00
Add SSH Keys
# linux script to add a new ssh key to a bunch of different domains to which you have ssh access
# key_to_add.txt is a text file containing the ssh key and should be in the same directory
# add valid credentials for however many domains you need to add ssh keys for
# domain1 to add key to
cat key1.txt | ssh root@0.0.0.0 'cat >> ~/.ssh/authorized_keys'
# domain2 to add key to
cat key2.txt | ssh root@0.0.0.0 'cat >> ~/.ssh/authorized_keys'
# domain3 to add key to
cat key3.txt | ssh root@0.0.0.0 'cat >> ~/.ssh/authorized_keys'
@sethbergman
sethbergman / bash-tips.sh
Last active December 5, 2018 18:23
Command Line Tips and Tricks
#!/bin/bash
##############################################################################
# SHORTCUTS
##############################################################################
CTRL+A # move to beginning of line
CTRL+B # moves backward one character
CTRL+C # halts the current command
CTRL+D # deletes one character backward or logs out of current session, similar to exit
@sethbergman
sethbergman / cloudSettings
Last active January 10, 2019 01:39
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-01-10T01:39:07.652Z","extensionVersion":"v3.2.4"}