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
| FROM ubuntu:22.04 AS json-builder | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| git \ | |
| cmake \ | |
| python3 \ | |
| python3-pip \ | |
| openssh-client \ | |
| pkg-config |
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
| Computer Information: | |
| Manufacturer: Apple | |
| Model: MacBookPro16,1 | |
| Form Factor: Laptop | |
| No Touch Input Detected | |
| Processor Information: | |
| CPU Vendor: GenuineIntel | |
| CPU Brand: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz | |
| CPU Family: 0x6 |
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(user, context, callback) { | |
| var request = require("request"); | |
| function mergeProcess({ primaryUser, toMergeUser }) { | |
| var provider = toMergeUser.identities[0].provider; | |
| var providerUserId = toMergeUser.identities[0].user_id; | |
| var userIdentitiesEndpoint = | |
| auth0.baseUrl + "/users/" + primaryUser.user_id + "/identities"; |
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
| { | |
| "provinces": [ | |
| { | |
| "id": "1", | |
| "name": "آذربایجان شرقي" | |
| }, | |
| { | |
| "id": "2", | |
| "name": "آذربایجان غربي" | |
| }, |
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
| cdp () { | |
| cd ~/Projects && cd $1 | |
| } | |
| dl (){ | |
| aria2c -c -x16 -s16 $1 | |
| } | |
| alias c='sudo openconnect --cafile ~/cert/ca.crt --certificate ~/cert/dinner-loop.p12 --key-password 'confirm.traffic.jacket' --pfs 94.130.39.16:4443 -b --pid-file=$HOME/.openconnect.pid' | |
| function dc() { | |
| sudo kill -2 `cat "$HOME/.openconnect.pid"` && rm -f "$HOME/.openconnect.pid" | |
| sleep 3 |
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 sleep(ms) { | |
| return new Promise(resolve => setTimeout(resolve, ms)); | |
| } | |
| async function run() { | |
| let last; | |
| for (let i = 0; i < 2;) { | |
| await sleep(2000); | |
| if(last == document.body.scrollHeight) i++; | |
| window.scrollTo(0,document.body.scrollHeight); |
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
| #!/bin/bash | |
| tmuv() ( tmux split-window -dv -t $TMUX_PANE "bash --rcfile <(echo '. ~/.bashrc;$*')" ) | |
| tmuh() ( tmux split-window -dh -t $TMUX_PANE "bash --rcfile <(echo '. ~/.bashrc;$*')" ) | |
| end=$((SECONDS+3)) | |
| while [ $SECONDS -lt $end ]; do | |
| read -t 0.25 -N 1 input | |
| if [[ $input = "q" ]] || [[ $input = "Q" ]]; then | |
| exit 0 | |
| fi |
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
| cdp () { | |
| cd ~/Projects && cd $1 | |
| } | |
| dl (){ | |
| aria2c -c -x16 -s16 $1 | |
| } | |
| alias c='sudo openconnect --cafile ~/cert/ca.crt --certificate ~/cert/dinner-loop.p12 --key-password 'YOUR PASSWORD' --pfs 11.22.33.44 -b --pid-file=$HOME/.openconnect.pid' | |
| function dc() { | |
| sudo kill -2 `cat "$HOME/.openconnect.pid"` && rm -f "$HOME/.openconnect.pid" | |
| sleep 3 |
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
| yarn -D add eslint eslint-config-airbnb-base eslint-plugin-import eslint-plugin-react eslint-plugin-react-native babel-eslint | |
| echo "{ | |
| \"parser\": \"babel-eslint\", | |
| \"plugins\": [\"react\", \"react-native\"], | |
| \"parserOptions\": { | |
| \"ecmaFeatures\": { | |
| \"jsx\": true, | |
| \"modules\": true | |
| } | |
| }, |