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.
git clone https://github.com/tigefa4u/tigefa4u.github.io.git
cd tigefa4u.github.io
jekyll serve

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
@tigefa4u
tigefa4u / composer-gitonomy
Last active January 1, 2016 21:19
gitonomy composer.json
{
"name": "gitonomy/gitonomy",
"description": "Git repositories inside your infrastructure",
"license": "MIT",
"authors": [
{
"name": "Alexandre Salomé",
"email": "alexandre.salome@gmail.com",
"homepage": "http://alexandre-salome.fr"
},
@tigefa4u
tigefa4u / parameters.yml
Created January 1, 2014 00:29
gitonomy config.yml
parameters:
# Database
database_driver: pdo_mysql
database_host: 127.12.17.130
database_port: 3306
database_name: gitonomy
database_user: adminAfeyCHB
database_password: W3dKXiieM8Im
# Security
@tigefa4u
tigefa4u / settings.php
Last active January 1, 2016 23:19
drupal settings.php for appfog
<?php
/**
* @file
* Drupal site-specific configuration file.
*
* IMPORTANT NOTE:
* This file may have been set to read-only by the Drupal installation program.
* If you make changes to this file, be sure to protect it again after making
* your modifications. Failure to remove write permissions to this file is a
@tigefa4u
tigefa4u / wp-config.php
Created January 2, 2014 06:47
wordpress wp-config.php for appfog
<?php
/**
* The base configurations of the WordPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
* This file is used by the wp-config.php creation script during the
@tigefa4u
tigefa4u / database.yml
Last active May 30, 2016 00:51
redmine database.yml for Openshift and Ruby On Rails
# Default setup is given for MySQL with ruby1.8. If you're running Redmine
# with MySQL and ruby1.9, replace the adapter name with `mysql2`.
# Examples for PostgreSQL and SQLite3 can be found at the end.
# rename database.yml
production:
adapter: mysql2
database: <%= ENV['OPENSHIFT_APP_NAME'] %>
host: <%= ENV['OPENSHIFT_MYSQL_DB_HOST'] %>
username: <%= ENV['OPENSHIFT_MYSQL_DB_USERNAME'] %>