Skip to content

Instantly share code, notes, and snippets.

View traumverloren's full-sized avatar
🐢

Stephanie traumverloren

🐢
View GitHub Profile
@traumverloren
traumverloren / switch-to-rbenv.md
Last active March 29, 2024 00:54
Switch from RVM to rbenv

Switch from RVM to rbenv:

Get Rid of RVM if it's installed:

rvm implode

Cleanup your .bash_profile/.bashrc/.zshrc file to remove RVM from the path:

You should have something like this left from RVM. Delete it from the file. ``[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"```

@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 / style.css
Last active January 7, 2024 14:05
VSCode Customizations for Operator Mono, Fira Code, and Dark Candy Theme
/*
Instructions for MacOS:
- Install the fonts 'Operator Mono' & 'Fira Code'
- Install theme 'Dark Candy'
- Add the following config to the VS Code settings.json:
{
"editor.renderWhitespace": "all",
"editor.fontSize": 14,
@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.

# 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 / doorkeeper.rb
Last active March 10, 2022 10:27
doorkeeper config for redirect back to client app after login with oauth2 provider
#########################
# config/initializers/doorkeeper.rb
#########################
Doorkeeper.configure do
# Change the ORM that doorkeeper will use.
# Currently supported options are :active_record, :mongoid2, :mongoid3, :mongo_mapper
orm :active_record
# This block will be called to check whether the resource owner is authenticated or not.
@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 / curl-calls.md
Last active September 10, 2020 16:31
How to curl in a Rails API

How to Use cURL to Test Rails controller actions:

-X [action]:
  • Allows you to specify an HTTP action such as GET, POST, PUT or DELETE.

  • Example:
    curl -X DELETE 'http://accounting.dev/v1/refunds/1'

-d [parameter]:
@traumverloren
traumverloren / rails-notes.md
Last active April 29, 2020 12:13
Rails notes

Setup ruby on rails:

https://gorails.com/setup/osx/10.15-catalina

Running Postgresql

To migrate existing data from a previous major version of PostgreSQL run: brew postgresql-upgrade-database

To have launchd start postgresql now and restart at login: brew services start postgresql