Skip to content

Instantly share code, notes, and snippets.

###
#Step 1 - Generate server certificates etc... (most of this code is horribly ripped off from nodejs docs currently -> http://nodejs.org/docs/latest/api/tls.html)
###
#Assuming your starting from a clean directory
mkdir server
cd server
#generate private key
start /wait msiexec /i Octopus.Tentacle.<version>.msi /quiet INSTALLLOCATION=C:\Octopus
cd C:\Octopus\Agent
tentacle configure --appdir="C:\Applications" --port=10933 --trust=<server-thumbprint>
tentacle new-certificate
tentacle install
tentacle register-with --server=<server-url> --environment=<environment> --role=<role> --apikey=<some-user-apikey>
octo deploy-release --project=<project-name> --deployto=<environment-to-deploy> --version=<version-to-deploy> --server=<server-url> --apikey=<some-user-apikey>
{
"Description" : "Template to create a US proxy server",
"Parameters" : {
"KeyName" : {
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instances",
"Type" : "String"
},
"VPNServerPort" : {
"Description" : "TCP/IP port of the OpenVPN server",
"Type" : "String",
#!/usr/bin/env python
import apt, os, re, sys, subprocess
if os.path.exists('/var/run/reboot-required'):
print 'reboot-required marker file exists'
sys.exit(1)
kernels = []
#!/bin/bash
# please install aws-cli first
# easy_install pip
# pip install awscli
# project parameters
PROJECT_NAME='SomeCoolPropject'
SAMPLE_COUNT=20;
INTERVAL=0.5;
wget -O /opt/cw.zip http://ec2-downloads.s3.amazonaws.com/cloudwatch-samples/CloudWatchMonitoringScripts-v1.1.0.zip
unzip /opt/cw.zip -d /opt/
rm -f /opt/cw.zip
yum install -y openssl openssl-devel perl-ExtUtils-MakeMaker
curl -L http://cpanmin.us | perl - --self-upgrade
cpanm Digest::SHA Bundle::LWP5_837 LWP LWP::Protocol::https
IAM_ROLE=`curl http://169.254.169.254/latest/meta-data/iam/security-credentials/`
DISK_PARAM=`mount |grep -E '[s|xv]d|mapper' | awk '{print "--disk-path="$3}' | tr '\n' ' '`

Successfully installed OS X Yosemite on my Sony VAIO F11M1R/H.

Problems:

  • I had to buy USB sound card for $10 (Viewcon VE533 works for me), because I couldn't find audio drivers.
  • OS X won't connect to password protected Wi-Fi networks, so I had to remove a password.

So here's the steps that I followed:

  1. Make a bootable flash drive using UniBeast tool

#If you're on Ubuntu or working with a Linux VM...

Step 1: Install the Ubuntu dependencies needed:

SSH into your server as a root or do sudo -i.

Then install necessary software:

apt-get update
@jamesbjackson
jamesbjackson / gist:aa84c53cab1c54c0f812
Last active August 29, 2015 14:26 — forked from jdoconnor/gist:32ef0314cecb80157c4e
Update mtimes based off commit time
#!/bin/bash -e
####
# based on https://gist.github.com/jeffery/1115504
# Helper script to update the Last modified timestamp of files in a Git SCM
# Projects working Copy
#
# When you clone a Git repository, it sets the timestamp of all the files to the
# time when you cloned the repository.
#
# This becomes a problem when you want the cloned repository, which is part of a
@jamesbjackson
jamesbjackson / websocket-fallback.js
Created September 23, 2011 17:27 — forked from theturtle32/websocket-fallback.js
Example of how to fallback to alternative websocket library for old protocol clients.
#!/usr/bin/env node
var WebSocketRequest = require('websocket').request;
var http = require('http');
var server = http.createServer(function(request, response) {
console.log((new Date()) + " Received request for " + request.url);
response.writeHead(404);
response.end();
});
server.listen(8080, function() {