SSH into Root
$ ssh root@123.123.123.123
Change Root Password
| require 'Twitter' #gem install twitter | |
| while true | |
| begin | |
| # Create a read write application from : | |
| # https://apps.twitter.com | |
| # authenticate it for your account | |
| # fill in the following | |
| config = { | |
| consumer_key: '', | |
| consumer_secret: '', |
| directory = ARGV.shift || Dir.pwd | |
| $dont_get_into = ['.','..'] | |
| $allowed = { | |
| 'Ruby' => '.rb', | |
| 'Ruby HTML Templates' => '.html.erb', | |
| 'YAML' => '.yml', | |
| 'RDoc' => '.rdoc', | |
| 'HTML' => '.html', | |
| 'Javascript' => '.js', | |
| 'CSS' => '.css', |
| require 'sinatra' # gem install sinatra --no-rdoc --no-ri | |
| set :port, 3000 | |
| set :environment, :production | |
| html = <<-EOT | |
| <html><head><style> | |
| #text{width:100%; font-size: 15px; padding: 5px; display: block;} | |
| </style></head><body> | |
| <input id="text" placeholder="Write then press Enter."/> | |
| <div id="chat"></div> |
| context "HAPPY PATHS" do | |
| #... | |
| scenario "create a parking lot and check hints count" do | |
| @tenant.default_location.parking_lots.first.destroy | |
| click_link "Create Parking Lot" | |
| fill_in "Name", with: "Parking Lot 4" | |
| select "Corporate", from: "Workgroup" | |
| click_button "Submit" | |
| success_messages ["Parking Lot successfully created."] | |
| has_no_error_message |
| class Road < Object | |
| attr_accessor :low_bound, | |
| :high_bound, | |
| :transport_count, | |
| :road_id, | |
| :counter | |
| end | |
| file = File.open('F:/input.txt', 'r') |
| appTrainers.factory('ModelPhone', ['$http', function ($http) { | |
| function ModelPhone(modelData) { | |
| if (modelData) { | |
| this.setData(modelData); | |
| } | |
| } | |
| ModelPhone.prototype = { | |
| ID_PHONE: '', | |
| FID_CONTACT: '', |
SSH into Root
$ ssh root@123.123.123.123
Change Root Password
There are two modes when you don't want Certbot to edit your configuration:
Webroot is better because it doesn't need to replace Nginx (to bind to port 80) to renew certificates.
In the following, we're setting up mydomain.com to be served from /var/www/mydomain, and challenges will be served from /var/www/letsencrypt.
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |