Skip to content

Instantly share code, notes, and snippets.

View klaser's full-sized avatar

Alex Block klaser

  • Minneapolis, MN
View GitHub Profile
{
"error": {
"code": 429,
"message": "Too Many Requests: Rate limit of 10 requests per hour exceeded. Please wait for 59 minutes and 59 seconds."
}
}
{
"success": {
"total": 1
},
"contents": {
"quotes": [
{
"quote": "Only a man who knows what it is like to be defeated can reach down to the bottom of his soul and come up with the extra ounce of power it takes to win when the match is even.",
"length": "174",
"author": "Mohamad Ali",
##
# Custom Aliases
#
alias test='vendor/bin/phpunit --exclude-group=dusk'
alias test:f='vendor/bin/phpunit --filter'
alias test:g='vendor/bin/phpunit --group'
alias rebuild='php artisan migrate:fresh --seed'
alias autoload='composer dump-autoload -o'
<?php
// Getallheaders polyfill
if (!function_exists('getallheaders')) {
/**
* Get all HTTP header key/values as an associative array for the current request.
*
* @return string[string] The HTTP header key/value pairs.
*/
function getallheaders()
@klaser
klaser / cloudSettings
Last active October 8, 2020 15:08
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-10-08T15:08:27.032Z","extensionVersion":"v3.4.3"}
@klaser
klaser / magento2.test
Last active January 27, 2019 03:55
Sample Magento 2 Nginx Config
upstream fastcgi_backend {
server unix:/var/run/php/php7.2-fpm.sock;
}
server {
listen 80;
listen 443 ssl;
ssl_certificate /etc/nginx/ssl/magento2.test.crt;
ssl_certificate_key /etc/nginx/ssl/magento2.test.key;
@klaser
klaser / Homestead.yaml
Created January 27, 2019 03:44
Sample Homestead.yaml file
---
ip: "192.168.20.10"
memory: 8192
cpus: 4
provider: virtualbox
name: "homestead-global"
authorize: ~/.ssh/id_rsa.pub
keys:
@klaser
klaser / 0001-Replace-response-delimiter.patch
Last active January 23, 2019 02:44
M1 Authorize.net patch
From 5072c3336dbdc31b87a524277a992b0b2066fe75 Mon Sep 17 00:00:00 2001
From: Alex Block <alex.block@irishtitan.com>
Date: Tue, 22 Jan 2019 20:18:25 -0600
Subject: [PATCH] Replace response delimiter
---
app/code/core/Mage/Paygate/Model/Authorizenet.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/code/core/Mage/Paygate/Model/Authorizenet.php b/app/code/core/Mage/Paygate/Model/Authorizenet.php
@klaser
klaser / keybase.mb
Last active August 29, 2015 14:09
Keybase Proof
### Keybase proof
I hereby claim:
* I am klaser on github.
* I am ablock (https://keybase.io/ablock) on keybase.
* I have a public key whose fingerprint is BC62 9EDF 3601 4A28 DA0D 6754 4776 9571 B5ED 1BCA
To claim this, I am signing this object: