SSH into Root
$ ssh [email protected]
Change Root Password
SSH into Root
$ ssh [email protected]
Change Root Password
| #!/usr/bin/env bash | |
| # | |
| # Originally from https://gist.github.com/IanVaughan/2902499 | |
| # | |
| # authors: Ian Vaughan | |
| # Jacob Zimmerman | |
| # | |
| # usage: uninstall_gems [<version> ...] | |
| # | |
| # examples: |
require 'mina/bundler'| # activerecord-3.0.0/lib/active_record/connection_adapters/mysql_adapter.rb | |
| # Maps logical Rails types to MySQL-specific data types. | |
| def type_to_sql(type, limit = nil, precision = nil, scale = nil) | |
| return super unless type.to_s == 'integer' | |
| case limit | |
| when 1; 'tinyint' | |
| when 2; 'smallint' | |
| when 3; 'mediumint' | |
| when nil, 4, 11; 'int(11)' # compatibility with MySQL default |
| class SetupHstore < ActiveRecord::Migration | |
| def self.up | |
| enable_extension "hstore" | |
| end | |
| def self.down | |
| disable_extension "hstore" | |
| end | |
| end |
| <?php | |
| /** | |
| * Replace the default "_" (underscore) with "-" (hyphen) in protected custom fields for debugging purposes | |
| * | |
| * @param bool $protected The default value | |
| * @param string $meta_key The meta key | |
| * @return bool True for meta keys starting with "-" (hyphen), false otherwise | |
| */ | |
| function unprotected_meta( $protected, $meta_key ) { |
| #!/usr/bin/env bash | |
| uninstall() { | |
| list=`gem list --no-versions` | |
| for gem in $list; do | |
| gem uninstall $gem -aIx | |
| done | |
| gem list | |
| gem install bundler | |
| } |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>App Redirection</title> | |
| </head> | |
| <body> | |
| <!-- | |
| NOTE: This was a great hack in days gone by, but now both Apple and Google have improved their support for custom | |
| protocol handlers. |