create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| # | |
| # Got from: https://gist.github.com/wteuber/5318013 | |
| require 'openssl' | |
| def encrypt(plain_text, key) | |
| cipher = OpenSSL::Cipher.new('DES-EDE3-CBC').encrypt | |
| cipher.key = Digest::SHA1.hexdigest key | |
| s = cipher.update(plain_text) + cipher.final |
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| -module(hello). | |
| io:format("compiling~n"). | |
| world() -> | |
| io:format("hello world~n"). |
| defmodule Flatten do | |
| @moduledoc """ | |
| This module has the flatten function that takes an arbitrary list of integers | |
| and lists then builds a new one with only integers | |
| """ | |
| @doc """ | |
| ## Examples |
| <!-- Credits toleda: https://github.com/toleda | |
| based on https://github.com/toleda/wireless_half-mini/tree/master/Deprecated%20Files/airport_kext_enabler | |
| This Info.plist just updates the dependencies to work in macOS Sierra --> | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>BuildMachineOSBuild</key> | |
| <string>15A284</string> | |
| <key>CFBundleDevelopmentRegion</key> |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| # cuando un dir interno era un repo y no se agrega al parent repo se procede a esto para poder incluir los archivos. | |
| git rm -rf --cached directory/ | |
| git add directory/ |
| # copy file from host to a container | |
| cat /local/file/path | docker exec -i <running-container-id> sh -c 'cat > /inside/docker/file/path' | |
| # copy file from a container to host | |
| docker cp <containerId>:/file/path/within/container /host/path/target | |
| # install oracle jdk in archlinux | |
| yaourt -S jdk7 | |
| # using jdk 1.7 instead of 1.8 due to some compatibility issues | |
| # download firebird jdbc driver | |
| wget https://github.com/FirebirdSQL/jaybird/releases/download/v2.2.8/Jaybird-2.2.8-JDK_1.7.zip | |
| # this driver is for current firebird release (2.5.4) | |
| # unzip and copy jaybird-2.2.8.jar to data-integration-directory/lib directory |
| # install with yaourt | |
| yaourt -S firebird-superserver | |
| # create symlink for firebird isql due to a conflict with unixODBC isql | |
| # check with this command: | |
| whereis isql (ENTER) | |
| isql: /usr/bin/isql /opt/firebird/bin/isql /usr/share/man/man1/isql.1.gz | |
| # creating symlink: | |
| sudo ln -s /opt/firebird/bin/isql /usr/bin/isql-fb |