Skip to content

Instantly share code, notes, and snippets.

Avatar
🙏
Trying my best to be worth something.

Benjamin Lupton balupton

🙏
Trying my best to be worth something.
View GitHub Profile
@colllin
colllin / Readme.md
Last active Aug 11, 2020
Auth0 + FaunaDB integration strategy
View Readme.md

Goal

Solutions

At the very least, we need two pieces of functionality:

  1. Create a user document in Fauna to represent each Auth0 user.
  2. Exchange an Auth0 JWT for a FaunaDB user secret.
@bvaughn
bvaughn / index.md
Last active Jan 24, 2021
How to use profiling in production mode for react-dom
View index.md
@posener
posener / go-shebang-story.md
Last active Jan 20, 2021
Story: Writing Scripts with Go
View go-shebang-story.md

Story: Writing Scripts with Go

This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.

Why Go is good for scripting?

While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.

View Melbourne Node.js Backend HTTP services development. Contract or Fulltime.md

One of Newscorp's most heavily used data platforms, TCOG, is beginning a rebuild.

TCOG has 6 deployments taking high web traffic to deliver digital content for some of Australia's most downloaded sources of news and media.

The TCOG service loosely fits into a 'backend for the frontend' pattern that provides an API to front end clients to transform and render data from one or more upstream APIs by "smart URLs". See http://samnewman.io/patterns/architectural/bff/ for more information about the pattern.

Over time, the TCOG service has become monolithic. We have designed TCOG 1.5, which will consist of smaller services. We want you to help us build them! This project is a mixture of refactoring the existing and working on greenfield solutions to known problems. The new architectural direction is focussed on service patterns for caching, rendering and data transformation.

In addition, regular BAU work requires communication and support for the surrounding developers who build TCOG extensions to service the

@AgentOak
AgentOak / youtube_formats.md
Last active Jan 26, 2021
Youtube Format IDs
View youtube_formats.md

Last updated: December 2020

Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22). Depending on the age and/or popularity of the video, not all formats will be available.

DASH video

Resolution AV1 HFR AV1 VP9.2 HDR HFR VP9 HFR VP9 H.264 HFR H.264
MP4 MP4 WebM WebM WebM MP4 MP4
@tam7t
tam7t / certdump.go
Created Sep 1, 2016
certdump consul-template plugin for writing vault-generated certificates to separate files
View certdump.go
package main
import (
"io/ioutil"
"log"
"os"
"os/user"
"strconv"
)
View Redis-BestPractices-General.md

Some of the Redis best practices content has moved

This content from this markdown file has moved a new, happier home where it can serve more people. Please check it out : https://docs.microsoft.com/azure/azure-cache-for-redis/cache-best-practices.

NOTE: Client specific guidance listed below is still valid and should still be considered. I will update this document once all content has been moved.

@andypiper
andypiper / basic-recipes.md
Last active Jan 18, 2021
Twitter API recipes for twurl +jq, and other useful Twitter code snippets and tools
View basic-recipes.md
View babel-preset-es2015-loose.js
module.exports = {
plugins: [
// es2015 - based off of v6.3.13
// https://github.com/babel/babel/blob/master/packages/babel-preset-es2015/index.js
[require('babel-plugin-transform-es2015-template-literals'), { loose: true }],
require('babel-plugin-transform-es2015-literals'),
require('babel-plugin-transform-es2015-function-name'),
require('babel-plugin-transform-es2015-arrow-functions'),
require('babel-plugin-transform-es2015-block-scoped-functions'),
[require('babel-plugin-transform-es2015-classes'), { loose: true }],
@datagrok
datagrok / .gitignore
Last active Jan 3, 2021
get_favs.py: quick and dirty script to archive twitter favs (aka "likes")
View .gitignore
creds.py
favs.db*