Skip to content

Instantly share code, notes, and snippets.

View thejandroman's full-sized avatar

Alejandro Figueroa thejandroman

View GitHub Profile
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Last tested & updated 10/13/2011
####################################
cd
# Install dependencies
@thejandroman
thejandroman / serve.rb
Last active August 29, 2015 13:56 — forked from mikedemers/serve.rb
#!/usr/bin/env ruby
require 'webrick'
include WEBrick
# add custom MIME types
#HTTPUtils::DefaultMimeTypes.store('swf', 'application/x-shockwave-flash')
port = 8081
path = File.expand_path((ARGV[0].nil?) ? File.dirname(__FILE__) : ARGV[0])
@thejandroman
thejandroman / trashfolder-1.5.22.diff0
Created May 22, 2014 18:02
mutt patch fro trashfolder
diff -uNp -r mutt-1.5.22.orig/PATCHES mutt-1.5.22/PATCHES
--- mutt-1.5.22.orig/PATCHES Sun Feb 21 05:51:26 2010
+++ mutt-1.5.22/PATCHES Fri Oct 18 10:00:49 2013
@@ -0,0 +1 @@
+patch-1.5.16hg.cd.trash_folder.vl.1
diff -uNp -r mutt-1.5.22.orig/commands.c mutt-1.5.22/commands.c
--- mutt-1.5.22.orig/commands.c Fri Oct 18 05:48:24 2013
+++ mutt-1.5.22/commands.c Fri Oct 18 10:00:49 2013
@@ -720,6 +720,7 @@ int _mutt_save_message (HEADER *h, CONTEXT *ctx, int d
if (option (OPTDELETEUNTAG))
{
"Statement": [
{
"Sid": "PackerSecurityGroupAccess",
"Action": [
"ec2:CreateSecurityGroup",
"ec2:DeleteSecurityGroup",
"ec2:DescribeSecurityGroups",
"ec2:AuthorizeSecurityGroupIngress",
"ec2:RevokeSecurityGroupIngress"
bash-3.2$ echo $VAR
bash-3.2$ if [ -z $VAR ]; then echo ‘variable is unset’; fi
‘variable is unset’
bash-3.2$ if [ ! -z $VAR ]; then echo ‘variable is set’; fi
bash-3.2$ VAR=''
bash-3.2$ if [ -z $VAR ]; then echo ‘variable is unset’; fi
‘variable is unset’
bash-3.2$ if [ ! -z $VAR ]; then echo ‘variable is set’; fi
bash-3.2$ VAR='test'