Prereq:
If you want to change the hostname, follow this guide.
sudo apt update -y && sudo apt install -y zsh git-core
Getting zsh to work in ubuntu is weird, since sh
does not understand the source
command. So, you do this to install zsh
var page = require('webpage').create(), | |
url = 'http://example.com/'; | |
// Put the event handlers somewhere in the code before the action of | |
// interest (opening the page in question or clicking something) | |
// http://phantomjs.org/api/webpage/handler/on-console-message.html | |
page.onConsoleMessage = function(msg, lineNum, sourceId) { | |
console.log('CONSOLE: ' + msg + ' (from line #' + lineNum + ' in "' + sourceId + '")'); | |
}; |
cd ~ | |
git clone [email protected]:golang/go.git gotip | |
cd gotip/src | |
export GOROOT_BOOTSTRAP=/usr/local/go | |
env GOOS=linux GOARCH=arm GOARM=7 ./make.bash |
Prereq:
If you want to change the hostname, follow this guide.
sudo apt update -y && sudo apt install -y zsh git-core
Getting zsh to work in ubuntu is weird, since sh
does not understand the source
command. So, you do this to install zsh
#!/usr/bin/env python | |
""" | |
Set terminal tab / decoration color by the server name. | |
Get a random colour which matches the server name and use it for the tab colour: | |
the benefit is that each server gets a distinct color which you do not need | |
to configure beforehand. | |
""" |
require "net/https" | |
class PushMore | |
WEBHOOK_URL = "https://pushmore.io/webhook/REPLACE_WITH_YOUR_TOKEN" | |
def initialize(body) | |
@body = body | |
end | |
def deliver |
This guide assumes you have the emmet
and language-babel
packages already installed in Atom
keymap.cson
file by clicking on Atom -> Keymap…
in the menu bar'atom-text-editor[data-grammar~="jsx"]:not([mini])':
pragma solidity ^0.4.18; | |
// import './SomeContract.sol'; | |
contract HelloYou { | |
event Hello(address you); | |
function sayHello() public { | |
address _person = msg.sender; | |
This is a collection of the most common commands I run while administering Postgres databases. The variables shown between the open and closed tags, "<" and ">", should be replaced with a name you choose. Postgres has multiple shortcut functions, starting with a forward slash, "". Any SQL command that is not a shortcut, must end with a semicolon, ";". You can use the keyboard UP and DOWN keys to scroll the history of previous commands you've run.
http://www.postgresql.org/download/linux/ubuntu/ https://help.ubuntu.com/community/PostgreSQL
sudo apt-get update; \ | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common -y; \ | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -; \ | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ |