A Pen by Rohit Begani on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |