This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Daylight Savings Time | |
* | |
* Since 2007 DST begins on the second sunday of March, | |
* and ends on the first sunday of November. | |
* | |
* @see http://www.nist.gov/pml/div688/dst.cfm | |
* @author Dan Alloway <dan@micahsix.com> | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# capture HTTP requests to example.com and www.example.com | |
# and permanently redirect them to the HTTPS version of the site | |
# | |
server { | |
listen 80; # IPv4 | |
listen [::]:80; # IPv6 | |
server_name example.com www.example.com; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server=1 | |
daemon=1 | |
rpcuser= | |
rpcpassword= | |
blockmaxsize=1000000 | |
mintxfee=0.00001 | |
minrelaytxfee=0.00001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying myself: My Bitcoin username is +daniam. https://onename.io/daniam |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* When migrating Drupal sites using Feeds sometimes you'll need to re-map entity relationships. | |
* When importing User Accounts, I always save the legacy UID from the old system. | |
* Then while importing data that needs to re-map to the UID, I load it the legacy UID from the CSV, | |
* then swap it out with the newley created ID using Feeds Tamper PHP. | |
*/ | |
if (!empty($field)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo aptitude update && sudo aptitude safe-upgrade | |
sudo aptitude install build-essential python-software-properties autoconf libtool libssl-dev libboost-all-dev libdb4.8-dev libdb4.8++-dev | |
sudo aptitude add-apt-repository ppa:bitcoin/bitcoin | |
sudo aptitude install bitcoin | |
sudo aptitude build-dep bitcoin | |
cd ~ | |
git clone https://github.com/coinzen/devcoin.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# straight copy mkv to mp4 | |
# no conversion takes place | |
# 100% passthru for both audio and video | |
ffmpeg -i input.mkv -c:v copy -c:a copy output.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=Edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title></title> | |
</head> | |
<body> |
NewerOlder