Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View navarr's full-sized avatar
🖥️
Magento

Navarr Barnier navarr

🖥️
Magento
View GitHub Profile

I have no idea how the blockchain works, but I think it'd be a great place for storage of distributed, encrypted, easily accessible mail.

Step 1 - Registration

An entry goes into the blockchain with the desired address (this is a username). The earliest entry for each desired address is the only one that is legitimate.

With this entry is stored a public key. Imagine the following psuedo-structure:

{ "type": "registration",

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@navarr
navarr / PATCH_SUPEE-6285-Part2_CE_1.9.1.1_v1-2015-07-09-08-27.sh
Created July 9, 2015 12:28
Separation of SUPEE-6285 v1 and v2 so that you can just apply "Part 2"
#!/bin/bash
# Patch apllying tool template
# v0.1.2
# (c) Copyright 2013. Magento Inc.
#
# DO NOT CHANGE ANY LINE IN THIS FILE.
# 1. Check required system tools
_check_installed_tools() {
local missed=""
@navarr
navarr / template\page\html\breadcrumbs.phtml
Last active April 30, 2019 13:55
Magento Semantic Breadcrumbs
<?php
if (empty($crumbs) || !is_array($crumbs)) {
return;
}
$_crumbItems = array();
$_crumbCount = 1;
$_crumbTotal = count($crumbs);
@navarr
navarr / designer.html
Last active August 29, 2015 14:14
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../paper-toast/paper-toast.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-leaderboard.html">
<polymer-element name="my-element">
<template>
<style>
@navarr
navarr / lib\Briteskies\Commands\MemoryCommand.php
Last active August 29, 2015 14:13
N98 Magerun MemoryCommand
<?php
namespace Briteskies\Commands;
use N98\Magento\command\AbstractMagentoCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class MemoryCommand extends AbstractMagentoCommand
{

Dear 10 Days or Whatever of Kwanzaa recipient,

A couple years ago, we made a joke that with the money we donated to the Wikimedia Foundation (CardsAgainstHumanity.com/holidaystats), we could have bought a small private island.

That gave us an idea: to buy a small private island.

This year, we used your money to purchase a wooded, uninhabited six-acre private island in St. George Lake, Maine.

We bought this island for two reasons. 1) Because it was funny, and 2) so we could give you a small piece of it. Also, 3) we're preserving a pristine bit of American wilderness.

@navarr
navarr / designer.html
Last active August 29, 2015 14:09
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
<?php
namespace app\rbac;
use yii\rbac\Item;
use yii\rbac\Rule;
class CanGoToHell extends Rule
{
/**
@navarr
navarr / info.md
Last active August 29, 2015 14:02

Additionally, in cases of a very large network - like Shotbow, Hypixel, The Hive, etc. where you connect to a central "hub server" that you can then join specific games and servers from - you may not be able to play with your friends.

The reason for this is two-fold: One, Mojang says that once you have access to a "server" (defined as an address you connect to in Minecraft) you have to be able to access any game or world made available by that server.

In Shotbow, we have many different games. Some are small (Light Bikes), and others are massive (MineZ - When in Rogue). Some, such as MineZ - also have paid-only worlds.

With the new rules in effect, we can't display these paid worlds in a hub that free players can access. So we would have to at minimum double our infrasturcture (more costs) and split out community in half (paying users and non-paying). So you can no longer hang out with your friends in the hub.

Even then, what happens in the paid worlds can't be shared with the free worlds - Any items,