Skip to content

Instantly share code, notes, and snippets.

View revagomes's full-sized avatar
🦉

Reva Gomes revagomes

🦉
View GitHub Profile
@revagomes
revagomes / Sublime User Preferences
Last active December 26, 2015 07:08
My personal sublime user preferences.
{
"bold_folder_labels": true,
"caret_style": "wide",
"color_scheme": "Packages/Dracula Color Scheme/Dracula.tmTheme",
"default_line_ending": "unix",
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"fade_fold_buttons": false,
"fallback_encoding": "UTF-8",
"find_selected_text": true,
@revagomes
revagomes / a2catchall
Last active December 14, 2015 00:09
Catchall config for local virtualhosts on Apache.
<VirtualHost *:80>
ServerAlias localhost *.l #wildcard catch all
VirtualDocumentRoot /var/www/%1/
UseCanonicalName Off
<Directory "/var/www">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
@revagomes
revagomes / batch_api_example.module
Created December 18, 2012 16:04
Drupal Batch API Example
<?php
function skeleton_menu() {
$items['admin/skeleton/batch'] = array(
'title' => 'Skeleton Batch',
'page callback' => 'skeleton_batch_init',
'access arguments' => array('Administer content'),
'type' => MENU_NORMAL_ITEM,
);
@revagomes
revagomes / .profile_example
Created June 8, 2011 18:58
.profile aliases and functions
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# Directory navigation aliases
alias ..='cd ..'
alias ...='..;..'
alias ....='..;..;..'
alias .....='..;..;..;..'