Basic setup

Root login

Change your password

Create new user

Root privileges

Configure SSH

Reload and done

View output.txt
Warning: Setting DYLD_* vars can break dynamic linking.
Set variables:
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
View staging.rb
set :stage, :staging
server "", roles: [:app, :web, :db]
set :ssh_options, {
user: "william",
forward_agent: true
set :deploy_to, "/home/william/htdocs/#{fetch(:application)}"
set :deploy_via, :remote_cache
View router.php
// The Slim Framework helps you map resource URIs to callback functions
// for specific HTTP request methods (e.g. GET, POST, PUT, DELETE, OPTIONS or HEAD).
// A Slim application will invoke the first route that matches
// the current HTTP request’s URI and method.
// If the Slim application does not find routes with URIs that match
// the HTTP request URI and method, it will automatically
// return a 404 Not Found response.
from itertools import combinations
teams = ["Packers", "49ers", "Ravens", "Patriots"]
for game in combinations(teams, 2):
print game
# => ('Packers', '49ers')
# => ('Packers', 'Ravens')
# => ('Packers', 'Patriots')
# => ('49ers', 'Ravens')
View MyCustomHelper.php
class MyCustomHelper extends AppHelper {
public function sayMessage($name) {
$view = new View;
return $view->element('path/to/element', array('name' => $name));
View .bash_profile
if [ -f `brew --prefix`/etc/bash_completion.d/ ]; then source `brew --prefix`/etc/bash_completion.d/; fi # for Git completion
export PS1="\[\033[01;34m\]\$(rbenv version-name) \[\033[01;32m\]\w\[\033[01;35m\]\$(__git_ps1 \" (%s)\") \[\033[01;36m\]\$\[\033[00m\] "
#!/usr/bin/env perl
# Finds duplicate adjacent words.
use strict ;
my $DupCount = 0 ;
if (!@ARGV) {
print "usage: $0 <file> ...\n" ;
View gist:2894205
# go to your repository
cd my_project
# check your existing remote
git remote -v
# origin git@mydomain.tld:my_project.git (fetch)
# origin git@mydomain.tld:my_project.git (push)
# Add a new remote, a private repository for example
# the --mirror flag is what's different from a simple new remote
not_found: "tidak ditemukan"
already_confirmed: "sudah di konfirmasi"
not_locked: "tidak dikunci"
unauthenticated: 'Anda harus mendaftar atau sign in sebelum melanjutkan .'