Skip to content

Instantly share code, notes, and snippets.

@jhsu802701
jhsu802701 / consolidate-commits.txt
Last active February 9, 2023 05:11
How to consolidate Git commits
https://www.internalpointers.com/post/squash-commits-into-one-git
git rebase --interactive [commit-hash]
Where [commit-hash] is the hash of the commit just before the first one you want to rewrite from.
OR
git rebase --interactive master

Cheat Sheet for Kdenlive

Installing in VirtualBox

  • OS: MX Linux
  • Allocate half of the host system memory to the guest system
  • System/Processor: enable multiple cores (if possible) and PAE/NX
  • User Interface: enable "show at top of screen"
  • Commands to run in guest OS:
sudo apt-get update; sudo apt-get install -y kdenlive
@jhsu802701
jhsu802701 / README.md
Last active May 24, 2021 21:06
Scripts to add to Rails Tutorial Sample app

Add credentials.sh and heroku.sh to Rails Tutorial Sample App

Cheat Sheet for Adding Google Authentication to A Ruby on Rails App

Prerequisites

A Ruby on Rails app with authentication provided through the devise gem

Elements

Google API setup

  • Go to https://console.developers.google.com and create your project.
  • In your new project, enable the Google+ API and Contacts API.
  • Go to Credentials, then select the "OAuth consent screen" tab on top, and provide your email address and product name.
@jhsu802701
jhsu802701 / get_started.md
Last active December 2, 2019 00:44
Creating myapp (from the book _Docker For Rails Developers_)
  1. Start the Docker container by entering this command:
docker run -i -t --rm -v ${PWD}:/usr/src/app/ ruby:2.6 bash
  1. Enter these commands in the Docker container:
cd /usr/src/app # Enter the shared directory
gem install rails -v 5.2.4 # Install Rails
rails _5.2.4_ new myapp --skip-test --skip-bundle # Create the new Rails app
## Prerequisites
* Vagrant
* Packer
* Packer's builder plugin: Just type "vagrant plugin install builder" to install.
## Update Builder
* vagrant plugin update builder
@jhsu802701
jhsu802701 / install.txt
Created March 24, 2019 17:00
exercism/website project
Installing MySQL from apt-get in Debian not working
Try https://blog.programster.org/debian-9-install-mysql-server
@jhsu802701
jhsu802701 / all.sh
Last active September 26, 2018 22:34
Ruby on Racetracks for rubygems/rubygems.org
#!/bin/bash
sh test_app.sh