Skip to content

Instantly share code, notes, and snippets.

View Phanithism's full-sized avatar

Panh Phanith Phanithism

View GitHub Profile
@Phanithism
Phanithism / rails http status codes
Created May 12, 2016 07:12 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing
@Phanithism
Phanithism / sidekiq
Created April 6, 2016 04:48 — forked from dyerc/sidekiq
Sidekiq init script
#!/bin/bash
# sidekiq Init script for Sidekiq
# chkconfig: 345 100 75
#
# Description: Starts and Stops Sidekiq message processor for Stratus application.
#
# User-specified exit parameters used in this script:
#
# Exit Code 5 - Incorrect User ID
# Exit Code 6 - Directory not found