Skip to content

Instantly share code, notes, and snippets.

View jbelke's full-sized avatar
🎯
Focusing

Joshua Belke jbelke

🎯
Focusing
  • Magnetism Labs
  • NY
View GitHub Profile
@jbelke
jbelke / change_magento1_base_urls_to_https.py
Created August 23, 2018 20:20 — forked from hn-support/change_magento1_base_urls_to_https.py
Change all base_urls of your Magento 1 live shop to https on hypernode
#!/usr/bin/env python
"""
Set the base-urls for your Magento 1 installation to support only https.
To use, download the file and make it executable. Then run:
./change_magento1_base_urls_to_https.py
After use, check your base-urls by issuing:
n98-magerun sys:store:config:base-url:list
This script requires n98-magerun.
@jbelke
jbelke / Event-stream based GraphQL subscriptions.md
Created May 31, 2018 13:09 — forked from OlegIlyenko/Event-stream based GraphQL subscriptions.md
Event-stream based GraphQL subscriptions for real-time updates

In this gist I would like to describe an idea for GraphQL subscriptions. It was inspired by conversations about subscriptions in the GraphQL slack channel and different GH issues, like #89 and #411.

Conceptual Model

At the moment GraphQL allows 2 types of queries:

  • query
  • mutation

Reference implementation also adds the third type: subscription. It does not have any semantics yet, so here I would like to propose one possible semantics interpretation and the reasoning behind it.

@jbelke
jbelke / Event-stream based GraphQL subscriptions.md
Created May 31, 2018 13:09 — forked from OlegIlyenko/Event-stream based GraphQL subscriptions.md
Event-stream based GraphQL subscriptions for real-time updates

In this gist I would like to describe an idea for GraphQL subscriptions. It was inspired by conversations about subscriptions in the GraphQL slack channel and different GH issues, like #89 and #411.

Conceptual Model

At the moment GraphQL allows 2 types of queries:

  • query
  • mutation

Reference implementation also adds the third type: subscription. It does not have any semantics yet, so here I would like to propose one possible semantics interpretation and the reasoning behind it.

@jbelke
jbelke / introrx.md
Created May 29, 2018 03:51 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@jbelke
jbelke / customer.php
Created April 11, 2018 01:54 — forked from blessani/customer.php
Magento 1 Customer Delete Shell Class
<?php
require_once 'abstract.php';
class Mage_Shell_Customer extends Mage_Shell_Abstract
{
/**
* Run script
*
@jbelke
jbelke / magento_cookie.sql
Created March 7, 2018 01:56 — forked from jonathonbyrdziak/magento_cookie.sql
Fixing the Magento Cookie
@jbelke
jbelke / clean_for_dev_m1.sql
Created January 16, 2018 15:15 — forked from Jman/clean_for_dev_m1.sql
Cleanup Magento 1 database
-- Customers
SET FOREIGN_KEY_CHECKS=0;
TRUNCATE customer_address_entity;
TRUNCATE customer_address_entity_datetime;
TRUNCATE customer_address_entity_decimal;
TRUNCATE customer_address_entity_int;
TRUNCATE customer_address_entity_text;
TRUNCATE customer_address_entity_varchar;
TRUNCATE customer_entity;
TRUNCATE customer_entity_datetime;
@jbelke
jbelke / reverse-proxy.php
Created October 30, 2017 19:06 — forked from JamesPaden/reverse-proxy.php
Wordpress Reverse Proxy Plugin
<?php
/**
* @package Reverse Proxy
*/
/*
Plugin Name: Reverse Proxy
Plugin URI: https://instrumentalapp.com/
Description: Reverse proxy setup for Instrumental blog
Version: 1.0
Author: James Paden
import sys
import time
import random
from crate.client import connect
from threading import Thread
from Queue import Queue
from uuid import uuid1
host = sys.argv[1]
package de.ftrossbach.meetup
import java.util.concurrent.TimeUnit
import akka.actor.ActorSystem
import akka.{Done, NotUsed}
import akka.http.scaladsl.Http
import akka.stream.ActorMaterializer
import akka.stream.scaladsl._
import akka.http.scaladsl.model._