Skip to content

Instantly share code, notes, and snippets.

View gavinlaking's full-sized avatar
🤠

Gavin Laking gavinlaking

🤠
View GitHub Profile
@r00takaspin
r00takaspin / puma.service
Created May 11, 2018 15:29
Run puma web server with RVM from systemd
[Unit]
Description=Puma HTTP Server
After=network.target
# Uncomment for socket activation (see below)
# Requires=puma.socket
[Service]
# Foreground process (do not use --daemon in ExecStart or config.rb)
Type=simple
@brobertsaz
brobertsaz / serversetup.md
Last active July 6, 2020 08:56
Ubuntu 12.04 Ruby, Rails, Nginx, Unicorn

Ubuntu 12.04, Ruby, Rails, Nginx, Unicorn and git-deploy

In the seemlingly endless search for the actual correct and easy way to deploy a Rails app, we have tried several ways. We tried out using Apache2 and running a cluster of Thin servers. With the built in threading of Puma we decided to use it with Nginx.

Server Setup

  • Create new server
  • Login to new server
    • ssh root@IPaddress (you can also use the domain name if you have the DNS setup already)
    • accept the RSA key
@ku1ik
ku1ik / gist:1694742
Created January 28, 2012 15:44
Install Cyanogenmod7 on HTC Desire S with hboot 2.00.0002

There's no need to make the phone S-OFF (like some people say).

  • Disable fast/quick reboot (Settings » Power » Fastboot)

  • Download fastboot binary

  • Unlock bootloader: http://htcdev.com/bootloader/

    Put the phone in Fastboot USB mode (Turn off, hold Volume Down + Power)