Install Package Control for easy package management.
- Open the console with
Ctrl+` - Paste in the following:
| Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
| Enable-RemoteDesktop | |
| cinst fiddler4 | |
| cinst git-credential-winstore | |
| cinst console-devel | |
| cinst sublimetext3 | |
| #cinst poshgit | |
| #cinst dotpeek |
| #!/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 |
| 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() |
Install Package Control for easy package management.
Ctrl+`
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.
new-server.local.domainBuild, username is buildThis gist quickly explains the scenario demo'd by the Docker to Digital Ocean example project.
The repository contains a single file with Go code called main.go that contains application logic to host a counter webservice. There is a Dockerfile that defines how to build the container.
| --- | |
| - digital_ocean: > | |
| state=present | |
| command=ssh | |
| name={{ digitalocean.sshkeyname }} | |
| ssh_pub_key="{{ digitalocean.sshkey }}" | |
| client_id={{ digitalocean.clientid }} | |
| api_key={{ digitalocean.apikey }} | |
| - digital_ocean: > |
| #!/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- ") |
| #!/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" |
| #!/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" |