Skip to content

Instantly share code, notes, and snippets.

🔮
M A G I C

netop://ウエハ NetOperatorWibby

🔮
M A G I C
Block or report user

Report or block NetOperatorWibby

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@NetOperatorWibby
NetOperatorWibby / TurnipPrices.cpp
Created Apr 7, 2020 — forked from Treeki/TurnipPrices.cpp
AC:NH turnip price calculator
View TurnipPrices.cpp
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from https://github.com/simontime/Resead
namespace sead
{
class Random
{
@NetOperatorWibby
NetOperatorWibby / README.md
Created Feb 20, 2020 — forked from miku/README.md
git --track vs --set-upstream vs --set-upstream-to
View README.md

README

Short excursion into git --track, --set-upstream and --set-upstream-to.

All examples use the aliases co for checkout and br for branch.

Setup:

$ git clone git@github.com:AKSW/OntoWiki.git
View prettySortByKeys.js
const sortByKeysLegibly = maybeObject => {
// presumably we want the array to stay ordered. Possibly not, but if there is
// anything that should preserve order, it's an array
if (maybeObject instanceof Array) {
return maybeObject;
}
// don't sort strings etc
if (typeof maybeObject !== 'object') {
return maybeObject;
@NetOperatorWibby
NetOperatorWibby / nationwide.ipynb
Created Feb 4, 2020 — forked from willettk/nationwide.ipynb
Make a list of all the (English) Wikipedia page titles that can be sung to the tune of the Nationwide jingle.
View nationwide.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@NetOperatorWibby
NetOperatorWibby / index.html
Created Jan 30, 2020 — forked from wmhilton/index.html
magic portal (isomorphic-git)
View index.html
<div>
<input id="repository" type="text" style="width: 50em" title="Tip: enter a private repo URL to see the credentialManager plugin prompt for a password.">
<button type="button" id="cloneButton">Clone</button>
</div>
<output id="log" style="white-space: pre; font-family: monospace;"></output>
<script src="https://unpkg.com/magic-portal"></script>
<script>
let worker = new Worker("./worker.js")
View remote-git.md

Setup a simple GIT server for testing on RHEL7

Prepare and setup a simple git server to be used over ssh

  1. Prepare remote server

    # yum -y install git
    # useradd -c "GIT User" -s /usr/bin/git-shell git
    # mkdir ~git/.ssh
    # touch ~git/.ssh/authorized_keys
    
@NetOperatorWibby
NetOperatorWibby / git-daemon
Created Jan 29, 2020 — forked from jeremiah/git-daemon
systemd-unit for git-daemon
View git-daemon
# conf.d file for git-daemon
#
# Please check man 1 git-daemon for more information about the options
# git-daemon accepts. You MUST edit this to include your repositories you wish
# to serve.
#
# Some of the meaningful options are:
# --syslog --- Enables syslog logging
# --verbose --- Enables verbose logging
# --export-all --- Exports all repositories
@NetOperatorWibby
NetOperatorWibby / graphql.d.ts
Created Nov 24, 2019 — forked from mohsen89z/graphql.d.ts
Resolve .graphql import for medium
View graphql.d.ts
declare module '*.graphql' {
import { DocumentNode } from 'graphql'
const Schema: DocumentNode
export = Schema
}
@NetOperatorWibby
NetOperatorWibby / index.html
Created Nov 4, 2019 — forked from sasso/index.html
GraphiQL with JWT
View index.html
<!DOCTYPE html>
<html>
<head>
<style>
body {
height: 100%;
margin: 0;
width: 100%;
overflow: hidden;
}
@NetOperatorWibby
NetOperatorWibby / access.svelte
Last active Mar 5, 2020
Sapper session handling (creation and updating). Idk if this is the best way of doing things but at least it *works*. Feel free to scrutinize this code and let me know all the ways it sucks.
View access.svelte
<script>
// import
import { onMount } from "svelte";
// util
import { metadata } from "~util";
// redirect
onMount(() => {
// `location.replace` forces a hard refresh in the browser,
You can’t perform that action at this time.