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
openssl genrsa -des3 -out trexglobal.com.key 4096 | |
openssl req -new -key trexglobal.com.key -out trexglobal.com.csr | |
cp -v trexglobal.com.{key,original} | |
openssl rsa -in trexglobal.com.original -out trexglobal.com.key | |
rm -v trexglobal.com.original | |
openssl x509 -req -days 9999 -in trexglobal.com.csr -signkey trexglobal.com.key -out trexglobal.com.crt |
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
# TvHeadEnd Server | |
description "Tvheadend server" | |
start on xbmc-started | |
script | |
su - pi -c "/usr/local/bin/tvheadend -f" | |
exit 0 | |
end script |
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
require "csv" | |
csv = CSV.new(File.read('zone.csv')) | |
dns_servers = ["ns1.dns.net", "ns1.otherdns.net"] | |
csv.each do |row| | |
type = row[0] | |
name = row[1].lstrip |
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
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
brew doctor | |
brew install caskroom/cask/brew-cask | |
brew cask install google-chrome | |
brew cask install mplayerx | |
brew cask install vlc | |
brew cask install java |
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
var gulp = require('gulp'), | |
spawn = require('child_process').spawn, | |
node; | |
var startServer = function() { | |
if (node) node.kill() | |
node = spawn('node', ['--harmony', 'index.js'], { | |
stdio: 'inherit' | |
}) |
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
# Reveal Library | |
chflags nohidden ~/Library | |
# Install homebrew | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
# Install homebrew cask | |
brew install caskroom/cask/brew-cask | |
# Install all necessary sw | |
brew cask install google-chrome | |
brew cask install firefox | |
brew cask install spectacle |
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
# Put this in /etc/logrotate.d/mongodb | |
# http://stackoverflow.com/questions/5004626/mongodb-log-file-growth | |
/var/log/mongo/*.log { | |
daily | |
rotate 30 | |
compress | |
dateext | |
missingok | |
notifempty |
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
# Put this in /etc/logrotate.d/mongodb | |
# http://stackoverflow.com/questions/5004626/mongodb-log-file-growth | |
/var/log/mongo/*.log { | |
daily | |
rotate 30 | |
compress | |
dateext | |
missingok | |
notifempty |
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/bash | |
project_name=app | |
project_url=git@github.com:some/repo.git | |
target_branch=$1 | |
if [ ! -d "/srv/$project_name/repo" ] | |
then | |
echo "Setting up repo for the firts time" |
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
FORMAT: 1A | |
HOST: http://localhost | |
# example api | |
Is example api | |
# Group Users | |
Users related resources of the **Users API** | |
## Users Collection [/users] |
OlderNewer