Skip to content

Instantly share code, notes, and snippets.

View bobmacneal's full-sized avatar

Bob MacNeal bobmacneal

View GitHub Profile
@bradtraversy
bradtraversy / node_nginx_ssl.md
Last active April 23, 2024 19:23
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@mariozig
mariozig / migrate_repo.sh
Last active December 22, 2022 08:32
Migrate repo from GitLab to GitHub Full blog post @ http://ruby.zigzo.com/2015/03/23/moving-from-gitlab-to-github/
# Assume we are in your home directory
cd ~/
# Clone the repo from GitLab using the `--mirror` option
$ git clone --mirror git@your-gitlab-site.com:mario/my-repo.git
# Change into newly created repo directory
$ cd ~/my-repo.git
# Push to GitHub using the `--mirror` option. The `--no-verify` option skips any hooks.
@dominicsayers
dominicsayers / rails-4.2-upgrade.md
Created March 12, 2015 13:07
Upgrading from Rails 3.2 to Rails 4.2

I Googled an upgrade guide and read two or three before starting. Useful information.

This page just lists the things I didn't find in the upgrade guides.

Asset pipeline

  • Static files Rails 4.2 doesn't serve static files by default, and config.serve_static_assets is deprecated. Instead you need to set the environment variable RAILS_SERVE_STATIC_FILES to true in the production environment.

Rspec

I upgraded to Rspec 3.2. Things to note:

@nickbauman
nickbauman / ios_imperatives_for_approval.md
Last active November 1, 2019 12:10
Condensed iOS Human Interface Guidelines, formulated as imperatives.

Condensed iOS Human Interface Guidelines

Imperatives for AppStore approval

For iPhone app developers. Emphasis on getting the fastest app store approval. Everything stated as suggestion made into an imperative. When "violating" these imperatives, you can check for yourself what the caveats are. Generally speaking, deviating will more likely cause your app to be hung up in approval.

You can read this entire document in about 20 minutes. This is faster than reading and understanding the entire Human Interface Guidelines.

Overview