Head over to https://github.com/waja/debian-update-cheatsheets/blob/wheezy2jessie/wheezy2jessie.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Originally from: https://coderwall.com/p/ftn1la/markdown-preview-using-ruby-and-sinatra-simple-script | |
# gem install sinatra redcarpet rouge --no-document | |
require 'sinatra' | |
require 'redcarpet' | |
require 'rouge' | |
require 'rouge/plugins/redcarpet' | |
set :port, 3001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Example for the Docker Hub V2 API | |
# Returns all imagas and tags associated with a Docker Hub user account. | |
# Requires 'jq': https://stedolan.github.io/jq/ | |
# set username and password | |
UNAME="" | |
UPASS="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Installs/Configures: | |
# - Docker | |
# - Docker Registy Container with self-signed cert | |
# | |
# Tested on Ubuntu 14.04.1 | |
# Must be executed with elevated privilages | |
if [ "$(id -u)" != "0" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# shows how to use the Ruby AWS SDK to list EC2 instance IDs | |
# when your API credentials have been placed under MFA requirements | |
# Prerequisites: | |
# you are running on a host that already has the AWS CLI set up with an IAM key pair | |
# that can describe EC2 instances (OTHERWISE, just pass a | |
# secret_access_id / secret_access_key pair to the STS client initializer) | |
# You have installed the Ruby AWS SDK Gem | |
# http://aws.amazon.com/sdk-for-ruby/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cat 7560.conf | |
object Host "7560-server" { | |
import "test-generic-host" | |
address = "127.0.0.1" | |
check_command = "hostalive" | |
vars.interfaces["eth0"] = { | |
//vars.interfaces.eth0 = { | |
"2dcoord" = "3,5" | |
port = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# %W% %E% | |
# | |
# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. | |
# | |
# Version | |
version=1 | |
# Component Font Mappings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Based on https://github.com/dennishafemann/tmux-cssh/blob/master/tmux-cssh | |
tmux_session_name="multissh" | |
tmux new-session -d -s "${tmux_session_name}" "ssh $1" | |
shift | |
hosts="${@}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |