Skip to content

Instantly share code, notes, and snippets.

View gildotdev's full-sized avatar
🗨️
#BLM

gil.dev gildotdev

🗨️
#BLM
View GitHub Profile
@gildotdev
gildotdev / THEMENAME_menu_link.php
Created April 20, 2011 20:11
This Drupal 7 function will allow you to use anchor names/fragments in your menu links. This functions goes in your template.php file in your theme directory. Remember to change THEMENAME to your theme's name.
@gildotdev
gildotdev / newdomain.sh
Created November 7, 2010 18:01
Bash script to add new domain to slicehost and create nginx config file for it
#!/bin/sh
#Setup a new domain on slicehost using layout outlined here:
#http://articles.slicehost.com/2008/5/16/ubuntu-hardy-nginx-virtual-hosts
#and creating an nginx config file based on this article:
#http://www.dailycupoftech.com/2009/02/24/basic-slicehost-slice-setup-part-7-create-the-virtual-host-website/
# ----------------------------------------------------------------
#check to see if arguments are set
E_BADARGS=65
@gildotdev
gildotdev / txt2rtf.sh
Created October 27, 2010 17:13
Simple Bash script to create a rich text format file from a plain text file
#!/bin/sh
#check to see if arguments are set
E_BADARGS=65
if [ ! -n "$1" ]
then
echo "Usage: `basename $0` textfilename [rtffilename optional]"
exit $E_BADARGS
fi