Skip to content

Instantly share code, notes, and snippets.

View rohitbegani's full-sized avatar
🏠
Working from home

Rohit Begani rohitbegani

🏠
Working from home
View GitHub Profile
@rohitbegani
rohitbegani / gist:47f697abd05714faed1e33c28c0a9d3f
Created August 20, 2018 18:43
Manage Time as SuperUser on AWS
# To move to the [Amazon Time Sync Service](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/set-time.html)
* Remove current NTP as described on the link above
* If `/etc/chrony.conf` is a read only file and you are unable to edit it
then it means that the current user doesn't have `root permissions`. To set it:
* `SSH` into your EB instance:
* Assume root permissions by:
* `sudo su`
@rohitbegani
rohitbegani / rails http status codes
Created June 6, 2018 16:17 — 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
require 'IO/console'
$hash_table = []
class NODE
attr_accessor(:key, :val, :next, :prev, :pos)
def initialize(key, val, next_node, prev_node, pos)
@key = key
@val = val
@next = next_node