Snippets Collections
node -e "console.log(crypto.randomBytes(32).toString('hex'))"

// 8142e7beb79d8b0988fd0c22ceaf8b92c29a4ca264d70632ce0ee18e31110cdc
$ sudo hdparm -Tt /dev/sda
 Timing cached reads:   16924 MB in  2.00 seconds = 8469.95 MB/sec
 Timing buffered disk reads: 1386 MB in  3.00 seconds = 461.50 MB/sec
How to Stress Test Your Raspberry Pi
Now it's time to find out what your Pi is really made of. Open up a terminal window and enter the following to download Stress and cpuburn-a53:

sudo apt-get install stress


gcc -o cpuburn-a53 cpuburn-a53.S
Now to run these tests, we're going to be monitoring the ARM CPU frequency to see whether the Pi automatically throttles the speed (indicates temperature of 80C) and the core temperature. Pay close attention to these, and if the temperature gets too hot, be prepared to pull the power. It's a good idea to run these tests on a fresh image of Raspbian to ensure that any important files don't get corrupted in case you need to pull the power (in case of a system freeze, crash or over-temp).

**If you need to shutdown your system while it's non-responsive, try pressing alt prtscr b before pulling the power, if that doesn't work, then remove the power supply**

To run Stress, use the following terminal command:

while true; do vcgencmd measure_clock arm; vcgencmd measure_temp; sleep 10; done& stress -c 4 -t 900s
Monitor the CPU frequency and temperature for 10mins and only move on to cpuburn-a53 if the test is run for 10mins without throttling or 80C temperatures.

brew services restart mongodb/brew/mongodb-community

git clone ~
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
▶ My shell setup:
* Fish shell:
* Fisher:
* Shellder:
* Nerd fonts:
* z for fish:
* Exa:
* ghq:
* peco:
//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
open a new tab                             # cmd + t
close tab                                  # cmd + w
clear window (keeping history)             # ctrl + l
clear window (losing history)              # cmd + k
reach next word                            # alt + →
reach previous word                        # alt + ←
reach beginning of line                    # ctrl + a
reach end of line                          # ctrl + e
erase the whole line                       # ctrl + u
navigate to tab on the right               # cmd + shift + →
navigate to tab on the left                # cmd + shift + ←
Do you have zsh installed (ii)? dpkg -l zsh
Is your shell set to zsh? Last field of grep $USER /etc/passwd
Is Zsh a valid login shell? grep zsh /etc/shells
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

Thu Jul 07 2022 10:56:49 GMT+0000 (UTC)'s+tutorial+for+mbpfan+under+Ubuntu

#mbpfan #ubuntu20.04 #commandline #macbookpro #terminal #fanspeed

Tue Apr 05 2022 15:48:31 GMT+0000 (UTC)

#terminal #linux

Tue Apr 05 2022 15:44:18 GMT+0000 (UTC)

#linux #terminal #benchmark

Sun Mar 27 2022 17:02:41 GMT+0000 (UTC)

#raspberry #terminal

Sat Mar 12 2022 13:58:00 GMT+0000 (UTC)

#terminal #commandline

Wed Jan 26 2022 12:23:08 GMT+0000 (UTC)

#zsh #terminal

Sun Jan 23 2022 11:52:23 GMT+0000 (UTC)

#wsl #wsl2 #windows #powershell #terminal #commands

Thu Jan 20 2022 23:52:33 GMT+0000 (UTC)

#fisher #powershell #terminal

Mon Sep 20 2021 18:51:42 GMT+0000 (UTC)


Mon Jun 07 2021 07:00:32 GMT+0000 (UTC)

#iterm #terminal #commandline #osx

Wed Apr 07 2021 09:11:03 GMT+0000 (UTC)

#terminal #shortcuts

Mon Jan 04 2021 12:10:49 GMT+0000 (UTC)


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

#terminal #commandline

Save snippets that work with our extensions

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