-
Go to
https://api.sanity.io/v1/auth/login/github?type=token&origin=http://localhost
Exchange
github
forgoogle
if you prefer that. You don't need anything running on localhost. -
Pick out the value of the sid param in the return url trying to load on localhost.
-
Load
https://api.sanity.io/v1/auth/fetch?sid=xxxx
using thesid
value from above. -
Pick out the token from the result.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {switchMap, tap} from 'rxjs/operators' | |
import {EMPTY, Observable, OperatorFunction, defer, of} from 'rxjs' | |
export function bufferUntil<T>( | |
emitWhen: (currentBuffer: T[]) => boolean | |
): OperatorFunction<T, T[]> { | |
return (source: Observable<T>) => | |
defer(() => { | |
let buffer: T[] = [] // custom buffer | |
return source.pipe( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function SplitNodeSelectionPlugin() { | |
return { | |
onCommand(command, editor, next) { | |
const splitOperationsInsertingNewBlock = editor.operations.filter( | |
op => op.type === 'split_node' && op.path.size === 1 | |
) | |
if (splitOperationsInsertingNewBlock.size === 0) { | |
return next() | |
} | |
return splitOperationsInsertingNewBlock |
Download and compile cvt_modeline_calculator_12 which will give access to CVT v.1.2 reduced blanking timings not supported by standard xorg tools.
# cd ~/ && wget https://raw.githubusercontent.com/kevinlekiller/cvt_modeline_calculator_12/master/cvt12.c && gcc cvt12.c -O2 -o cvt12 -lm -Wall
Example for 110Hz:
# ./cvt12 2560 1440 110 -b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am skogsmaskin on github. | |
* I am pkn (https://keybase.io/pkn) on keybase. | |
* I have a public key whose fingerprint is 5AD2 B551 ABEE 528C 8340 3801 96A6 2302 8AAB C043 | |
To claim this, I am signing this object: |