Skip to content

Instantly share code, notes, and snippets.

View thenetimp's full-sized avatar

Net Imp thenetimp

  • Tokyo, Japan
  • 22:53 (UTC +09:00)
View GitHub Profile
@thenetimp
thenetimp / index.js
Last active March 14, 2021 00:28 — forked from dionysio/index.js
Firebase Cloud Function 3rd Party Oauth Flow For Twitch
const functions = require('firebase-functions');
var admin = require("firebase-admin");
const cookieParser = require('cookie-parser');
const crypto = require('crypto');
const axios = require('axios');
admin.initializeApp({});
/**
* Creates a configured simple-oauth2 client for Twitch.
@thenetimp
thenetimp / chef-github.md
Last active August 19, 2018 15:20
Communicating to private github repo in a chef recipe.

This gist file is basic documentation that I used to communicate with github private repositories.

Connecting to a private git repository from a chef recipe. Create a directory called tmp-ssh and in it generate a passphraseless ssh key.

  mkdir tmp-ssh

  cd tmp-ssh

Creates a 4096 bit rsa key in the file called "id_rsa" with no passphrase.