CLICK ME
yes, even hidden code blocks!
print("hello world!")| #!/bin/sh | |
| # Check for "TODO" in staged files | |
| TODO_FOUND=$(git diff --cached --name-only --diff-filter=AM | grep -E '\.(cpp|c|cc|h|hpp)$' | xargs -r grep -l 'TODO') | |
| if [ ! -z "$TODO_FOUND" ]; then | |
| echo "Warning: TODO found in the following files:" | |
| echo "$TODO_FOUND" | |
| echo "Consider addressing the TODOs or creating tickets for them before committing." | |
| # Uncomment the next line to block the commit until TODOs are addressed |
| #! /bin/bash -e | |
| ##################################################### | |
| # DNS configurator # | |
| ##################################################### | |
| # Responds to a list of syscall. | |
| trap "error 'Exiting now...'" SIGINT SIGQUIT | |
| # CLI options (IRREPLACEABLE). |
| lst = [ | |
| {"current_time":1618861512,"success":True,"data":[{"id":590,"company":{"name":"افسران جنگ نرم","name_en":"Afsaran","company_slug":"afsaran","logo":"/company/afsaran/9f7d4c70-403a-11e9-ae0e-273fe94d6d59.png"},"job":{"job_slug":"full-stack","name":"Full Stack"},"title":"شرکت افسران جنگ نرم درخواست رسمی خود را مبنی بر عدم به اشتراک گذاری این اطلاعات بر روی پلتفرم جابگای ابلاغ کرده و به این منظور جابگای مجبور به حذف این اطلاعات میباشد.","description":"شرکت افسران جنگ نرم درخواست رسمی خود را مبنی بر عدم به اشتراک گذاری این اطلاعات بر روی پلتفرم جابگای ابلاغ کرده و به این منظور جابگای مجبور به حذف این اطلاعات میباشد.","vote_count":0,"down_vote_count":2,"vote_state":"NONE","view_count":61,"over_all_rate":0,"created":"2020-06-10 18:37","my_review":False,"state":"FULL","approved":True,"has_legal_issue":True}],"message":None,"total":1,"show_type":"TOAST","index":0}, | |
| {"current_time":1618861554,"success":True,"data":[{"id":60,"company":{"name":"آپاسای داده سیستم","name_en":"Apasai Dade System","company_sl |
| import kotlinx.coroutines.experimental.* | |
| import kotlinx.coroutines.experimental.channels.ReceiveChannel | |
| import kotlinx.coroutines.experimental.channels.consumeEach | |
| import kotlinx.coroutines.experimental.channels.produce | |
| import kotlin.coroutines.experimental.CoroutineContext | |
| fun <E> ReceiveChannel<E>.debounce( | |
| wait: Long = 50, | |
| context: CoroutineContext = DefaultDispatcher | |
| ): ReceiveChannel<E> = produce(context) { |
| #It's not directly mentioned in the documentation on how to do this, so here you go. This command will tunnel everything including DNS: | |
| sshuttle --dns -vr user@yourserver.com 0/0 --ssh-cmd 'ssh -i /your/key/path.pem' |
| get_latest_release() { | |
| curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api | |
| grep '"tag_name":' | # Get tag line | |
| sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value | |
| } | |
| # Usage | |
| # $ get_latest_release "creationix/nvm" | |
| # v0.31.4 |
| xattr -d com.apple.quarantine /path/to/app/myMacApp.app |