Skip to content

Instantly share code, notes, and snippets.

Set Up MN Pay

  • System
sudo apt-get update
sudo apt-get install -y python-pip python-dev
sudo apt-get install -y subversion gfortran
npm install -g webpack
  • Build
LOGO: https://upload.wikimedia.org/wikipedia/commons/thumb/0/03/Zeichen_282.svg/220px-Zeichen_282.svg.png
Wallpaper: https://www.flickr.com/photos/hausfrau/2274821477/

User Gravatars

This document explains how to display the user's gravatar on his/her profile page.

Prerequisite

In the procedure described here, it is assumed that you used the GenericApp gem.

User Profile Page

In the app/views/users/show.html.erb file, enter the following code at the location at which you wish to display the user gravatar:

<%= gravatar_for @user %>

Computer Setup

ThunderBird

Message filter location: /home/(username)/.thunderbird/(8 random characters).default/ImapMail/(account name)/msgFilterRules.dat

@jhsu802701
jhsu802701 / virtualbox_cheatsheet.md
Last active March 14, 2017 04:45
Optimizing virtual machine settings and setting up a shared folder

VirtualBox Cheat Sheet

Hardware BIOS Settings

  • Make sure that virtualization technology is enabled.

VirtualBox Settings

  • Use a FIXED disk size instead of a dynamic disk.
  • Allocate half of the host system memory to the guest system. (Use more if you can stay in the green zone.)
  • System/Processor: Enable multiple cores (if possible), set the execution cap to 100%, and enable PAE/NX.
  • System/Acceleration: Enable VT-x/AMD-v and Nested Paging.

Optimizing Virtual Windows

WARNING

Disabling updates and security features is a security risk. Do NOT log in to anything or enter your password. If you need to record video, do it from your host system.

Where to get Virtual Windows (FREE)

Microsoft Edge Virtual Machines

Speeding Up Windows

  • Disable the antivirus software

Screencast Cheat Sheet

Free Recording Software

  • Linux: SimpleScreenRecorder
  • Mac: ActivePresenter
  • Windows: Use Windows in a virtual machine with a Linux or Mac host, and record from the host machine.

Preparing the Demo Setup

  • Add lxterminal as a replacement for xfce4-terminal (MX Linux):

Rails.MN Tutorial

Welcome to the Rails.MN Tutorial of Ruby on Racetracks! Although the Rails.MN group is dedicated to Ruby on Rails, the web site is static and uses Ruby's Jekyll tool instead of Rails.

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 Jekyll. This is covered in the Docker tutorial.
  • You should have an account on GitHub.
@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