Skip to content

Instantly share code, notes, and snippets.

View maximilliangeorge's full-sized avatar

Maximillian George maximilliangeorge

  • Will and Max
  • Stockholm
View GitHub Profile
@maximilliangeorge
maximilliangeorge / README.md
Last active December 27, 2017 16:23
PoC REST API authorization

One of the coolest things about bitcoin is that identities/accounts aren't really registered anywhere. In a sense, every possible identity already exists, mathematically. This allows for some interesting approaches to UX that are different in crypto than in other ecosystems.

Here's is a simple example of an API that uses the user's public key as the endpoint. It requires each request to be signed using the user's private key.

Dependencies: NodeJS, bcoin, restler, express

Similar projects: Bitauth, BitID

@maximilliangeorge
maximilliangeorge / functions.php
Last active November 5, 2022 11:31
Fix memory leaks in wordpress admin
<?php
/**
* Disable Posts' meta from being preloaded
* This fixes memory problems in the WordPress Admin
*/
function jb_pre_get_posts( WP_Query $wp_query ) {
if ( in_array( $wp_query->get( 'post_type' ), array( 'my_post_type_1', 'my_post_type_2' ) ) ) {
$wp_query->set( 'update_post_meta_cache', false );
function newPopup1() {
console.log("Popup 1!");
popupWindow = window.open(
'http://www.beckmans.se', // Hemsida 3
'popUpWindow',
height=480,
width=480,
left=0,
top=0,
resizable=no,