I hereby claim:
- I am ProbablePrime on github.
- I am probableprime (https://keybase.io/probableprime) on keybase.
- I have a public key whose fingerprint is 7173 39BB D6D9 04D0 027C 7E29 83CD 1B43 231A A685
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/** | |
* Attempt to use OAuth to authenticate with beam. | |
* It is assumed that you are using an IMPLICIT flow here. | |
* | |
* @param {Object} config A config object | |
* @param {String} config.token The implicit OAuth token for this user | |
* @param {BeamClient} beam A beam client instance | |
* @returns {Promise.<user>} | |
*/ | |
function oAuth(config, beam) { |
import fetch , { Request, Response, RequestInit } from 'node-fetch'; //tslint:disable-line | |
const fetchCookie: (url: string | Request, init?: RequestInit) => Promise<Response> = require('fetch-cookie')(fetch); //tslint:disable-line | |
const BASE = 'https://beam.pro/api/v1/'; | |
function buildURL(url: string): string { | |
return BASE + url; | |
} |
While experimenting with Ubuntu on a variet of systems I often need to stand up a brand new machine and secure access to it. A lot of providers will setup the machine using the root account and email you a password. I'd rather not use the root user and setup RSA Keys. Doing this manually is a bit of a chore but if you don't have any other options here's how to do it.
adduser <username>
.This is the section i always forget, I'll usually spend half an hour googling for the chmod settings required.
<html> | |
<head> | |
<style type="text/css"> | |
.malm { | |
height: 100%; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
flex-direction: column; | |
} |
using System; | |
using System.Text.Encodings.Web; | |
using System.Text.Json; | |
namespace JSONStuff | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
using DynamicData; | |
using DynamicData.Binding; | |
using ReactiveUI; | |
using ReactiveUI.Fody.Helpers; | |
using System.Collections.ObjectModel; | |
using System.Diagnostics; | |
namespace ConsoleApp1; | |
/** Simplified for this question, but let's say I'm building a UI with this layout | |
* | Name | Should be Included| Size | |
const { mwn } = require('mwn'); | |
function shouldIgnore(title) { | |
if (title === "Category:ProtoFlux") | |
return true; | |
if (title === "Category:ProtoFlux:All") | |
return true; | |
if (title === "Category:ProtoFluxStubs") | |
return true; |