Skip to content

Instantly share code, notes, and snippets.

Avatar
🍀
lucky

Nijiko Yonskai nijikokun

🍀
lucky
View GitHub Profile
@nijikokun
nijikokun / example.md
Created May 12, 2020
Better Errors w/ Advanced Option
View example.md

Error Pulling Repository

401 Unauthorized

See More
HTTPError: 401 Unauthorized
  at Function.discover (/some/path/to/file.js:7:32)
@nijikokun
nijikokun / kong-admin.oas.yaml
Created Dec 12, 2019
Kong Admin API OpenAPI Spec
View kong-admin.oas.yaml
openapi: 3.0.0
info:
version: '1.3'
title: Kong Admin API
license:
name: Apache 2.0
description: ''
contact:
name: Kong
servers:
@nijikokun
nijikokun / cla.md
Created Nov 7, 2018
Kong Contributor License Agreement
View cla.md

Kong Contributor License Agreement

Thank you for your interest in making a Contribution to a project of Kong Inc., a USA company with notice address at [251 Post St, 2nd Floor San Francisco, CA, 94108, USA] (“Kong” or “we”). In order to clarify the intellectual property license granted with Contributions from you, Kong must have an Individual Contributor License Agreement (“ICLA”) on file that has been signed by you, a developer of software or other technology (either an individual or an entity), indicating agreement to the license terms below. By electronically signing below, you are consenting to transact electronically and are entering into a binding contract, and you accept and agree to the following terms and conditions for your Contributions submitted Kong.

BEFORE SIGNING AND/OR CLICKING A BUTTON TO E-SIGN OR ACCEPT, CAREFULLY READ THE TERMS AND CONDITIONS OF THIS AGREEMENT AND ANY TERMS OF USE PROVIDED THROUGH THE SIGNING PROCESS.

If you are not authorized as set forth above, do not complete the

View fix-laravel.sh
sudo chmod -R guo+w storage
sudo chmod -R guo+w bootstrap/cache
View upgrade-to-php7.2.sh
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -yqq php7.2 php7.2-common
sudo apt-get install -yqq php7.2-dom php7.2-cli php7.2-fpm php7.2-curl php7.2-gd php7.2-mysql php7.2-mbstring zip unzip
sudo service apache2 stop
sudo service nginx start
@nijikokun
nijikokun / karabiner-elements.fn-wasd-to-arrow-keys.json
Last active Mar 20, 2018
FN+WASD -> Arrow Keys (Simple key caps_lock to fn)
View karabiner-elements.fn-wasd-to-arrow-keys.json
{
"description": "caps_lock + w,a,s,d to arrow_keys",
"manipulators": [
{
"from": {
"key_code": "w",
"modifiers": {
"mandatory": [
"fn"
],
@nijikokun
nijikokun / TreeNode.js
Created Jul 6, 2017
Javascript TreeNode implementation
View TreeNode.js
export default class TreeNode {
constructor (value, canHaveChildren) {
this.canHaveChildren = canHaveChildren != null ? canHaveChildren : true
this.value = value
this.parent = null
this.children = []
}
isAncestor (node) {
if (node == null) {
@nijikokun
nijikokun / about.md
Last active Mar 15, 2017
XHR Promisified
View about.md

Fetch (xhr promisified)

Lightweight implementation of fetch api

Usage

import fetch from './fetch'
View keybase.md

Keybase proof

I hereby claim:

  • I am nijikokun on github.
  • I am nijikokun (https://keybase.io/nijikokun) on keybase.
  • I have a public key ASCN-6Z1Pj0Sf1qT1UObCD2O0PBGWGwS_O63onOGS4F7nQo

To claim this, I am signing this object:

@nijikokun
nijikokun / about.md
Last active Dec 22, 2016
Update / Remove users in Customer.io from CSV files using Node.js
View about.md

Updating Customer.io using CSVs

Ever wanted to update a Customer.io environment using a CSV that you have, maybe acquired from an event, or exported?

Now you can.

Usage

You can obtain your Customer.io credentials on the integration page.

You can’t perform that action at this time.