Skip to content

Instantly share code, notes, and snippets.

View opencubicles's full-sized avatar

OpenCubicles opencubicles

View GitHub Profile
@opencubicles
opencubicles / salesTaxByState.JSON
Created October 12, 2022 08:31 — forked from suryadutta/salesTaxByState.JSON
State Sales Tax Values
[
{
"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
},
@opencubicles
opencubicles / a.html
Last active March 15, 2021 08:13
BigBlueButton Auto Scaler + Load Balancer based setup
We couldn’t find that file to show.
# 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
<?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));
@opencubicles
opencubicles / .htaccess
Last active October 23, 2017 06:43
.htaccess
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
@opencubicles
opencubicles / adddata.php
Created February 3, 2017 07:13
elastic search - hunspell example
<?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'
@opencubicles
opencubicles / adddata.php
Last active January 31, 2017 20:31
elastic search - english morphology example
<?php
require 'vendor/autoload.php';
use Elasticsearch;
use Elasticsearch\ClientBuilder;
use Elasticsearch\Connections\Connection;
use Faker;
@opencubicles
opencubicles / resources
Last active February 10, 2020 19:53
Useful resources
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