CLICK ME
yes, even hidden code blocks!
print("hello world!")
require 'aws-sdk' | |
s3 = Aws::S3::Resource.new( | |
region: 'us-east-1', | |
credentials: Aws::InstanceProfileCredentials.new() | |
) | |
bucket = s3.bucket('my-daily-backups') | |
file = (DateTime.now).strftime("%Y.%m.%d-backup") | |
if bucket.object(file).exists? |
<div>{"<"} Less than, {">"} greater than </div> |
{ fontWeight: '100' }, // Thin | |
{ fontWeight: '200' }, // Ultra Light | |
{ fontWeight: '300' }, // Light | |
{ fontWeight: '400' }, // Regular | |
{ fontWeight: '500' }, // Medium | |
{ fontWeight: '600' }, // Semibold | |
{ fontWeight: '700' }, // Bold | |
{ fontWeight: '800' }, // Heavy | |
{ fontWeight: '900' }, // Black |
Milliseconds in your DateTimes or Timestamps.
We got 'em, you want 'em.
NOTE: only MySQL 5.6.4 and above supports DATETIME's with more precision than a second. For reference see MySQL 5.6.4 Changelog
Shit needs to be PRECISE
sudo -i | |
cd | |
apt-get install build-essential checkinstall -y | |
apt-get build-dep imagemagick -y | |
apt-get install libwebp-dev -y | |
wget http://www.imagemagick.org/download/ImageMagick-6.9.5-8.tar.gz | |
tar xzvf ImageMagick-6.9.5-8.tar.gz | |
cd ImageMagick-6.9.5-8/ | |
./configure | |
make |
So you want to generate ISO8601 formatted timestamps in Ruby, but need resolution finer than a second?
First, make sure to require 'time'
in order to get ISO8601 formatting. But that gets you this:
2.1.0 :001 > require 'time'
=> true
2.1.0 :002 > Time.now.utc.iso8601
=> "2015-11-12T04:46:43Z"
tar xOf dump.sql.tar.gz | mysql -u $user -p $database |