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
[ | |
{ | |
"State": "Alabama", | |
"Abbreviation": "AL", | |
"State Tax Rate": 0.04, | |
"State Tax Rank": 40, | |
"Local Tax Rate": 0.051, | |
"Combined Tax Rate": 0.091, | |
"Combined Rank": 5 | |
}, |
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
# touch bla.txt | |
# git init | |
# git add -A | |
# git commit -a -m 'initial commit' | |
# git remote add laravel git://github.com/laravel/laravel.git | |
# git fetch laravel | |
# git checkout -b framework laravel/master |
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 | |
define('SHOPIFY_APP_SECRET', 'your_secret_here'); | |
define('MailChimp_API_KEY', 'your_mailchimp_api_key here'); | |
$mailchimp_list_id = 'mailchimp list id here'; | |
function verify_webhook($data, $hmac_header) | |
{ | |
$calculated_hmac = base64_encode(hash_hmac('sha256', $data, SHOPIFY_APP_SECRET, true)); |
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
AuthType Basic | |
AuthName "This is a Restricted Area" | |
AuthUserFile /srv/www/data/.mep.htpasswd | |
require valid-user | |
Options +FollowSymLinks | |
AddDefaultCharset UTF-8 | |
RewriteEngine on | |
DirectoryIndex index.php |
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 | |
require 'vendor/autoload.php'; | |
use Elasticsearch; | |
use Elasticsearch\ClientBuilder; | |
use Elasticsearch\Connections\Connection; | |
use Faker; | |
$client = Elasticsearch\ClientBuilder::create()->setHosts(['http://ec2-35-154-104-170.ap-south-1.compute.amazonaws.com:9200'])->build(); | |
$faker = Faker\Factory::create(); | |
$deleteParams = [ | |
'index' => 'my_index2' |
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 | |
require 'vendor/autoload.php'; | |
use Elasticsearch; | |
use Elasticsearch\ClientBuilder; | |
use Elasticsearch\Connections\Connection; | |
use Faker; |
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
Keeping the Framework for Your Application Up to Date with Git | |
http://viget.com/extend/keeping-the-framework-for-your-application-up-to-date-with-git | |
https://www.viget.com/articles/keeping-the-framework-for-your-application-up-to-date-with-git/ | |
“Tracking Branches” And “Remote-Tracking Branches” | |
http://www.gitguys.com/topics/tracking-branches-and-remote-tracking-branches/ | |
300 Awesome Free Things |