In the end of setup():
pinMode(D5, INPUT_PULLUP); // enable button pin
pinMode(D4, OUTPUT); // enable LED pin
In the beginning of loop():
if(digitalRead(D5)){
if(!attack.isRunning()){
# -*- coding: utf-8 -*- | |
""" | |
Compiled, mashed and generally mutilated 2014-2015 by Denis Pleic | |
Made available under GNU GENERAL PUBLIC LICENSE | |
# Modified Python I2C library for Raspberry Pi | |
# as found on http://www.recantha.co.uk/blog/?p=4849 | |
# Joined existing 'i2c_lib.py' and 'lcddriver.py' into a single library | |
# added bits and pieces from various sources | |
# By DenisFromHR (Denis Pleic) |
#! /bin/sh | |
# /etc/init.d/ngrok | |
case "$1" in | |
start) | |
echo "Ngrok service is starting" | |
screen -d m /etc/init.d/ngrok start -all -config /home/pi/.ngrok2/ngrok.yml | |
echo "Ngrok service was started" | |
;; | |
stop) |
In the end of setup():
pinMode(D5, INPUT_PULLUP); // enable button pin
pinMode(D4, OUTPUT); // enable LED pin
In the beginning of loop():
if(digitalRead(D5)){
if(!attack.isRunning()){
global | |
log /dev/log local0 | |
log /dev/log local1 notice | |
chroot /var/lib/haproxy | |
stats socket /run/haproxy/admin.sock mode 660 level admin expose-fd listeners | |
stats timeout 30s | |
user haproxy | |
group haproxy | |
daemon |
#GREEN | |
upstream NODE_SSR_GREEN { server 127.0.0.1:8080; } | |
upstream NODE_SSR_BLUE { server 127.0.0.1:8082; } | |
#Основной сервер | |
server { | |
set $ACTIVE_SSR NODE_SSR_GREEN; | |
set $APP_ROOT /var/www/app-GREEN/dist; | |
server_name vue.ssr; |
#!/bin/bash | |
# Copyright 2018, 2019, 2020 Azure Zanculmarktum | |
# All rights reserved. | |
# | |
# Redistribution and use of this script, with or without modification, is | |
# permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of this script must retain the above copyright | |
# notice, this list of conditions and the following disclaimer. |
I'm writing this gist for my own records but it might help someone else too.
Support for Catalina has improved a lot since the update was first rolled out.
Note: See the NixOS manual for discussion of the --darwin-use-unencrypted-nix-store-volume
option.
FROM ghost:4 | |
RUN apt-get update -y && \ | |
apt-get install -y mariadb-client | |
COPY ./wait-for-mysql.sh /usr/local/bin/wait-for-mysql.sh |