Skip to content

Instantly share code, notes, and snippets.

View traumverloren's full-sized avatar
🐢

Stephanie traumverloren

🐢
View GitHub Profile
# update system
$ sudo apt update && sudo apt upgrade
# uninstall old node (v10?)
$ sudo apt remove nodejs npm -y
# install nvm
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
# use 'unofficial builds' in nvm
@traumverloren
traumverloren / how-to-readme-guestbook.md
Last active October 7, 2023 07:54
How to Create a Guestbook for Your Github Personal Readme!

How to Create a Guestbook for Your Github Personal Readme!

To create a "guestbook", like this we can use the image hosting & commenting abilities of Github Gists ftw! ✨

Create a Gist to Host Your Guestbook & Image

  1. Log into Github

  2. Go to https://gist.github.com

  3. Select "+" in the top right corner of the toolbar to create a new gist and save it as public gist.

@traumverloren
traumverloren / pi-canvas.md
Created April 14, 2020 17:58
Get canvas + pi camera to work on RPI + node

Install dependencies:

sudo apt-get update // Updates

sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++

enable camera:

sudo raspi-config

@traumverloren
traumverloren / rpi_shutdown.md
Last active February 18, 2024 23:24
Raspberry Pi GPIO Shutdown button

Create a safe way to shutdown a headless raspberry pi with a tiny button.

1. Make the button:

  • Cut a female-female jumper cable in half.
  • Strip the ends and solder each to one pin on one side of the button.
  • Clip off the pins on the other side of the button.
  • Plug ends into 1 ground and 1 GPIO pin on your pi. I used GPIO #12 & the ground next to it.
@traumverloren
traumverloren / prevent-npm-install-from-bogging-down-mac.md
Last active April 5, 2019 08:40
Prevent npm install from bogging down mac with this one weird trick!

Does your Mac becomes slow/unresponsive (fans kicking in etc.) when you npm install a huge project with a million tiny dependencies?

Solution:

Add an empty .metadata_never_index in /node_modules beforehand & it will prevent Spotlight from indexing all that crap.

ref: https://twitter.com/roelvangils/status/1113074439976075264

@traumverloren
traumverloren / emulator-setup-for-dev-domains.md
Last active March 29, 2019 08:18
Install Android Studio Emulator for use with aliased domain

How to change a hosts-file on Android Studio emulated phone

Pre-steps:

  1. Install Android Studio
  2. Add android to PATH in your .bash_profile or .zshrc file:
  • export ANDROID_SDK=$HOME/Library/Android/sdk
  • export PATH=$ANDROID_SDK/emulator:$ANDROID_SDK/tools:$PATH
  • export PATH=${PATH}:$ANDROID_SDK/tools:$ANDROID_SDK/platform-tools
@traumverloren
traumverloren / rpi3-hints.md
Last active October 26, 2021 14:12
get serial ports on rpi3 working

Get file off RPI:

scp pi@rpi3.local:~/tfjs-yolo-tiny/demo/test.jpg ~stephanie/Desktop

Serial Ports

Disable console on serial ports:

  1. sudo raspi-config
  2. Select option 5, Interfacing options, then option P6, Serial, and select No. Exit raspi-config.
@traumverloren
traumverloren / pok3r-hints.md
Last active February 19, 2018 09:41
Pok3r stuff

(pok3r manual)[www.vortexgear.tw/db/upload/webdata4/6vortex_2017111621402892449.pdf]

To change to default program: FN + M

Fn + <, >, ? cycles between layers 2, 3, and 4. Fn + m should get you back to the default layer. Layers 2, 3, and 4 have red, green, and blue spacebar lights that I don't think you can turn off.

Layer 3 (Green spacebar) has the left option (windows) and left command (alt) mapped to match OSX keyboard.

To change single key LED program: PN + 4

@traumverloren
traumverloren / custom-terminal-greetings.md
Last active March 16, 2018 18:38
custom-terminal-greetings

Something cheery and motivating for your terminal ʕᵔᴥᵔʔ

Add this to your .zshrc or .bash_profile:

# Nice Greetings
niceThings=('you look lovely today' 'you are so smart' 'I think you are fantastic' 'You are super creative' 'You can do anything' 'You write KICKASS code' 'Your hair looks amazing today' 'You inspire soooo many people' 'You are a strong powerful woman');

emojis=('ʕᵔᴥᵔʔ' '(。◕‿◕。)' '( ˘ ³˘)♥' 'ฅ^•ﻌ•^ฅ' '(づ ̄ ³ ̄)づ' '┌(ㆆ㉨ㆆ)ʃ' '“ヽ(´▽`)ノ”' '♥‿♥' 'ᕕ( ᐛ )ᕗ' '(ᵔᴥᵔ)')