Skip to content

Instantly share code, notes, and snippets.

@bdamusis
bdamusis / gist:8533cf5a664e4bb4a254
Last active August 29, 2015 14:09
Windows Development Boxstarter Script
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
cinst fiddler4
cinst git-credential-winstore
cinst console-devel
cinst sublimetext3
#cinst poshgit
#cinst dotpeek
@ericgray
ericgray / esxiso2pxe
Created March 17, 2014 18:21
Shell script that automates the process of extracting and modifying contents of ESXi ISO for install via PXE boot. See http://www.vcritical.com/2014/03/automatically-prepare-an-esxi-iso-image-for-pxe-booting/
#!/bin/bash
# esxiso2pxe - quickly extract contents of ESXi ISO image for use on a PXE server
# 17Mar2014 - egray
if [ $# != 3 ]; then
echo "Usage: $0 <tftpboot dir> <new dir name> <ESXi ISO file>" >&2
exit 1
fi
@jsoncorwin
jsoncorwin / reboot_droplet.py
Created December 20, 2013 07:30
A quick script to reboot a Digital Ocean droplet that's being finicky.
import argparse
import digitalocean
def reboot_droplet(name, client_id, api_key):
manager = digitalocean.Manager(client_id=client_id, api_key=api_key)
droplets = manager.get_all_droplets()
@ijy
ijy / sublime-text-3-setup.md
Last active January 15, 2024 14:21
My Sublime Text 3 setup.

Sublime Text 3 Setup

Install Package Control

Install Package Control for easy package management.

  1. Open the console with Ctrl+`
  2. Paste in the following:
@dominicsayers
dominicsayers / ubuntu-server-setup.md
Last active December 27, 2015 18:19
Basic setup of Ubuntu server

This is my personal memo for setting up new Ubuntu servers in my environment. It may not be appropriate for your environment but feel free to use it as a starting point.

During setup

  1. Accept all defaults except as listed here.
  2. For the machine name use the full name including the local domain, e.g. new-server.local.domain
  3. Add a user for all build tasks, name is Build, username is build
  4. Do not encrypt the home directory.
  5. Do not use LVM
@routelastresort
routelastresort / gist:6437206
Created September 4, 2013 13:51
example ansible playbook for digitalocean
---
- digital_ocean: >
state=present
command=ssh
name={{ digitalocean.sshkeyname }}
ssh_pub_key="{{ digitalocean.sshkey }}"
client_id={{ digitalocean.clientid }}
api_key={{ digitalocean.apikey }}
- digital_ocean: >
@ttscoff
ttscoff / mmoutline2md.rb
Created August 22, 2013 14:37
Convert a Mindjet MindManager text outline export to Markdown
#!/usr/bin/env ruby
input = STDIN.read
input.gsub!(/^\=+\n ?(.*?)\n\=+/,"# \\1")
input.gsub!(/^-+\n\d+ (.*?)\n-+/,"## \\1")
input.gsub!(/^\d+\.\d+ (.*)/,"### \\1")
input.gsub!(/^\d+\.\d+\./,"@")
input.gsub!(/^@\d+ /,"- ")
input.gsub!(/^@\d+\.\d+ /,"\t- ")
@funkotron
funkotron / docker_create_treeio.sh
Last active December 18, 2019 17:56
Using Docker (requires docker to be installed http://www.docker.io/gettingstarted/ ), spawn a postgresql instance and a dynamically configured treeio instance.
#!/bin/bash
# Description: Using Docker (requires docker to be installed http://www.docker.io/gettingstarted/ ), spawn a postgresql instance and a dynamically configured treeio instance
# Also requires postgresql client tools http://www.postgresql.org/download/linux/ubuntu/
# Run chmod +x to make this file executable then run it: ./docker_create_treeio.sh
# Author: Adam Awan
# Email: adam@tree.io
# Set the port to forward for Tree.io
TREEIO_PORT="80"
@lukemartin
lukemartin / nvhgen
Last active December 17, 2015 05:49
Simple shell script to generate an nginx virtual host. http://luke.is/blogging/nginx-virtual-host-generator/
#!/bin/bash
if [ "$#" -le "1" ]; then
echo "Usage: nvhgen [hostname] [location]"
exit 1
fi
NGINXSA="/etc/nginx/sites-available/"
NGINXSE="/etc/nginx/sites-enabled/"
FILENAME="$1"