This is a very first try to use Gist
System.out.println("Hello,world!");
This is a very first try to use Gist
System.out.println("Hello,world!");
private Date get1stDateOfCurrentMonth(){ | |
Calendar c = Calendar.getInstance(); | |
c.set(Calendar.DAY_OF_MONTH,1); | |
return c.getTime(); | |
} | |
mysqldump -p --user=username dbname tableName > tableName.sql
This will export the tableName to the file tableName.sql.
# install deps | |
yum install gcc kernel-devel make ncurses-devel | |
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
tar -xvzf libevent-2.0.21-stable.tar.gz | |
cd libevent-2.0.21-stable | |
./configure --prefix=/usr/local | |
make | |
sudo make install |
Just use brew | |
$brew install http://git.io/sshpass.rb |
# Add Neutron security groups for ping and ssh | |
neutron security-group-rule-create \ | |
--protocol icmp \ | |
--direction ingress \ | |
--remote-ip-prefix 0.0.0.0/0 \ | |
default | |
neutron security-group-rule-create \ | |
--protocol tcp \ |
git rebase --interactive HEAD~2 | |
# we are going to squash c into b | |
pick b76d157 b | |
pick a931ac7 c | |
# squash c into b | |
pick b76d157 b | |
s a931ac7 c |
#!/usr/bin/python | |
# largely taken from python examples | |
# http://docs.python.org/library/email-examples.html | |
import os | |
import sys | |
from email import encoders | |
from email.mime.base import MIMEBase | |
from email.mime.multipart import MIMEMultipart |