This file contains 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
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" |
This file contains 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
# 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 | |
# |
This file contains 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
- 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 |
This file contains 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
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 |
This file contains 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
package generic_test | |
import ( | |
. "github.com/cloudfoundry/cli/generic" | |
. "github.com/onsi/ginkgo" | |
. "github.com/onsi/gomega" | |
) | |
func init() { | |
Describe("generic maps", func() { |
This file contains 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 | |
# 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 |
This file contains 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
# 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 |
This file contains 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
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" |
This file contains 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
chmod -R a+rx /usr/lib64/python2.7/site-packages | |
chmod -R a+rx /usr/lib/python2.7/site-packages |
NewerOlder