My terminal code snippets essentials

disable/enable SIP on mac:

when:

csrutil disable
csrutil enable
csrutil enable –without kext –without fs

install google fonts form github:

when: you want to use locally the entire google font library.


This content originally appeared on DEV Community and was authored by david mimay

disable/enable SIP on mac:

when:

csrutil disable
csrutil enable
csrutil enable --without kext --without fs

install google fonts form github:

when: you want to use locally the entire google font library.

first time:

cd ~/Library/Fonts/
git clone https://github.com/google/fonts.git google-fonts

update google fonts:

cd ~/Library/Fonts/google-fonts && git pull && cd -

hide folders/files:

chflags hidden dragyourfolderhere

chflags nohidden dragyourfile

cmd + shift + period: shows/hide elements on finder.

vscode shortcut:

cntrl+space: shows available phrases

download audio files from chrome:

On Chrome open developer mode, View/Developer/Inspect Elements. And paste on console:

var audio1 = document.getElementsByTagName("audio")[0];
window.open(audio1.src);

force quit not working

sudo pkill loginwindow

clean node_modules folder

cd demo
find . -name 'node_modules' -type d -prune
find . -name "node_modules" -type d -prune -exec rm -rf '{}' +


This content originally appeared on DEV Community and was authored by david mimay


Print Share Comment Cite Upload Translate Updates
APA

david mimay | Sciencx (2022-02-11T18:42:33+00:00) My terminal code snippets essentials. Retrieved from https://www.scien.cx/2022/02/11/my-terminal-code-snippets-essentials/

MLA
" » My terminal code snippets essentials." david mimay | Sciencx - Friday February 11, 2022, https://www.scien.cx/2022/02/11/my-terminal-code-snippets-essentials/
HARVARD
david mimay | Sciencx Friday February 11, 2022 » My terminal code snippets essentials., viewed ,<https://www.scien.cx/2022/02/11/my-terminal-code-snippets-essentials/>
VANCOUVER
david mimay | Sciencx - » My terminal code snippets essentials. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/02/11/my-terminal-code-snippets-essentials/
CHICAGO
" » My terminal code snippets essentials." david mimay | Sciencx - Accessed . https://www.scien.cx/2022/02/11/my-terminal-code-snippets-essentials/
IEEE
" » My terminal code snippets essentials." david mimay | Sciencx [Online]. Available: https://www.scien.cx/2022/02/11/my-terminal-code-snippets-essentials/. [Accessed: ]
rf:citation
» My terminal code snippets essentials | david mimay | Sciencx | https://www.scien.cx/2022/02/11/my-terminal-code-snippets-essentials/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.