Skip to content

Instantly share code, notes, and snippets.

View NetOpWibby's full-sized avatar
🔮
M A G I C

netop://ウエハ NetOpWibby

🔮
M A G I C
View GitHub Profile

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

@NetOpWibby
NetOpWibby / git-daemon
Created January 29, 2020 07:59 — forked from jeremiah/git-daemon
systemd-unit for 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
@NetOpWibby
NetOpWibby / graphql.d.ts
Created November 24, 2019 21:11 — forked from mohsen89z/graphql.d.ts
Resolve .graphql import for medium
declare module '*.graphql' {
import { DocumentNode } from 'graphql'
const Schema: DocumentNode
export = Schema
}
@NetOpWibby
NetOpWibby / index.html
Created November 4, 2019 18:25 — forked from iamsaso/index.html
GraphiQL with JWT
<!DOCTYPE html>
<html>
<head>
<style>
body {
height: 100%;
margin: 0;
width: 100%;
overflow: hidden;
}
04fee87dde12e9980ebd84f2827ba18cc5dc4d1a8b127f6937c2707f0f7f7faa742fb5da9c9fa9a59927f60962fb689769afaa836ce6d73634b8fca4c44c4211b9
### Keybase proof
I hereby claim:
* I am netoperatorwibby on github.
* I am netopwibby (https://keybase.io/netopwibby) on keybase.
* I have a public key whose fingerprint is 4B05 7A94 358E FFA9 7AA4 7E8E FF55 C87C EE32 D395
To claim this, I am signing this object:
@NetOpWibby
NetOpWibby / nodejs-tcp-example.js
Created March 10, 2018 03:49 — forked from tedmiston/nodejs-tcp-example.js
Node.js TCP client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');
@NetOpWibby
NetOpWibby / spacy_intro.ipynb
Created February 21, 2018 14:52 — forked from aparrish/spacy_intro.ipynb
NLP Concepts with spaCy. Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@NetOpWibby
NetOpWibby / better-nodejs-require-paths.md
Created February 15, 2018 22:17 — forked from ToanTranX/better-nodejs-require-paths.md
Better local require() paths for Node.js

Better local require() paths for Node.js

Problem

When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

var Article = require('../../../models/article');

Those suck for maintenance and they're ugly.

Possible solutions

@NetOpWibby
NetOpWibby / pagination.ts
Created February 15, 2018 06:42 — forked from mattmazzola/pagination.ts
GraphQL Pagination Implementation
var graphql = require('graphql');
export function Edge(itemType: any) {
return new graphql.GraphQLObjectType({
name: "Edge",
description: "Generic edge to allow cursors",
fields: () => ({
node: { type: itemType },
cursor: { type: graphql.GraphQLString }
})