SSH into Root
$ ssh root@123.123.123.123
Change Root Password
| ======= Prolbem ================================================================================================================= | |
| I have installed : ruby-2.0.0,postgres-9.2 , now in rails app when I execute: | |
| rake db:create , command I get: | |
| PG::InvalidParameterValue: ERROR: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII) | |
| HINT: Use the same encoding as in the template database, or use template0 as template. | |
| : CREATE DATABASE "my_db_name" ENCODING = 'unicode'....... | |
| bin/rake:16:in `load' |
| <?php | |
| class ResumeDownload { | |
| private $file; | |
| private $name; | |
| private $boundary; | |
| private $delay = 0; | |
| private $size = 0; | |
| function __construct($file, $delay = 0) { | |
| if (! is_file($file)) { |
| server { | |
| listen 80 default_server; | |
| listen [::]:80 default_server ipv6only=on; | |
| root <Path to project folder>/public; | |
| index index.php index.html index.htm; | |
| server_name <Server name or IP address>; | |
| location / { |
| #!/usr/bin/env bash | |
| redColor="\033[0;31m" | |
| noColor="\033[0m" | |
| function exitCodeToText() { | |
| text="${redColor}NG${noColor}" | |
| if [[ "$1" == "0" ]]; then | |
| text="OK" | |
| fi |
| -- Error Message: Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline. | |
| -- | |
| -- our table name that has this issue is XYZ | |
| -- | |
| SET GLOBAL innodb_file_format=Barracuda; | |
| SET GLOBAL innodb_file_per_table=ON; | |
| ALTER TABLE XYZ ROW_FORMAT=COMPRESSED; |
| <ul> | |
| <li> | |
| one</li><li> | |
| two</li><li> | |
| three</li> | |
| </ul> | |
| <!-- or --> | |
| <ul> | |
| <li>one</li | |
| ><li>two</li |
SSH into Root
$ ssh root@123.123.123.123
Change Root Password
| { | |
| "content_scripts": [ | |
| { | |
| "matches": ["http://*/*", "https://*/*"], | |
| "js": ["inject.js"], | |
| "all_frames": true | |
| } | |
| ], | |
| "web_accessible_resources": [ | |
| "content.js" |
sudo yum install wget git vimsudo yum install gcc g++ make automake autoconf curl-devel openssl-devel zlib-devel httpd-devel apr-devel apr-util-devel sqlite-devel readline-develwget https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.3.tar.gztar -zxvf ruby-2.3.3.tar.gzcd ruby-2.3.3./configure| sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
| sudo apt-get update | |
| sudo apt-get install gcc-5 g++-5 | |
| sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5 |