This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# some more ls aliases | |
alias ll='ls -alF' | |
alias la='ls -A' | |
alias l='ls -CF' | |
# Directory navigation aliases | |
alias ..='cd ..' | |
alias ...='..;..' | |
alias ....='..;..;..' | |
alias .....='..;..;..;..' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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, | |
); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# For each ref, validate the commit. | |
# | |
# - It disallows deleting branches without a /. | |
# - It disallows non fast-forward on branches without a /. | |
# - It disallows deleting tags without a /. | |
# - It disallows unannotated tags to be pushed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_install(). | |
*/ | |
function power_one_install() { | |
// The "generation_site" entity type already exists at this point. | |
// Create a new entity bundle using ECK's API. | |
$new_bundle = function($name, $label, $entity_type) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Git pre-commit hook for Drupal projects. | |
# Created by Dave Hall - http://davehall.com.au | |
# Distributed under the terms of the WTFPL - http://www.wtfpl.net/ | |
# | |
set -e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
########################################################################## | |
# | |
# mysql_backups.sh: A shell script to back up all MySQL databases in | |
# one shot, nightly, and keep a rolling 3 weeks of | |
# backups hot, online in the backup archive. | |
# | |
# Written by David A. Desrosiers | |
# Contact [email protected] | |
# Last updated Jun 27 2012 by Alessandro Feijó @afeijo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find `pwd` -name config.rb | sed 's/config.rb//' | sed 's/^/cd /' | sed 's/$/;compass clean;compass compile/' | xargs -n4 | sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$adam = array( | |
'remote-host' => 'adammalone.net', | |
'root' => '/var/www/html/adammalone/docroot', | |
'uri' => 'adammalone.net', | |
'strict' => 0, | |
'path-aliases' => array( | |
'%dump-dir' => '/home/adammalone/.drush/dumps', | |
'%files' => 'sites/default/files', |
OlderNewer