Skip to content

Instantly share code, notes, and snippets.

View ralphcrisostomo's full-sized avatar

Ralf Crisostomo ralphcrisostomo

  • Goodstuff
  • Australia
View GitHub Profile
@ralphcrisostomo
ralphcrisostomo / xampp_proxy_server_config
Created November 8, 2012 02:37
XAMPP Proxy Server Config
1. Open /Applications/XAMPP/etc/httpd.conf
2. Enable the following Modules by removing the # at the front of the line.
- LoadModule rewrite_module modules/mod_rewrite.so
- LoadModule proxy_module modules/mod_proxy.so
- LoadModule proxy_http_module modules/mod_proxy_http.so
3. Copy and Paste below to the bottom of httpd.conf
# Implements a proxy/gateway for Apache.
@ralphcrisostomo
ralphcrisostomo / path
Created November 28, 2012 04:39
PATH
# --------------
# PATH
# --------------
export LC_CTYPE="en_US.UTF-8"
PATH=/usr/bin:/bin:/usr/sbin:/sbin
export PATH
# add custom, local installations to PATH
PATH=/usr/local/bin:/usr/local/sbin:"$PATH"
@ralphcrisostomo
ralphcrisostomo / initial.setup.mac.workflow.md
Last active December 13, 2015 20:38
My Initial Setup for Mac Workflow
@ralphcrisostomo
ralphcrisostomo / .zshrc
Last active December 13, 2015 20:38
My .zshrc file
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
# ZSH_THEME="robbyrussell"
ZSH_THEME="doubleend"
@ralphcrisostomo
ralphcrisostomo / httpd.conf
Last active November 20, 2022 08:12
Create an alias directory in XAMPP
# Create an alias directory in XAMPP
# Ref: http://www.mauriciomunera.com/?p=127
# Ref: https://gist.github.com/ralphcrisostomo/4974674/
# Open the file /Applications/xampp/etc/httpd.conf in a text editor.
# Add these lines to the end of the files. (change the name of the alias for the web application that suits better for you)
<IfModule alias_module>
#
# Redirect: Allows you to tell clients about documents that used to
# exist in your server's namespace, but do not anymore. The client
# will make a new request for the document at its new location.
@ralphcrisostomo
ralphcrisostomo / auto.reload.html
Created February 21, 2013 06:06
Auto Reload Page
<!DOCTYPE html>
<html>
<head>
<title>Auto Reload</title>
<meta http-equiv="refresh" content="15">
</head>
<body>
</body>
</html>
@ralphcrisostomo
ralphcrisostomo / responsive.scss
Last active December 14, 2015 00:59
Responsive SCSS
/* #Media Queries
================================================== */
/* Smaller than standard 960 (devices and browsers) */
@media only screen and (max-width: 959px) {}
/* Tablet Portrait size to standard 960 (devices and browsers) */
@media only screen and (min-width: 768px) and (max-width: 959px) {}
/* All Mobile Sizes (devices and browser) */
function git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo "$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX"
}
function get_pwd() {
print -D $PWD
}
function battery_charge() {
@ralphcrisostomo
ralphcrisostomo / sass.flow.scss
Created February 26, 2013 02:55
My SASS Best Practice
# Variables
$BLUE : blue ;
# Mixins
# Non-Semantic CSS
%color-blue {
color : $BLUE
@ralphcrisostomo
ralphcrisostomo / .vimrc
Created March 9, 2013 20:18
Jose Mota .vimrc
set nocompatible
call pathogen#infect()
call pathogen#helptags()
let mapleader = ","
syntax enable
" Mappings {{{
" Insert mode mappings {{{