Skip to content

Instantly share code, notes, and snippets.

@jperkin
jperkin / tools-packages.txt
Last active August 29, 2015 14:03
Tools package set
Date: Wed, 2 Jul 2014 20:07:53 +0100
From: Jonathan Perkin <jperkin@joyent.com>
To: smartos-discuss@lists.smartos.org
Subject: Tools package set now available
Message-ID: <20140702190753.GB77263@joyent.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Hi all,
A while back we discussed providing a separate bootstrap and package
@alastairtree
alastairtree / CreateSite.ps1
Last active July 7, 2021 12:47
IIS site stop and create website/appPool utility scripts
## FYI: These scripts are now maintained in a proper repository:
## https://github.com/alastairtree/deploy-websites-with-powershell
## Intro: Simple powershell script to install (or replace) a local website and app pool
## Usage: CreateSite.ps1 [WebsiteName] [AppPoolName] [Port] [Path] ([domain\user] [password])
## Note : These scripts require local admin priviliges!
# Load IIS tools
Import-Module WebAdministration
sleep 2 #see http://stackoverflow.com/questions/14862854/powershell-command-get-childitem-iis-sites-causes-an-error
@yruss972
yruss972 / gist:92a4060fe2a54f2caa8a
Last active August 29, 2015 14:02 — forked from chakatz/gist:6204134
Compile couchbase 2.5.1 on SmartOS base64 14.1 image (as root)
#
# Setup destination directory
#
export MY_CB_DIR=/opt/couchbase
mkdir ${MY_CB_DIR}
# Install pre-requisite packages
/opt/local/bin/pkgin -y in libtool-base autoconf automake git gcc47 gnupg gmake libevent icu py27-expat snappy erlang-15 subversion-base go gettext
#
@wolstena
wolstena / Vagrantfile
Last active September 13, 2019 07:21
Vagrant multi server
# -*- mode: ruby -*-
# vim: set ft=ruby :
# vim: set smartindent
# vim: set tabstop=2
# vim: set shiftwidth=2
provision = true
vagrant_api_version = "2"
boxes = [
@seyhunak
seyhunak / default.vcl
Created February 10, 2014 17:46 — forked from benclark/default.vcl
Varnish - Mobile Dedection
backend default {
.host = "127.0.0.1";
.port = "8080";
.connect_timeout = 600s;
.first_byte_timeout = 600s;
.between_bytes_timeout = 600s;
}
acl purge {
"localhost";
@aortmannm
aortmannm / gitlab.sh
Last active November 18, 2021 22:12
gitlab installation on smartOS
## Install necessary packages
pkgin up
pkgin -y in \
bash \
coreutils \
curl \
gcc47 \
gcc47-runtime \
gmake \
icu \
@benclark
benclark / default.vcl
Created July 25, 2012 13:56
Varnish config file w/ mobile redirect
backend default {
.host = "127.0.0.1";
.port = "8080";
.connect_timeout = 600s;
.first_byte_timeout = 600s;
.between_bytes_timeout = 600s;
}
acl purge {
"localhost";
@dlutzy
dlutzy / gist:2469037
Created April 23, 2012 05:59
Multi VM Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# David Lutz's Multi VM Vagrantfile
# inspired from Mark Barger's https://gist.github.com/2404910
boxes = [
{ :name => :web, :role => 'web_dev', :ip => '192.168.33.1', :ssh_port => 2201, :http_fwd => 9980, :cpus =>4, :shares => true },
{ :name => :data, :role => 'data_dev', :ip => '192.168.33.2', :ssh_port => 2202, :mysql_fwd => 9936, :cpus =>4 },
{ :name => :railsapp, :role => 'railsapp_dev', :ip => '192.168.33.3', :ssh_port => 2203, :http_fwd => 9990, :cpus =>1}
]