This file contains hidden or 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
# From ubuntu 12.04 | |
FROM ubuntu:latest | |
RUN echo "#!/bin/sh\nexit 101" > /usr/sbin/policy-rc.d; chmod +x /usr/sbin/policy-rc.d;\ | |
dpkg-divert --local --rename --add /sbin/initctl;\ | |
ln -s /bin/true /sbin/initctl | |
ADD ./init.sh /tmp/init.sh | |
RUN /bin/bash /tmp/init.sh && rm /tmp/init.sh |
This file contains hidden or 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
export DEBIAN_FRONTEND=noninteractive | |
echo "deb http://archive.ubuntu.com/ubuntu/ precise main universe" > /etc/apt/sources.list; apt-get update; | |
apt-get -y install apache2 php5 php5-gd libapache2-mod-php5 postfix wget supervisor ssh php5-pgsql vim curl libcurl3 libcurl3-dev php5-curl php5-xmlrpc php5-intl | |
echo "root:admin" | chpasswd; mkdir /var/run/sshd | |
cd /tmp; tar zxvf moodle-2.6.tgz; mv /tmp/moodle /var/www |
This file contains hidden or 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/sh | |
wget http://nodejs.org/dist/v0.10.22/node-v0.10.22-linux-x64.tar.gz | |
tar zxvf node-v0.10.22-linux-x64.tar.gz | |
mv node-v0.10.22-linux-x64 /opt/node | |
ln -s /opt/node/bin/node /bin/node | |
ln -s /opt/node/bin/npm /bin/npm | |
npm install -g coffee-script bower express |
This file contains hidden or 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
if ( (Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null ) { | |
Add-PSSnapin Microsoft.SharePoint.PowerShell | |
} | |
$user = "mkunze" | |
$site = get-spsite("https://domain.com/mysites") | |
$context = [Microsoft.Office.Server.ServerContext]::GetContext($site) | |
$upm = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($context) |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "ubuntu" | |
# The url from where the 'config.vm.box' box will be fetched if it | |
# doesn't already exist on the user's system. |
This file contains hidden or 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
# To run this, grab the x64 node.js binary tarball and extract it to ~/node | |
# | |
# Then: | |
# ln -s ~/node/bin/node ~/bin/node; ln -s ~/node/bin/npm ~/bin/npm | |
# npm install coffee-script | |
# ln -s ~/node_modules/coffee-script/bin/coffee ~/bin/coffee | |
# | |
# Run: | |
# coffee timer.coffee |
This file contains hidden or 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
FROM nodebuntu | |
RUN apt-get -y install apache2 php5 php5-mysql mysql-server php5-gd wget postfix | |
RUN rm /etc/postfix/main.cf | |
ADD ./main.cf /etc/postfix/main.cf | |
ADD ./mailname /etc/mailname |
This file contains hidden or 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
spawn = require('child_process').spawn | |
dohttpd = ()-> | |
httpd = spawn '/etc/init.d/apache2', ['start'] | |
httpd.stdout.setEncoding 'utf8' | |
httpd.stderr.setEncoding 'utf8' | |
httpd.stdout.on 'data', (data)-> | |
console.log data |
This file contains hidden or 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
require './nosql' | |
require 'async' | |
# new results array. this will be available via closure | |
results = [] | |
# Start the NoSQL connection | |
nosql.connect ()-> | |
# Get the collection pointer |
This file contains hidden or 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
function car() { | |
// Private Variable | |
var val = { | |
make : "generic", | |
model : "generic", | |
color : "generic" | |
}; | |
// "new" instance |
NewerOlder