This file contains hidden or 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
#!/usr/bin/env zx | |
const MFA_ARN = "...MFA_ARN..." | |
const baseFolder = "/Users/roman/dev/xyz" | |
const code = await question('What is MFA code? ') | |
// if using Yubikey | |
// const codeRes = await $`ykman oath accounts code ${MFA_ARN}` | |
// const code = codeRes.stdout.split(/\s+/)[1] |
This file contains hidden or 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 satori from "satori"; | |
import type { SatoriOptions } from "satori"; | |
import { Resvg } from "@resvg/resvg-js"; | |
import fs from "fs"; | |
import { join } from "path"; | |
import { ReactElement } from "react"; | |
const fallbackFont = fs.readFileSync( | |
join( | |
// fileURLToPath(import.meta.url), |
This file contains hidden or 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 { createMocksAsync } from '../../../utils/node-mocks-http'; | |
// nextjs handler | |
import logout from '../../../pages/api/auth/logout'; | |
describe('logout api', () => { | |
it('should clear cookies and redirect to home', async () => { | |
const refreshToken = 'refresh_token_1'; | |
const { req, res, result } = createMocksAsync({ | |
method: 'GET', |
This file contains hidden or 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
alias aliases='vi ~/.bash_aliases' | |
alias lsa='ls -a' | |
alias master='git checkout master; git pull origin master' | |
alias profile='vi ~/.bash_profile' | |
alias pubkey="more ~/.ssh/id_rsa.pub | pbcopy | echo '=> Public key copied to pasteboard.'" | |
alias reload='source ~/.bash_profile' | |
alias up='cd ..' | |
alias jira='https://jira.walmart.com/secure/RapidBoard.jspa?rapidView=9759&projectKey=CAPIP' | |
alias wiki='open https://confluence.my-company.com/display/PROJECT' |
This file contains hidden or 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
Show hidden characters
{ | |
// Place your credit-card-app workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and | |
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope | |
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is | |
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. | |
// Placeholders with the same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "scope": "javascript,typescript", |
This file contains hidden or 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 { createIconSet } from "react-native-vector-icons"; | |
import glyphMap from "../../../assets/fonts/wmicons-map.json"; | |
const Icon = createIconSet(glyphMap, "wmicons"); | |
const SIZE = 20 | |
export const CartIcon = (props = {}) => ( | |
<Icon name="cart" size={SIZE} {...props} /> | |
); |
This file contains hidden or 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
adb -d shell settings put global op_voice_recording_supported_by_mcc 1 | |
This file contains hidden or 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
function ag_replace { | |
if [ -z "$1" -o $# -eq 1 ]; then | |
echo "Usage: ag_replace FROM_STRING TO_STRING [OPTION]..." | |
echo | |
echo "Replace all occurances of FROM_STRING (a sed-compatible regular" | |
echo "expression) with TO_STRING in all files for which ack-grep matches" | |
echo "FROM_STRING." | |
echo | |
echo "Any additional options are passed directly to ack-grep (e.g.," | |
echo " --type=html would only run the substitution on html files)." |
This file contains hidden or 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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "cmd+e", | |
"command": "eslint.executeAutofix", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "cmd+r", | |
"command": "workbench.files.action.showActiveFileInExplorer", |
This file contains hidden or 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
python resource_tree.py --limit=100 --file_path=data.json Internet |
NewerOlder