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
| $PWD // d:/videos | |
| mkdir videos | |
| cd videos | |
| youtube-dl -f best https://www.youtube.com/channel/UCyuTv0MItj1wqwRDQAvX3rQ/videos | |
| cd c:/ffmpeg/bin | |
| export PATH=$PATH:$PWD | |
| cd d:/videos | |
| mkdir outputs | |
| for f in *.mp4; do ffmpeg -i "$f" -vn -c:a copy "outputs/${f%.mp4}.m4a"; done |
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
| version: '3' | |
| networks: | |
| web: | |
| external: true | |
| services: | |
| traefik: | |
| image: traefik:v2.2 | |
| container_name: traefik |
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
| Buju | |
| Cambly | |
| Toddle | |
| Alation | |
| Startup Voyager | |
| Atalassian | |
| CoinSwitch | |
| Hasura | |
| Trell | |
| Pankhuri |
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
| find . -name 'node_modules' -type d -prune -exec rm -rf '{}' + |
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
| sudo ncdu / |
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
| sudo echo 0 > /proc/sys/vm/overcommit_memory | |
| wget https://s3.amazonaws.com/artifacts.h2o.ai/releases/ai/h2o/dai/rel-1.8.1-146/x86_64-centos7/dai-docker-centos7-x86_64-1.8.1.1-10.0.tar.gz | |
| docker load < dai-docker-centos7-x86_64-1.8.1.1-10.0.tar.gz | |
| # Set up the data, log, license, and tmp directories on the host machine (within the new directory) | |
| mkdir data | |
| mkdir log | |
| mkdir license | |
| mkdir tmp |
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
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| "sync" | |
| ) | |
| var wg sync.WaitGroup |
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
| let state = { "one": 123 }; | |
| useState = () => { | |
| const setOne = (v) => { | |
| state["one"] = v; | |
| } | |
| const One = () => state["one"] | |
| return [One, setOne] | |
| } | |
| [One, setOne] = useState() | |
| console.log(One()) //123 |
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
| var myHeap = []; | |
| function swap(i, j) { // swap; | |
| var temp; | |
| temp = myHeap[i]; | |
| myHeap[i] = myHeap[j]; | |
| myHeap[j] = temp; | |
| } | |
| function bubble(i) { | |
| var pi = Math.floor(i / 2); // parent's index |
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
| var myHeap = []; | |
| function swap(i, j) { // swap; | |
| var temp; | |
| temp = myHeap[i]; | |
| myHeap[i] = myHeap[j]; | |
| myHeap[j] = temp; | |
| } | |
| function bubble(i) { | |
| var pi = Math.floor(i / 2); // parent's index |
NewerOlder