Snippets Collections
$ sudo hdparm -Tt /dev/sda
/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

wget https://raw.githubusercontent.com/ssvb/cpuburn-arm/master/cpuburn-a53.S

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 https://github.com/ChristianChiarulli/Machfiles.git ~
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
▶ My shell setup:
* Fish shell: https://fishshell.com/
* Fisher: https://github.com/jorgebucaran/fisher
* Shellder: https://github.com/simnalamburt/shellder
* Nerd fonts: https://github.com/ryanoasis/nerd-fonts
* z for fish: https://github.com/jethrokuan/z
* Exa: https://the.exa.website/
* ghq: https://github.com/x-motemen/ghq
* peco: https://github.com/peco/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
star

Tue Apr 05 2022 15:48:31 GMT+0000 (UTC) https://devconnected.com/how-to-list-disks-on-linux/

#terminal #linux
star

Tue Apr 05 2022 15:44:18 GMT+0000 (UTC) https://www.shellhacks.com/disk-speed-test-read-write-hdd-ssd-perfomance-linux/

#linux #terminal #benchmark
star

Sun Mar 27 2022 17:02:41 GMT+0000 (UTC) https://core-electronics.com.au/guides/stress-testing-your-raspberry-pi/

#raspberry #terminal
star

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

#terminal #commandline
star

Wed Jan 26 2022 12:23:08 GMT+0000 (UTC) https://github.com/ChristianChiarulli/Machfiles

#zsh #terminal
star

Sun Jan 23 2022 11:52:23 GMT+0000 (UTC) https://ubuntu.com/tutorials/ubuntu-on-windows#1-overview

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

Thu Jan 20 2022 23:52:33 GMT+0000 (UTC) https://www.youtube.com/watch?v

#fisher #powershell #terminal
star

Mon Sep 20 2021 18:51:42 GMT+0000 (UTC) https://axios-http.com/docs/intro

#terminal
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

Wed Apr 07 2021 09:11:03 GMT+0000 (UTC) https://github.com/Eschults/useful_stuff

#terminal #shortcuts
star

Mon Jan 04 2021 12:10:49 GMT+0000 (UTC) https://askubuntu.com/questions/131823/how-to-make-zsh-the-default-shell

#terminal
star

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