Snippets Collections
mvn -U io.quarkus:quarkus-maven-plugin:create \
        -DprojectGroupId=org.agoncal.quarkus.microservices \
        -DprojectArtifactId=rest-book \
        -DclassName="org.agoncal.quarkus.microservices.book.BookResource" \
        -Dpath="/api/books" \
        -Dextensions="resteasy-jsonb, smallrye-openapi"
    useEffect(() => {
        if(timeRemaining > 0) {
            setTimeout(() => {
                setTimeRemaining(time => time - 1)
            }, 1000)
        }
    }, [timeRemaining])
# Push the commit and update the deployed version on Heroku
git push heroku main

# Open the app in the browser (from terminal)
heroku open

#fetch heroku logs
heroku logs

#specify number of logs
heroku logs -n 200

#find all your fucking heroku deployment errors then cry yourself to sleep
heroku logs --tail

# Open the terminal in the app dyno in Heroku
heroku run bash
 
# Run a file 
node seeds/index.js
//screenshot entire screen, named ‘test.jpg’ in current working Terminal directory
screencapture test.jpg

// change path
screencapture ~/Desktop/screenshot.jpg

// copy to clipboard
screencapture -c

// specify file type
screencapture -t tiff sample.tiff
push esc

then :qw or whatever you want to do 
Ubuntu
	- lsof -i tcp:8003
	- kill -9 PID
    
Windows
	- netstat -a -o -n
	- Cntrl + f
	- taskkill /F /PID PID_of_port
* Start the VM
	- vagrant up
	- vagrant ssh
* Shutdown and remove everything in memory
	- vagrant halt
* Close the VM for later use
	- vagrant suspend
	- vagrant resume
* Changed the homestead.yaml file?
	- vagrant provision
npx degit sveltejs/template my-svelte-project
cd my-svelte-project
npm install
npm run dev
npx gsx-pdf-optimize raw_pdf.pdf optimized_pdf.pdf --dpi=150
git init
git add .
git commit -m "Message"

(Manually create a github repository without a readme file)
git remote add origin https://github.com/hassanms/typescript-practice.git
git branch -M main
git push -u origin main
python@3.8 is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.

If you need to have python@3.8 first in your PATH run:
  echo 'export PATH="/usr/local/opt/python@3.8/bin:$PATH"' >> ~/.zshrc

For compilers to find python@3.8 you may need to set:
  export LDFLAGS="-L/usr/local/opt/python@3.8/lib"

For pkg-config to find python@3.8 you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/python@3.8/lib/pkgconfig"

➜  ~ python --version
zsh: command not found: python3.8
➜  ~ vim .zshrc
➜  ~ source .zshrc
➜  ~ echo 'export PATH="/usr/local/opt/python@3.8/bin:$PATH"' >> ~/.zshrc
➜  ~ source .zshrc
cd /path/to/child/directory
cp ./* ../ -R
(REACT JS)
npx create-react-app <app>
-npm run start , build ...
-yarn start , build ...

(REACT NATIVE CLI)
npx react-native init <app>
-npx react-native start
-npx react-native run-android (run_ios)

(REACT NATIVE EXPO CLI)
expo init <app>
-npm start
sudo find /var/www/ -type d -exec chmod 755 {} \;
sudo find /var/www/ -type f -exec chmod 644 {} \;
pip install youtube-dl
youtube-dl --yes-playlist --write-auto-sub https://www.youtube.com/playlist?list=PLJ8cMiYb3G5czofUrrizDiyC_yNLOe_CF
ip addr | grep eth0 | grep inet | awk '{print $2}' | awk -F '/' '{print $1}' | awk '{printf "%s:3000", $0}' | clip.exe
$ git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY
star

Tue Aug 03 2021 10:14:19 GMT+0000 (UTC)

#commandline #java
star

Thu Jul 01 2021 18:54:30 GMT+0000 (UTC)

#commandline
star

Thu Jul 01 2021 09:18:14 GMT+0000 (UTC)

#commandline
star

Mon Jun 14 2021 12:11:52 GMT+0000 (UTC)

#heroku #nodejs #commandline
star

Mon Jun 07 2021 07:00:32 GMT+0000 (UTC) https://osxdaily.com/2011/08/11/take-screen-shots-terminal-mac-os-x/

#iterm #terminal #commandline #osx
star

Sat May 22 2021 08:35:18 GMT+0000 (UTC)

#commandline
star

Tue May 04 2021 16:02:42 GMT+0000 (UTC) https://docs.github.com/en/github/authenticating-to-github/checking-for-existing-ssh-keys

#commandline
star

Wed Apr 28 2021 11:21:00 GMT+0000 (UTC) https://duvien.com/blog/installing-composer-mac-osx

#larav #commandline
star

Mon Apr 26 2021 03:40:13 GMT+0000 (UTC)

#angular #commandline
star

Fri Mar 26 2021 08:36:55 GMT+0000 (UTC)

#commandline
star

Sat Mar 20 2021 06:03:45 GMT+0000 (UTC)

#commandline #laravel
star

Fri Mar 19 2021 16:25:11 GMT+0000 (UTC) https://blog.logrocket.com/why-people-arent-switching-to-svelte-yet/

#commandline
star

Wed Mar 17 2021 11:29:19 GMT+0000 (UTC) https://askubuntu.com/questions/13441/how-to-kill-applications#:~:text=Just%20go%20to%20the%20%22run,and%20it'll%20be%20killed.

#commandline
star

Mon Mar 15 2021 13:40:38 GMT+0000 (UTC) https://github.com/mattdesl/gsx-pdf-optimize

#nodejs #commandline #npx
star

Wed Mar 10 2021 07:12:49 GMT+0000 (UTC) https://kbroman.org/github_tutorial/pages/init.html

#commandline
star

Wed Dec 23 2020 16:31:49 GMT+0000 (UTC)

#terminal #commandline
star

Wed Oct 28 2020 20:32:40 GMT+0000 (UTC) https://askubuntu.com/questions/1192190/how-can-i-copy-the-contents-of-a-child-folder-to-its-parent-folder-using-command

#commandline
star

Sun Oct 04 2020 00:56:34 GMT+0000 (UTC)

#commandline
star

Thu May 14 2020 17:25:49 GMT+0000 (UTC) https://askubuntu.com/questions/722088/reset-default-permissions-for-var-www

#commandline
star

Tue Apr 28 2020 19:57:07 GMT+0000 (UTC) https://dev.to/lydiahallie/cs-visualized-useful-git-commands-37p1

#commandline
star

Sat Mar 07 2020 21:45:45 GMT+0000 (UTC) https://dev.to/m0nica/automating-file-creation-with-javascript-8j5

#commandline #javascript #tutorial #react
star

Fri Feb 21 2020 18:02:15 GMT+0000 (UTC)

#python #commandline
star

Fri Dec 27 2019 13:19:35 GMT+0000 (UTC) https://dev.to/codeluggage/today-i-wrote-a-handy-little-snippet-to-easily-access-ubuntu-from-windows-in-wsl2-19l

#commandline #interesting #windows #ubuntu #linux
star

Wed Dec 25 2019 18:55:34 GMT+0000 (UTC) https://help.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository

#commandline #git #github #howto
star

https://medium.com/@thiscodeworks.com/how-to-redirect-your-node-js-app-hosted-on-heroku-from-http-to-https-50ef80130bff

#javascript #nodejs #commandline

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension