Skip to content

Instantly share code, notes, and snippets.

View lol.csv
Date Beds Unit SqFt Price
2015-03-18T23:34:06.391084 1 1707 690 3544
2015-03-18T23:34:06.391084 1 1604 750 3565
2015-03-18T23:34:06.391084 1 1415 716 3450
2015-03-18T23:34:06.391084 1 603 714 3355
2015-03-18T23:34:06.391084 1 408 716 3162
2015-03-18T23:34:06.391084 1 513 716 3417
2015-03-18T23:34:06.391084 1 403 725 3255
2015-03-18T23:34:06.391084 1 1711 1004 4108
2015-03-18T23:34:06.391084 2 1704 855 4770
View gist:be5091351cc6c31f34a6
irb(main):001:0> "CloudAMQP-#@name0*"
=> "CloudAMQP-*"
irb(main):002:0> @name = 'blue-chicken'
=> "blue-chicken"
irb(main):003:0> "CloudAMQP-#@name*"
=> "CloudAMQP-blue-chicken*"
irb(main):004:0> "CloudAMQP-#@name0*"
=> "CloudAMQP-*"
@jamesonjlee
jamesonjlee / run.sh
Last active Jan 11, 2020
running AWS Cloudwatch Monitor tool on CentOS6.5
View run.sh
yum install -y perl-CPAN
export PERL_MM_USE_DEFAULT=1
# setup default config
perl -MCPAN -e shell # make sure to exit
# need to wait here
perl -MCPAN -e 'CPAN::Shell->rematein("notest", "install", "Bundle::CPAN")'
perl -MCPAN -e 'CPAN::Shell->rematein("notest", "install", "CPAN")'
perl -MCPAN -e 'CPAN::Shell->rematein("notest", "install", "Bundle::LWP")'
@jamesonjlee
jamesonjlee / gist:0072a9068d820035bf81
Created Jul 30, 2014
timestamp can both be null and have a default
View gist:0072a9068d820035bf81
mysql> create table temp3 ( id int, bleh int default null default 1, tstamp timestamp null default CURRENT_TIMESTAMP );
Query OK, 0 rows affected (0.01 sec)
mysql> show create table temp3;
+-------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table | Create Table |
+-------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| temp3 | CREATE TABLE `temp3` (
`id` int(11) DEFAULT NULL,
`bleh` int(11) DEFAULT '1',
View keybase.md

Keybase proof

I hereby claim:

  • I am jamesonjlee on github.
  • I am jameson (https://keybase.io/jameson) on keybase.
  • I have a public key whose fingerprint is 55DC 5625 19AE 8109 63AB 8816 68FC 26BB A32A 8211

To claim this, I am signing this object:

@jamesonjlee
jamesonjlee / local-pypi.conf
Last active Aug 29, 2015
sample local proxy of pypi using devpi
View local-pypi.conf
description "local proxy of pypi"
#
# https://pypi.python.org/pypi/dev-pi
#
start on (local-filesystems and runlevel [2345])
stop on runlevel [016]
setuid ubuntu
setgid ubuntu
@jamesonjlee
jamesonjlee / gist:11271979
Created Apr 24, 2014
dynamodb local setup
View gist:11271979
sudo apt-get install openjdk-7-jre-headless -y
cd /home/ubuntu/
mkdir -p dynamodb
cd dynamodb
wget http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest
tar -xvzf dynamodb_local_latest
rm dynamodb_local_latest
mv dynamodb_local_*/ dynamodb/
@jamesonjlee
jamesonjlee / commands.out
Last active Dec 23, 2015
I might be crazy
View commands.out
jameson@jameson-mbp:~/playground/alembic_testnig/alembic$ git log -1
commit 4e8854a41ff985cc4df682e8b3c282f7111f431c
Author: Mike Bayer <mike_mp@zzzcomputing.com>
Date: Sat Sep 14 12:08:32 2013 -0400
fix typo, also this is apparently not covered
jameson@jameson-mbp:~/playground/alembic_testnig/alembic$ git remote -v
origin https://bitbucket.org/zzzeek/alembic.git (fetch)
origin https://bitbucket.org/zzzeek/alembic.git (push)
jameson@jameson-mbp:~/playground/alembic_testnig/alembic$ git branch
@jamesonjlee
jamesonjlee / config.rb
Created Aug 1, 2013
cleanest way of excluding sub-array in chef node attributes
View config.rb
default['mongodb']['sysconfig']['ulimit']['file_limit'] = 12345
default['mongodb']['sysconfig']['ENABLE_MONGODB'] = "yes"
default['mongodb']['sysconfig']['port'] = 27107
View sysctl.conf
# Configuration file for runtime kernel parameters.
# See sysctl.conf(5) for more information.
# Protection from SYN flood attack.
net.ipv4.tcp_syncookies = 1
# See evil packets in your logs.
#net.ipv4.conf.all.log_martians = 1
# Disable packet forwarding.