SSH into Root
$ ssh root@123.123.123.123
Change Root Password
// This works on Rhino. | |
var counter = (function () { | |
var i = 1; | |
return function () { | |
return i++; | |
}; | |
})(); | |
print(counter()); // 1 |
require 'mina/bundler' | |
require 'mina/rails' | |
require 'mina/git' | |
require 'mina/rvm' # for rvm support. (http://rvm.io) | |
set :domain, 'esdb.cn' | |
set :identity_file, '/User/somebody/.ssh/somebody.pem' | |
set :deploy_to, '/home/ubuntu/apps/xxx.com' | |
set :repository, 'ssh://git@bitbucket.org/somebody/xxx.com.git' | |
set :branch, 'master' |
SSH into Root
$ ssh root@123.123.123.123
Change Root Password
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
class RewriteLinks | |
{ | |
/** | |
* Handle an incoming request. |
mysql, rmagic, curl, git, vim, sqlite, nodejs nokogiri...
sudo apt-get install libxslt1-dev libxml2-dev libmagickwand-dev imagemagick libsqlite3-dev libcurl4-openssl-dev curl git git-gui vim-gtk exuberant-ctags nodejs nodejs-legacy rar libgmp-dev
sudo apt-add-repository ppa:brightbox/ruby-ng
sudo apt-get update
Also, since nvm uses the name "node" instead of "nodejs", make sure that the unrelated program also named "node" -- the Amateur Packet Radio -- does not already exist on your system.
sudo apt-get install git build-essential libssl-dev curl git-core
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.23.3/install.sh | bash
(I determined the latest nvm version available -- and a lot of other, really helpful information -- at: https://github.com/creationix/nvm)
# This is a skeleton for testing models including examples of validations, callbacks, | |
# scopes, instance & class methods, associations, and more. | |
# Pick and choose what you want, as all models don't NEED to be tested at this depth. | |
# | |
# I'm always eager to hear new tips & suggestions as I'm still new to testing, | |
# so if you have any, please share! | |
# | |
# @kyletcarlson | |
# | |
# This skeleton also assumes you're using the following gems: |
Have a writable folder public/blog_images in you app.
###routes.php
// Redactor Blog Upload
Route::post('redactorUpload', function()
{
$file = Input::file('file');
$fileName = $file->getClientOriginalName();
upstream myapp_puma { | |
server unix:/tmp/myapp_puma.sock fail_timeout=0; | |
} | |
# for redirecting to https version of the site | |
server { | |
listen 80; | |
rewrite ^(.*) https://$host$1 permanent; | |
} | |
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<email> | |
<to>Nico</to> | |
<from>Nigga</from> | |
<subject>Reminder</subject> | |
<body>Nigga try express yourself better, kisungu ngumu</body> | |
</email> | |
<!-- this is simple formatting of the xml syntax --> | |
<root> |