Skip to content

Instantly share code, notes, and snippets.

chmod -R a+rx /usr/lib64/python2.7/site-packages
chmod -R a+rx /usr/lib/python2.7/site-packages
Visor:~:% curl -I https://api.github.com/repos/ozoneplatform/owf/commits | grep Link:
Link: <https://api.github.com/repositories/6943316/commits?page=2>; rel="next"
@dlapiduz
dlapiduz / preseed.cfg
Created December 19, 2014 02:08
Ubuntu Preseed
# Some inspiration:
# * https://github.com/chrisroberts/vagrant-boxes/blob/master/definitions/precise-64/preseed.cfg
# * https://github.com/cal/vagrant-ubuntu-precise-64/blob/master/preseed.cfg
# English plx
d-i debian-installer/language string en
d-i debian-installer/locale string en_US.UTF-8
d-i localechooser/preferred-locale string en_US.UTF-8
d-i localechooser/supported-locales en_US.UTF-8
#!/bin/sh
# Make bin folder
mkdir -p $HOME/bin
# Get bootstrap
curl https://github.com/dlapiduz/tmate-bootstrap/releases/download/v0.0.1/tmate-bootstrap > $HOME/bin/tmate-bootstrap
# Make the temporary file executable
chmod +x $HOME/bin/tmate-bootstrap
@dlapiduz
dlapiduz / map_test.go
Created June 12, 2015 03:10
Manifest inheritance merge
package generic_test
import (
. "github.com/cloudfoundry/cli/generic"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
func init() {
Describe("generic maps", func() {
def set_rnd_pass
digitpct = 0.4
letterset = ('A'..'Z').to_a - ['I', 'O']
#begin
passwd = ''
8.times do
if rand < digitpct
passwd << rand(10).to_s
else
@dlapiduz
dlapiduz / System setup
Created August 20, 2009 23:29
System Setup
- Install Xcode http://developer.apple.com/mac/scripts/downloader.php?path=/Developer_Tools/xcode_3.1.3_developer_tools/xcode313_2736_developerdvd.dmg
- Rename mac ruby:
sudo bash
mv /usr/bin/ruby /usr/bin/ruby.orig
mv /usr/bin/gem /usr/bin/gem.orig
mv /usr/bin/rails /usr/bin/rails.orig
logout
- Install Macports: http://www.macports.org/install.php
# Configuration supporting multiple users with any type of
# IPsec/L2TP client. This includes the updated Windows 2000/XP
# (MS KB Q818043), Vista and Mac OS X 10.3+ but excludes the
# non-updated Windows 2000/XP.
#
# Authenticates through a Pre-Shared Key. Supports clients that
# are not behind NAT. Does not support clients that are behind NAT.
conn L2TP-PSK
#
cat ~/.ssh/id_rsa.pub | ssh account@remoteserver.com "mkdir ~/.ssh 2>/dev/null; chmod 700 ~/.ssh; cat - >> .ssh/authorized_keys; chmod 644 ~/.ssh/authorized_keys"
@dlapiduz
dlapiduz / eydeploy.rb
Created April 20, 2012 23:13
config/eydeploy.rb
def conditionally_enable_maintenance_page
return true
end