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
@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

@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

Things to do

  • Customize _config.yml
@jhsu802701
jhsu802701 / rubymn2-setup.md
Last active March 6, 2018 06:43
Getting started with the new Ruby.MN site

New Ruby.MN Tutorial

Welcome to the new Ruby.MN Tutorial of Ruby on Racetracks! Please note that this tutorial sets up the existing Ruby.MN project. The tutorial that walks you through the process of replicating the new Ruby.MN app is at https://github.com/jhsu802701/tutorial-rails-rubymn2.

Prerequisites

  • You should have version 4 of SparkyLinux installed as your host OS or virtual OS. You may also use any other Linux distro based on Debian Stretch. If you are using a Mac or Windows, you can use a VirtualBox virtual machine with SparkyLinux on it. For more details, go through the VirtualBox Tutorial.
  • You should have Docker installed in your SparkyLinux desktop Linux setup. This is covered in chapter 1 of the Docker tutorial.
  • You should be familiar with the Docker way of developing in Ruby on Rai