Skip to content

Instantly share code, notes, and snippets.

View tigefa4u's full-sized avatar
📉
🚀 😧 ☕ 🚬

Sugeng Tigefa tigefa4u

📉
🚀 😧 ☕ 🚬
View GitHub Profile
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.

Working With Github Pages

The FAQ maintained by Github covers most stumbling blocks, some other tips and tricks supplied here.

Gitignore

Add _site to .gitignore. The generated site should not be uploaded to Github since its gets generated by github.

Working With Code Partials

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

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
@tigefa4u
tigefa4u / redmine
Last active August 29, 2015 14:01 — forked from thanhhh/redmine
#! /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
  1. sudo apt-get purge apache2

  2. sudo /etc/init.d/apache2 stop

  3. sudo update-rc.d -f apache2 remove

  4. sudo rm -rf /etc/apache2

  5. sudo rm /etc/init.d/apache2

@tigefa4u
tigefa4u / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@tigefa4u
tigefa4u / maxmind_update.sh
Created January 8, 2016 18:01 — forked from vstoykov/maxmind_update.sh
Download MaxMind free database and place it in default location for pygeoip
#!/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"
@tigefa4u
tigefa4u / ubuntu-server-setup.md
Last active January 27, 2016 17:44 — forked from jasperf/ubuntu-server-setup.md
Ubuntu Server Setup History installing Apache, mysql, PHP, git, SSH, WordPress using Backup buddy backup #lamp #ubuntu #wordpress

Ubuntu Server Setup

Installing LAMP Stack

Update All

sudo apt-get update