SSH into Root
$ ssh root@123.123.123.123
Change Root Password
| Using gem aws-sdk for a ror application for uploading images to s3 | |
| Uploading images to a fixed bucket with different folders for each object or application. | |
| The s3 keeps a limitation on the number of buckets creattion whereas there is no | |
| limitation for content inside a bucket. | |
| This code will upload image for a user to s3 using aws-sdk gem. The bucket and the image uploaded are made public | |
| so that the images uploaded are directly accessible. The input it takes is the image complete path | |
| where it is present, folder in which it should be uploaded and user_id for whom it should | |
| be uploaded. |
| require "uri" | |
| require "net/http" | |
| require "nokogiri" | |
| require "logger" | |
| name_final = Array.new | |
| uri = URI.parse("http://resultsarchives.nic.in/cbseresults/cbseresults2004/class12/cbse12.asp") | |
| req = Net::HTTP::Post.new(uri.path, { | |
| 'Referer' => "http://resultsarchives.nic.in/cbseresults/cbseresults2004/class12/cbse12.htm", |
SSH into Root
$ ssh root@123.123.123.123
Change Root Password
| var React = require('react'); | |
| var cx = require('classnames'); | |
| var vjs = require('video.js'); | |
| var _forEach = require('lodash/collection/forEach'); | |
| var _debounce = require('lodash/function/debounce'); | |
| var _defaults = require('lodash/object/defaults'); | |
| var DEFAULT_HEIGHT = 800; | |
| var DEFAULT_WIDTH = 600; | |
| var DEFAULT_ASPECT_RATIO = (9 / 16); |