save_and_open_page
have_button(locator)
urlencode() { | |
# urlencode <string> | |
old_lc_collate=$LC_COLLATE | |
LC_COLLATE=C | |
local length="${#1}" | |
for (( i = 0; i < length; i++ )); do | |
local c="${1:$i:1}" | |
case $c in |
#!/usr/bin/env ruby | |
# /usr/local/bin/open_subl | |
require 'cgi' | |
require 'uri' | |
begin | |
query = CGI.parse(URI.parse(ARGV.first).query) | |
url = query['url'].first | |
file = URI.parse(url).path | |
line = query['line'].first | |
column = query['column'].first |
#!/bin/sh | |
# Sending emails using Gmail and msmtp | |
# Author: [Josef Jezek](http://about.me/josefjezek) | |
# Donate: [Gittip](https://www.gittip.com/josefjezek) | |
# Link: [Gist](https://gist.github.com/6194563) | |
# Usage: setup-msmtp-for-gmail.sh | |
sudo apt-get update -q | |
sudo apt-get install msmtp-mta ca-certificates heirloom-mailx -yq |
copy('emblem.emblem.load('+JSON.stringify(emblem.emblem.data,null,2)+');');
AllCops: | |
RunRailsCops: true | |
# Commonly used screens these days easily fit more than 80 characters. | |
Metrics/LineLength: | |
Max: 120 | |
# Too short methods lead to extraction of single-use methods, which can make | |
# the code easier to read (by naming things), but can also clutter the class | |
Metrics/MethodLength: |
docker-machine create --driver virtualbox dev
docker-machine env dev
(add values to ~/.zshrc
)
echo eval "$(docker-machine env dev)" >> ~/.zshrc
docker-machine ls
docker ps
(might need to re-source .zshrc
file; e.g. . ~/.zshrc
)docker run hello-world
docker-machine ip dev
This document details how I setup LE on my server. Firstly, install the client as described on http://letsencrypt.readthedocs.org/en/latest/using.html and make sure you can execute it. I put it in /root/letsencrypt
.
As it is not possible to change the ports used for the standalone
authenticator and I already have a nginx running on port 80/443, I opted to use the webroot
method for each of my domains (note that LE does not issue wildcard certificates by design, so you probably want to get a cert for www.example.com
and example.com
).
For this, I placed config files into etc/letsencrypt/configs
, named after <domain>.conf
. The files are simple:
#MAC https://bjango.com/mac/istatmenus/
#Windows http://superbarmonitor.de/ http://www.baixaki.com.br/download/netspeedmonitor.htm
#Linux http://www.thegeekstuff.com/2009/11/ubuntu-tips-graphical-monitoring-for-processes-memory-load-average-and-disk-usage/ http://www.addictivetips.com/ubuntu-linux-tips/monitor-cpu-ram-network-disk-usage-in-ubuntu-with-syspeek/