Skip to content

Instantly share code, notes, and snippets.

View Sceat's full-sized avatar
:octocat:
Pushing at the gym

Sceat Sceat

:octocat:
Pushing at the gym
View GitHub Profile
@jonjack
jonjack / add-update-refresh-github-access-token-on-mac.md
Last active May 1, 2024 02:05
Adding & Updating GitHub Access Token on Mac

Using an Access Token for the first time

Follow the instructions on Github to Create an Access Token in Github

Configure Git to use the osxkeychain

By default, git credentials are not cached so you need to tell Git if you want to avoid having to provide them each time Github requires you to authenticate. On Mac, Git comes with an “osxkeychain” mode, which caches credentials in the secure keychain that’s attached to your system account.

You can tell Git you want to store credentials in the osxkeychain by running the following:-

@jwreagor
jwreagor / node-k8s-watcher.js
Last active April 16, 2020 22:12
Kubernetes Watcher written in Node.js
'use strict';
// You use the `ResourceVersion` when making the initial query. So keep track
// of that upon successful reads and when you need to recreate the watcher from
// the last known point, pass in the `ResourceVersion` in the query.
const fs = require('fs')
const http = require('http')
const K8S_HOST = process.env['K8S_HOST'] || '10.100.0.1'