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
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 |
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
[program:scollector] | |
command=/bin/bash -c "/scollector/scollector -h 0.0.0.0:5252" | |
priority=100 | |
stdout_logfile=/var/log/scollector.out.log | |
stderr_logfile=/var/log/scollector.err.log | |
autostart=true | |
autorestart=true |
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
import ( | |
"fmt" | |
"time" | |
) | |
const INTERVAL_PERIOD time.Duration = 24 * time.Hour | |
const HOUR_TO_TICK int = 23 | |
const MINUTE_TO_TICK int = 00 | |
const SECOND_TO_TICK int = 03 |
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
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: ingress | |
namespace: ingress-basic | |
annotations: | |
kubernetes.io/ingress.class: nginx | |
certmanager.k8s.io/cluster-issuer: letsencrypt-prod | |
nginx.ingress.kubernetes.io/use-regex: "true" | |
# nginx.ingress.kubernetes.io/rewrite-target: /$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
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: ingress | |
namespace: ingress-basic | |
annotations: | |
kubernetes.io/ingress.class: nginx | |
nginx.ingress.kubernetes.io/use-regex: "true" | |
spec: | |
rules: |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: selenium-hub | |
labels: | |
app: selenium-hub | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: |
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
CREATE proc [dbo].[sp_MSforeachtable] | |
@command1 nvarchar(2000), @replacechar nchar(1) = N'?', @command2 nvarchar(2000) = null, | |
@command3 nvarchar(2000) = null, @whereand nvarchar(2000) = null, | |
@precommand nvarchar(2000) = null, @postcommand nvarchar(2000) = null | |
AS | |
declare @mscat nvarchar(12) | |
select @mscat = ltrim(str(convert(int, 0x0002))) | |
if (@precommand is not null) | |
exec(@precommand) |
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
#include <MIDI.h> | |
// Define the MIDI input pin, MIDI out channel, and the two relay output pins | |
#define RELAY_PIN_1 3 | |
#define RELAY_PIN_2 2 | |
// Create MIDI, relay, and MIDI out objects | |
MIDI_CREATE_DEFAULT_INSTANCE(); | |
const int relay_pins[] = { RELAY_PIN_1, RELAY_PIN_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
{ | |
"Channel": 11, | |
"Presets": [ | |
{ | |
"Name": "Test1", | |
"Switch1": { | |
"CC": [ | |
{ | |
"CC": 1, | |
"Value": 127 |
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
/* | |
* For this example, connect your X9C103P (or the like) as follows: | |
* 1 - INC - Arduino pin 2 | |
* 2 - U/D - Arduino pin 3 | |
* 3 - VH - 5V | |
* 4 - VSS - GND | |
* 5 - VW - Output: Arduino pin A0 for analogRead | |
* 6 - VL - GND | |
* 7 - CS - Arduino pin 4 |