I hereby claim:
- I am eecolor on github.
- I am eecolor (https://keybase.io/eecolor) on keybase.
- I have a public key whose fingerprint is AF78 4091 483A 8E95 E0F4 FE7F 103A 000A 62BA 9F9B
To claim this, I am signing this object:
| #!/usr/bin/env node | |
| import { generateKeyPairSync } from 'node:crypto' | |
| import { statSync, writeFileSync } from 'node:fs' | |
| ensureKeyFile('./config/vapid_keys.json') | |
| function ensureKeyFile(keyFile) { | |
| if (statSync(keyFile, { throwIfNoEntry: false })?.isFile()) | |
| return |
| MAC=11:22:33:44:55:66 | |
| echo -e $(echo $(printf 'f%.0s' {1..12}; printf "$(echo $MAC | sed 's/://g')%.0s" {1..16}) | sed -e 's/../\\x&/g') | nc -w1 -u -b 255.255.255.255 4000 |
| #!/bin/bash | |
| outfile="./iam-policy.csv" | |
| echo "Project, Account, Role" > $outfile | |
| for project in $(gcloud projects list --format="table(projectId)" --filter 'parent.id=... AND parent.type=organization' | tail -n +2 | cut -f2 -d$' ' | sed '/^$/d'); do | |
| out=$(gcloud projects get-iam-policy $project --flatten="bindings[].members[]" --format="csv[no-heading](bindings.members,bindings.role)") | |
| echo $project | |
| for line in $out; do | |
| echo "$project,$line" >> $outfile |
| #!/usr/bin/env bash | |
| PROMPT_GREEN='\001'`tput setaf 2`'\002' | |
| PROMPT_PINK='\001'`tput setaf 5`'\002' | |
| PROMPT_PLAIN='\001'`tput op`'\002' | |
| function in_git_repo { | |
| [ -d .git ] || git rev-parse --git-dir > /dev/null 2>&1 | |
| } |
| const moreDetail = () => { | |
| ... | |
| } | |
| const detail1 = () => { | |
| ... | |
| return moreDetail() | |
| } | |
| const detail2 = (input) => { |
| a |
| #!/usr/bin/env bash | |
| PROMPT_GREEN='\001'`tput setaf 2`'\002' | |
| PROMPT_PINK='\001'`tput setaf 5`'\002' | |
| PROMPT_PLAIN='\001'`tput op`'\002' | |
| function in_git_repo { | |
| [ -d .git ] || git rev-parse --git-dir > /dev/null 2>&1 | |
| } |
| module.exports = function throttledChildAdded(ref, callback, onError, sortChildKey = null /* uses `key` if null */) { | |
| const state = { stopped: false } | |
| let listener = null | |
| throttledChildAdded({ state, endReached: lastSeen => { listener = listenForNewChildren({ startAfter: lastSeen }) } }) | |
| return () => { | |
| state.stopped = true | |
| if (listener) ref.off('child_added', listener) |
| const storage = require('@google-cloud/storage') | |
| const createUuid = require("uuid-v4") | |
| const credentials = require('./test-firebase-credentials.json') | |
| const firebaseProjectName = 'test' | |
| const bucketName = `${firebaseProjectName}.appspot.com` | |
| const bucket = storage({ credentials }).bucket(bucketName) | |
| module.exports = firebaseSaveFile |
I hereby claim:
To claim this, I am signing this object: