apt-get install -y apt-transport-https ca-certificates software-properties-common
curl -sSL https://get.docker.com | sh
usermod -aG docker pi
systemctl start docker
systemctl enable docker
- Install:
pip/pip3 install supervisor
- Configure:
mkdir -p /etc/supervisord/conf.d /var/log/supervisord /var/run/supervisord
cp supervisord.conf /etc/supervisord/supervisord.conf
- Setup as systemd service:
cp supervisord.service /usr/lib/systemd/system/supervisord.service
- Reload systemd service configurations
systemctl daemon-reload
- Start service
This file contains 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
docker run --rm -it httpd:2.4-alpine htpasswd -nb user passwd |
This file contains 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
/** | |
* Imports currency data from Truncgil JSON API in TRY Ex: IMPORTTRUNCGIL("Çeyrek Altın") | |
* @param {string} currency_type - Type of the currency | |
* @customfunction | |
*/ | |
function IMPORTTRUNCGIL(currency_type) { | |
is_ok = false; | |
switch(currency_type) { | |
case "ABD DOLARI": | |
is_ok = true; |
This file contains 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/env python | |
# -*- coding: utf-8 -*- | |
# pip install Pillow | |
import os | |
import shutil | |
from PIL import Image | |
IMAGES_PATH = './images' |
This file contains 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
apply plugin: 'groovy' | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.7' | |
compile 'org.apache.commons:commons-io:1.3.2' | |
} |
This file contains 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
LC_ALL=C tr -dc 'A-Za-z0-9_!@#$%^&*()\-+=' < /dev/urandom | fold -w30 | head -n1 |