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 / howto-manually-add-trust-cert-to-rubygems.md
Last active August 29, 2015 14:26
Workaround RubyGems' SSL errors on Ruby for Windows (RubyInstaller)

SSL upgrades on rubygems.org and RubyInstaller versions

UPDATE 2014-12-21: RubyGems 1.8.30, 2.0.15 and 2.2.3 have been released. It requires manual installation, please see instructions below.


Hello,

If you reached this page, means you've hit this SSL error when trying to

@sethbergman
sethbergman / cmder.md
Created August 6, 2015 13:58
Cmder - Windows Console Emulator

Cmder

Join the chat at https://gitter.im/bliker/cmder

Latest release is v1.2

Cmder is a software package created out of pure frustration over absence of usable console emulator on Windows. It is based on ConEmu with major config overhaul. Monokai color scheme, amazing clink and custom prompt layout.

Cmder Screenshot

/* GitHub stylesheet for MarkdownPad (http://markdownpad.com) */
/* Author: Nicolas Hery - http://nicolashery.com */
/* Version: b13fe65ca28d2e568c6ed5d7f06581183df8f2ff */
/* Source: https://github.com/nicolahery/markdownpad-github */
/* RESET
=============================================================================*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
@sethbergman
sethbergman / Dockerfile
Created September 23, 2015 03:19 — forked from felixrabe/Dockerfile
Source code for my blog post "Simple Blog Deployment using Ghost and Docker"
# DOCKER-VERSION 1.1.2
FROM ubuntu:14.04
# Speed up apt-get according to https://gist.github.com/jpetazzo/6127116
RUN echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/02apt-speedup
RUN echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache
# Update the distribution
ENV DEBIAN_FRONTEND noninteractive
@sethbergman
sethbergman / Dockerfile
Created November 13, 2015 23:35
docker tag <image> <newName>/<repoName>:<tagName>
FROM busybox:ubuntu-14.04
RUN echo “#!/bin/sh\n” > /test.sh
RUN echo “echo \”this is version 1\”” >> /test.sh
ENTRYPOINT [“sh”, “/test.sh”]
@sethbergman
sethbergman / ec2_instance_setup.sh
Last active November 16, 2015 21:27
Create new ec2 instance and SSH into it with this bash script. | Needs instance_installs.sh with all configuration variables to initiate installation.
#!/bin/bash
# Authorize TCP, SSH & ICMP for default Security Group
#ec2-authorize default -P icmp -t -1:-1 -s 0.0.0.0/0
#ec2-authorize default -P tcp -p 22 -s 0.0.0.0/0
# The Static IP Address for this instance:
IP_ADDRESS=$(cat ~/.ec2/ip_address)
# Create new t1.micro instance using ami-af7e2eea (64 bit Ubuntu 10.10 Maverick Meerkat)
@sethbergman
sethbergman / Cloud_Config_Examples.yaml
Created November 17, 2015 14:48
Chef and Puppet Configurations
.. _yaml_examples:
=========
Cloud config examples
=========
Including users and groups
---------------------------
.. literalinclude:: ../../examples/cloud-config-user-groups.txt
@sethbergman
sethbergman / .drone.yml
Created January 5, 2016 03:55
Python + Drone + Docker publish
cache:
mount:
- wheeldir
build:
image: python:2.7.11
commands:
- pip wheel -r requirements.txt --wheel-dir=wheeldir --find-links=wheeldir
- pip install --use-wheel --no-index --find-links=wheeldir -r requirements.txt
- nosetests -v test/
@sethbergman
sethbergman / dokku_on_digital_ocean.md
Created January 10, 2016 23:12 — forked from henrik/dokku_on_digital_ocean.md
Notes from running Dokku on Digital Ocean.

My notes for Dokku on Digital Ocean.

Commands

Install dokku-cli (gem install dokku-cli) for a more Heroku-like CLI experience (dokku config:set FOO=bar).

# List/run commands when not on Dokku server (assuming a "henroku" ~/.ssh/config alias)
ssh henroku dokku
ssh henroku dokku config:get my-app