Skip to content

Instantly share code, notes, and snippets.

Avatar

Ralf Crisostomo ralphcrisostomo

  • Goodstuff
  • Australia
View GitHub Profile
View 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.
View 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 Dec 13, 2015
My Initial Setup for Mac Workflow
View initial.setup.mac.workflow.md
@ralphcrisostomo
ralphcrisostomo / .zshrc
Last active Dec 13, 2015
My .zshrc file
View .zshrc
# 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 Jan 9, 2017
Create an alias directory in XAMPP
View httpd.conf
# 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.
View auto.reload.html
<!DOCTYPE html>
<html>
<head>
<title>Auto Reload</title>
<meta http-equiv="refresh" content="15">
</head>
<body>
</body>
</html>
View 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) */
View doubleend.zsh-theme
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() {
View sass.flow.scss
# Variables
$BLUE : blue ;
# Mixins
# Non-Semantic CSS
%color-blue {
color : $BLUE
View .vimrc
set nocompatible
call pathogen#infect()
call pathogen#helptags()
let mapleader = ","
syntax enable
" Mappings {{{
" Insert mode mappings {{{