I hereby claim:
- I am manzanit0 on github.
- I am manzanit0 (https://keybase.io/manzanit0) on keybase.
- I have a public key ASDnQn9ajRDtZa_TXOM8fz_siDnddZxqmWu_Jsd-pRyyggo
To claim this, I am signing this object:
| const buildAccessTokenUri = (refreshToken, clientId, clientSecret) => | |
| `https://www.googleapis.com/oauth2/v4/token?client_id=${clientId}&client_secret=${clientSecret}&refresh_token=${refreshToken}&grant_type=refresh_token`; | |
| const getAccessToken = async (refreshToken, clientId, clientSecret) => { | |
| accessTokenUri = buildAccessTokenUri(refreshToken, clientId, clientSecret); | |
| const rawResponse = await fetch(accessTokenUri, { method: 'POST' }); | |
| const jsonResponse = await rawResponse.json(); | |
| return jsonResponse.access_token; |
I hereby claim:
To claim this, I am signing this object:
Taggin an image: docker tag image username/repository:tag
Publishing images in a remote repository: docker push username/repository:tag
Running an image in a remote repository: docker run -p 4000:80 username/repository:tag
| // Place your key bindings in this file to overwrite the defaults | |
| [ | |
| { | |
| "key": "cmd+t cmd+t", | |
| "command": "workbench.action.tasks.runTask", | |
| "args": "Run All Tests" | |
| }, | |
| { | |
| "key": "f5", | |
| "command": "workbench.action.tasks.runTask", |
| package com.manzanit0; | |
| import java.io.*; | |
| import java.net.ServerSocket; | |
| public class EchoServer { | |
| public static void main(String[] args) { | |
| int portNumber = 4098; | |
| try ( |
| #!/usr/bin/env python3 | |
| from paramiko import SSHClient, RSAKey, AutoAddPolicy | |
| import sys, argparse, time | |
| def ssh_connect(host, user, key): | |
| ssh = SSHClient() | |
| ssh.load_system_host_keys() | |
| ssh.set_missing_host_key_policy(AutoAddPolicy()) |
| # Dependencies: | |
| # {:httpoison, "~> 1.5"}, | |
| # {:floki, "~> 0.21.0"} | |
| # {:benchee, "~> 1.0"} (Only for benchmarking – not in the script) | |
| defmodule CrawlQueue do | |
| use Agent | |
| def start_link(urls) do |
| /** | |
| * This is a generic event class. It simply allows subscription and invocation. | |
| */ | |
| class Event<T> { | |
| private val handlers = arrayListOf<(Event<T>.(T) -> Unit)>() | |
| operator fun plusAssign(handler: Event<T>.(T) -> Unit) { handlers.add(handler) } | |
| operator fun invoke(value: T) { for (handler in handlers) handler(value) } | |
| } | |
| /** |
| # theming | |
| code --install-extension emmanuelbeziat.vscode-great-icons | |
| code --install-extension github.github-vscode-theme | |
| # terminal | |
| code --install-extension formulahendry.terminal | |
| code --install-extension msamueltscott.maximizeterminal | |
| # general stuff | |
| code --install-extension vscodevim.vim |