Develop Erlang/OTP inside the official erlang/ubuntu-build
Docker image.
It comes with all the correct versions of dependencies pre-installed.
Place the develop
script in the scripts
directory of your local erlang/otp checkout.
require 'capistrano/setup' | |
require 'capistrano/deploy' | |
require 'capistrano/scm/git' | |
install_plugin Capistrano::SCM::Git | |
require 'capistrano/bundler' | |
require 'capistrano/yarn' | |
require 'capistrano/rails/assets' | |
require 'capistrano/rails/migrations' | |
require 'capistrano/passenger' |
# features/support/capybara.rb | |
# Configure Capybara for use with cucumber. | |
Capybara.configure do |config| | |
# Use iPhone as the default browser. | |
# config.default_driver = :iphone | |
end |
namespace :cachetool do | |
CACHETOOL = 'cachetool.phar'.freeze | |
desc <<~DESC | |
Installs #{CACHETOOL} to the shared directory. | |
This is best used after deploy:starting: | |
namespace :deploy do | |
after :starting, 'cachetool:install_executable' |
Develop Erlang/OTP inside the official erlang/ubuntu-build
Docker image.
It comes with all the correct versions of dependencies pre-installed.
Place the develop
script in the scripts
directory of your local erlang/otp checkout.
#!/usr/bin/env escript | |
receive_data() -> | |
receive | |
{ssh_cm, _, {closed, __}} -> | |
io:fwrite("Channel closed~n", []); | |
{ssh_cm, _, Msg} -> | |
io:fwrite("SSH message: ~p~n", [Msg]), | |
receive_data() | |
after 1000 -> |
--- | |
- hosts: esxi | |
connection: local | |
remote_user: root | |
become: no | |
vars_prompt: | |
- name: hostname | |
prompt: "Enter the VMware ESXi hostname" | |
default: "esxi.fritz.box" | |
private: no |
#!/usr/bin/env bash | |
# | |
# Find out what you did today | |
# | |
# Lists all your commits from repos found in the given paths. | |
# Use it to prepare your daily stand-up or to write job logs. | |
# | |
# Uses `git`, depends on `fd` - install via `brew install fd`. | |
# | |
# Usage: |
brew search --cask /font-.+/ | xargs brew info | grep -E ^https\: | sed -E 's/#[^#]+$//' | sort --unique |
If you ever need to download an entire website, perhaps for off-line viewing, wget can do the job — for example:
$ wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains website.org --no-parent www.website.org/tutorials/html/
This command downloads the website www.website.org/tutorials/html/.
The options are:
--recursive
: download the entire website--domains website.org
: don't follow links outside website.org