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
@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"}
@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 / 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 / Install-Docker-on-Linux-Mint.sh
Created November 21, 2015 18:00
Install Docker on Linux Mint 17.3
##########################################
# To run:
# curl -sSL https://gist.githubusercontent.com/sethbergman/955f6ad392fff733a62c/raw/41c229998634df722cefdd589da121af624bf2ce/Install-Docker-on-Linux-Mint.sh | bash -x
##########################################
# Check that HTTPS transport is available to APT
if [ ! -e /usr/lib/apt/methods/https ]; then
sudo apt-get update
sudo apt-get install -y apt-transport-https
fi
@sethbergman
sethbergman / webdev_online_resources.md
Created August 2, 2018 08:12 — forked from synch-cc/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@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:

@sethbergman
sethbergman / Node.js-on-Heroku-Guide.md
Created July 14, 2015 12:59
Getting Started with Node.js on Heroku

Node.js on Heroku Guide

Heroku Dev Center

Prepare the app

git clone https://github.com/heroku/node-js-getting-started.git
cd node-js-getting-started

Setup Remote Repository

@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"}
#!/bin/bash
# <UDF name="hostname" label="The hostname for the new Linode" example="apps">
# <UDF name="fqdn" label="The new Linode's Fully Qualified Domain Name" example="apps.example.com">
# <UDF name="adminuser" label="Username for new admin user (cannot be dokku)">
# <UDF name="adminpass" label="Password for new admin user">
# <UDF name="adminkey" label="SSH public key authorized for admin user (password SSH auth will be disabled)">
# <UDF name="dokkukey" label="SSH public key authorized for dokku user (used when deploying apps)">
# Turn off password authentication and root login for SSH