Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
#! /bin/bash | |
# REDMINE | |
# Maintainer: @thanhhh | |
# App Version: 2.3.1 | |
APP_ROOT="/var/www/redmine" | |
APP_USER="www-data" | |
DAEMON_OPTS="$APP_ROOT/script/rails" | |
# rvm use 2.0.0 --default |
sudo apt-get purge apache2
sudo /etc/init.d/apache2 stop
sudo update-rc.d -f apache2 remove
sudo rm -rf /etc/apache2
sudo rm /etc/init.d/apache2
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
diff --git a/lib/albino.rb b/lib/albino.rb | |
index 387c8e9..b77d55e 100644 | |
--- a/lib/albino.rb | |
+++ b/lib/albino.rb | |
@@ -1,4 +1,5 @@ | |
require 'posix-spawn' | |
+require 'rbconfig' | |
## | |
# Wrapper for the Pygments command line tool, pygmentize. |
The FAQ maintained by Github covers most stumbling blocks, some other tips and tricks supplied here.
Add _site
to .gitignore
. The generated site should not be uploaded to Github since its gets generated by github.
desc 'Generate tags page' | |
task :tags do | |
puts "Generating tags..." | |
require 'rubygems' | |
require 'jekyll' | |
include Jekyll::Filters | |
options = Jekyll.configuration({}) | |
site = Jekyll::Site.new(options) | |
site.read_posts('') |
#!/bin/bash | |
## Versão do OS 13.04 Server 64 Bits | |
## Disco de 30GB e 2GB de RAM | |
## Instalação limpa só com ssh e vi | |
## Vamos instalar com Mysql e Webserver Nginx | |
## Nesse Screencast não vou cobrir a instalação do Ubuntu pois é muito simples | |
## Versão que vai ser instalada é a 6.1 estavel do Gitlab | |
## Passo a passo de Instalação está nesse link | |
## https://github.com/gitlabhq/gitlabhq/blob/6-1-stable/doc/install/installation.md | |
#!/bin/bash | |
if [ `whoami` != 'root' ]; then | |
echo "You must to be root" | |
exit | |
fi | |
DOWNLOAD_URL="http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz" | |
TEMPFILE="/tmp/GeoIPCity.dat" | |
TEMPFILEGZ="$TEMPFILE.gz" | |
GEOIP_DIR="/usr/local/share/GeoIP" |