First of all, install OpenCV v2:
$ brew install opencv@2
Then, set build configuration for build (changing OpenCVversion number for the current one):
$ bundle config build.ruby-opencv --with-opencv-lib=/usr/local/Cellar/opencv@2/2.4.13.6_2/lib \
| brew tap homebrew/cask-fonts | |
| brew install --cask font-cascadia-code | |
| brew install --cask font-cascadia-code-pl | |
| brew install --cask font-cascadia-mono | |
| brew install --cask font-cascadia-mono-pl |
| var MoonInfo = function(day, month, year) { | |
| var n0 = parseInt( "0" ); | |
| var f0 = parseFloat( "0.0" ); | |
| var AG = f0; // Moon's age | |
| var DI = f0; // Moon's distance in earth radii | |
| var LA = f0; // Moon's ecliptic latitude | |
| var LO = f0; // Moon's ecliptic longitude | |
| var Phase = " "; | |
| var Zodiac = " "; |
First of all, install OpenCV v2:
$ brew install opencv@2
Then, set build configuration for build (changing OpenCVversion number for the current one):
$ bundle config build.ruby-opencv --with-opencv-lib=/usr/local/Cellar/opencv@2/2.4.13.6_2/lib \
I hereby claim:
To claim this, I am signing this object:
We create an entry on dnsmasq.d directory (used to solve domains):
$ sudo mkdir /etc/NetworkManager/dnsmasq.d
$ echo 'address=/dev/127.0.0.1' | sudo tee /etc/NetworkManager/dnsmasq.d/dev-tld
And we restart NetworkManager service (you will losse internet connection for a bit):
$ sudo service network-manager restart
First of all, we are going to store all the data in a Docker shared volume, called openvpn_data.
To initialise the OpenVPN configuration and CA:
$ docker run -v openvpn_data:/etc/openvpn --rm evolvedm/openvpn-rpi ovpn_genconfig -u udp://your-vpn.address.com
$ docker run -v openvpn_data:/etc/openvpn --rm -it evolvedm/openvpn-rpi ovpn_initpki
To start daemon (and auto-restart it):
| machine: | |
| environment: | |
| PATH: "$HOME/.asdf/bin:$HOME/.asdf/shims:$PATH" | |
| MIX_ENV: "test" | |
| dependencies: | |
| cache_directories: | |
| - ~/.asdf | |
| pre: | |
| - if ! asdf | grep version; then git clone https://github.com/HashNuke/asdf.git ~/.asdf; fi | |
| - if ! asdf plugin-list | grep erlang; then asdf plugin-add erlang https://github.com/HashNuke/asdf-erlang.git; fi |
This is my best try at transcribing of the lightning talk I gave at RUG::B on April 2016. Due to poor time management (LOL) the delivery was rushed and some examples were skipped, I hope having them posted here makes them more useful.
xargs is a small but very useful program that is installed in most if not all of your computers¹. Many of you probably know it. Those who don't will learn something really useful, but those who do will learn a couple of cool tricks, too.
You might have heard about the Unix philosophy:
This script allows you to automatically archive and upload a backup of your existing Ghost data to your Dropbox account.
You'll need to follow this tutorial.
Then, you must create an executable script using the code of ghost_backup.sh in this gist (but modifying your blog's path and prefix).