From: Edward Delaporte Date: Thu, 28 Sep 2023 18:14:52 +0000 (-0500) Subject: Move cheatsheets to doc X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/commitdiff_plain/17c099ddd962c72dde06c712a71f6d70c1632adc Move cheatsheets to doc --- diff --git a/cheatsheets/c64.md b/doc/cheatsheets/c64.md similarity index 100% rename from cheatsheets/c64.md rename to doc/cheatsheets/c64.md diff --git a/cheatsheets/docker.md b/doc/cheatsheets/docker.md similarity index 100% rename from cheatsheets/docker.md rename to doc/cheatsheets/docker.md diff --git a/cheatsheets/github.py b/doc/cheatsheets/github.py similarity index 100% rename from cheatsheets/github.py rename to doc/cheatsheets/github.py diff --git a/cheatsheets/paths.md b/doc/cheatsheets/paths.md similarity index 98% rename from cheatsheets/paths.md rename to doc/cheatsheets/paths.md index 4aad325..a038ea6 100644 --- a/cheatsheets/paths.md +++ b/doc/cheatsheets/paths.md @@ -1,11 +1,11 @@ - -```powershell - $ENV:PATH+=";C:\Program Files\Microsoft VS Code\bin" # One Editor to rule them all - $ENV:PATH+=";C:\Program Files\Python38\Scripts\;C:\Program Files\Python38\" # Python latest as of 2019 December - $ENV:PATH+=";C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Docker\Docker\Resources\bin" # Docker for R Studio and Jupyter - $ENV:PATH+=";C:\Program Files (x86)\Common Files\Oracle\Java\javapath" # Don't remember why I still care about Java. - $ENV:PATH+=";C:\Program Files\Git\cmd" # Version control is nice. - $ENV:PATH+=";C:\ProgramData\chocolatey\bin" # Package management is nice. - $ENV:PATH+=";C:\Program Files\nodejs" # KataKoda wants to add tools via npm - $ENV:PATH+=";C:\PENGUIN" # Flag to ensure my profile kicked in. -``` + +```powershell + $ENV:PATH+=";C:\Program Files\Microsoft VS Code\bin" # One Editor to rule them all + $ENV:PATH+=";C:\Program Files\Python38\Scripts\;C:\Program Files\Python38\" # Python latest as of 2019 December + $ENV:PATH+=";C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Docker\Docker\Resources\bin" # Docker for R Studio and Jupyter + $ENV:PATH+=";C:\Program Files (x86)\Common Files\Oracle\Java\javapath" # Don't remember why I still care about Java. + $ENV:PATH+=";C:\Program Files\Git\cmd" # Version control is nice. + $ENV:PATH+=";C:\ProgramData\chocolatey\bin" # Package management is nice. + $ENV:PATH+=";C:\Program Files\nodejs" # KataKoda wants to add tools via npm + $ENV:PATH+=";C:\PENGUIN" # Flag to ensure my profile kicked in. +``` diff --git a/cheatsheets/raspberry-pi.md b/doc/cheatsheets/raspberry-pi.md similarity index 94% rename from cheatsheets/raspberry-pi.md rename to doc/cheatsheets/raspberry-pi.md index 7408f0f..b373481 100644 --- a/cheatsheets/raspberry-pi.md +++ b/doc/cheatsheets/raspberry-pi.md @@ -1,89 +1,89 @@ - -## Remote Access - -Under Preferences - -+ Change Password -+ Under Interfaces - Enable SSH and VNC - -On a Windows computer: - -```powershell -choco install vnc-viewer -``` - -VNC remote host will be `raspberrypi.local`. -User is `pi`. Password is whatever you set in the step above. - -## Overclock - -Watch your speed with one of these commands: -```bash -cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq -vcgencmd measure_clock arm -watch -n 1 vcgencmd measure_clock arm -``` - -To edit the overclock setting: -```bash -sudo vi /boot/config.txt -``` - -```ini -# uncomment to overclock the arm. 700 MHz is the default. -over_voltage=6 -arm_freq=2000 -``` - -Reboot to apply changes. - -```bash -sudo reboot -``` - -[Explanation of availabe over-clock settings](https://haydenjames.io/raspberry-pi-3-overclock/) - -## Set up for TV Use - -### Change Scale - -+ Right-Click -+ Desktop Preferences -+ System -+ Font: 22+ -+ Mouse Cursor: Large - - -## Set up for TV Remote Control - -### TODO: Install XMBC / Kodi - -Once called XBox Media Center. - -Maybe install Kodi or [OSMC](https://osmc.tv/download/) - -Simplest is to image the whole install... -https://www.raspberrypi.org/documentation/usage/kodi/README.md - -```powershell -sudo apt install kodi -``` - -### TODO: Commands from TV remote into Pi - -HDMI can send TV remote commands to the Pi via [CEC](https://github.com/Pulse-Eight). - -List connected devices: - -```powershell -cec-client -l -``` - -List available commands -```powershell -echo h | cec-client -s -d 1 -``` - - - + +## Remote Access + +Under Preferences + ++ Change Password ++ Under Interfaces - Enable SSH and VNC + +On a Windows computer: + +```powershell +choco install vnc-viewer +``` + +VNC remote host will be `raspberrypi.local`. +User is `pi`. Password is whatever you set in the step above. + +## Overclock + +Watch your speed with one of these commands: +```bash +cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq +vcgencmd measure_clock arm +watch -n 1 vcgencmd measure_clock arm +``` + +To edit the overclock setting: +```bash +sudo vi /boot/config.txt +``` + +```ini +# uncomment to overclock the arm. 700 MHz is the default. +over_voltage=6 +arm_freq=2000 +``` + +Reboot to apply changes. + +```bash +sudo reboot +``` + +[Explanation of availabe over-clock settings](https://haydenjames.io/raspberry-pi-3-overclock/) + +## Set up for TV Use + +### Change Scale + ++ Right-Click ++ Desktop Preferences ++ System ++ Font: 22+ ++ Mouse Cursor: Large + + +## Set up for TV Remote Control + +### TODO: Install XMBC / Kodi + +Once called XBox Media Center. + +Maybe install Kodi or [OSMC](https://osmc.tv/download/) + +Simplest is to image the whole install... +https://www.raspberrypi.org/documentation/usage/kodi/README.md + +```powershell +sudo apt install kodi +``` + +### TODO: Commands from TV remote into Pi + +HDMI can send TV remote commands to the Pi via [CEC](https://github.com/Pulse-Eight). + +List connected devices: + +```powershell +cec-client -l +``` + +List available commands +```powershell +echo h | cec-client -s -d 1 +``` + + + [Reference](https://ownyourbits.com/2017/02/02/control-your-raspberry-pi-with-your-tv-remote/) \ No newline at end of file diff --git a/cheatsheets/rstudio.md b/doc/cheatsheets/rstudio.md similarity index 100% rename from cheatsheets/rstudio.md rename to doc/cheatsheets/rstudio.md diff --git a/cheatsheets/setup-i3.md b/doc/cheatsheets/setup-i3.md similarity index 100% rename from cheatsheets/setup-i3.md rename to doc/cheatsheets/setup-i3.md