This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) | |
| ANSIBLE_METADATA = {'metadata_version': '1.0', | |
| 'status': ['preview'], | |
| 'supported_by': 'community'} | |
| DOCUMENTATION = ''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Assumes the database container is named 'db' | |
| DOCKER_DB_NAME="$(docker-compose ps -q db)" | |
| DB_HOSTNAME=db | |
| DB_USER=postgres | |
| LOCAL_DUMP_PATH="path/to/local.dump" | |
| docker-compose up -d db | |
| docker exec -i "${DOCKER_DB_NAME}" pg_restore -C --clean --no-acl --no-owner -U "${DB_USER}" -d "${DB_HOSTNAME}" < "${LOCAL_DUMP_PATH}" | |
| docker-compose stop db |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://github.com/asciidoctor/asciidoctor-gradle-examples/pull/43/commits/247adf876fafd4d98149453c7dd6f9db49a714a9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| zero1 v2 opt | |
| raspistill -rot 90 -co 50 -sh 40 -br 60 -sa 20 -ISO 200 -o test19.jpg | |
| raspistill -rot 90 -br 50 -sa 70 -ISO 200 -o test9.jpg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| esource "null_resource" "do-things" { | |
| provisioner "local-exec" { | |
| command = "echo 'Hello World!'" | |
| } | |
| provisioner "local-exec" { | |
| command = "echo $((1+2))" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "os" | |
| "archive/tar" | |
| "log" | |
| "io" | |
| "compress/gzip" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .net core, kubernetes tool stack on MacOS | |
| https://www.jetbrains.com/rider/ | |
| http://www.mono-project.com/download/stable/ | |
| https://www.microsoft.com/net/download/thank-you/dotnet-sdk-2.1.300-macos-x64-installer | |
| https://www.microsoft.com/net/download/macos | |
| https://github.com/kubernetes/minikube/releases | |
| https://kubernetes.io/docs/tasks/tools/install-kubectl/ | |
| # dotnet core docker | |
| https://hub.docker.com/r/microsoft/dotnet/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - serial console with adafruit cp2104: | |
| https://learn.adafruit.com/adafruit-piuart-usb-console-and-power-add-on-for-raspberry-pi/enabling-serial-console | |
| https://thepihut.com/products/adafruit-piuart-usb-console-and-power-add-on-for-raspberry-pi | |
| https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers | |
| http://www.silabs.com/Support%20Documents/Software/Mac_OSX_VCP_Driver.zip | |
| https://www.silabs.com/community/interface/forum.topic.15.15.html/cp120x_vcp_driverno-G1Bu | |
| https://pqrs.org/osx/karabiner/ | |
| /dev/cu.SLAB_USBtoUART |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://learn.adafruit.com/adafruit-pioled-128x32-mini-oled-for-raspberry-pi/ | |
| sudo apt-get update | |
| sudo apt-get install build-essential python-dev python-pip | |
| sudo pip install RPi.GPIO | |
| sudo apt-get install i2c-tools | |
| sudo apt-get install python-imaging python-smbus | |
| # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/Documentation/i2c/smbus-protocol |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://www.adafruit.com/product/3205 | |
| https://retropie.org.uk/ | |
| https://emulationstation.org/ | |
| https://retropie.org.uk/docs/Manual-Installation/ |