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
/***************** | |
Tally light ESP8266 for Blackmagic ATEM switcher | |
https://forum.livevideotech.today/t/wifi-tally-for-atem-mini-on-the-cheap/760/9 | |
Version 1.5 | |
A wireless (WiFi) tally light for Blackmagic Design | |
ATEM video switchers, based on the Wemos D1 Mini ESP8266 development | |
board with WS2812B RGB Shield and the Arduino IDE. |
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
ca /home/pi/openvpn/ca.cert | |
cert /home/pi/openvpn/client.cert | |
key /home/pi/openvpn/client.key | |
client | |
cipher BF-CBC | |
dev tun | |
persist-key | |
persist-tun | |
proto tcp | |
nobind |
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 network create influxdb | |
docker run --rm telegraf telegraf config > telegraf.conf | |
docker run -d --restart always --name influxdb --net=influxdb -p 8086:8086 influxdb | |
docker run -d --restart always --name=telegraf --net=influxdb -v /Users/hasanbasri1/telegraf.conf:/etc/telegraf/telegraf.conf:ro telegraf |
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
# Configuration for telegraf agent | |
[agent] | |
## Default data collection interval for all inputs | |
interval = "1s" | |
## Rounds collection interval to 'interval' | |
## ie, if interval="10s" then always collect on :00, :10, :20, etc. | |
round_interval = true | |
## Telegraf will send metrics to outputs in batches of at most | |
## metric_batch_size metrics. |
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
function tripay_create($postData = false) | |
{ | |
$order_items = []; | |
$post = $postData ? $postData : $this->request->getPost(); | |
$apiKey = $this->apiKey; | |
$privateKey = $this->privateKey; | |
$merchantRef = $post['id_order']; | |
$amount = $post['biaya'] + 5000; | |
$method = $post['metode_bayar']; | |
if (isset($post['data']) and !isset($post['id_takhosus'])) { |
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
#!/bin/bash -e | |
# | |
# Improved backup script for Ubiquiti UniFi controller | |
# original source: http://wiki.ubnt.com/UniFi#Automated_Backup | |
# | |
# must contain: | |
username=YOUR_USERNAME | |
password=YOUR_PASSWORD |
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
msg.payload = [0, 16833]; // hapus ini untuk melihat menkorvensi dari modbus | |
let pay = msg.payload; // mengambil data dari modbus | |
const buf = Buffer.allocUnsafe(4); | |
buf.writeInt16BE(pay[0],2); | |
buf.writeInt16BE(pay[1],0); | |
msg.payload = buf.readFloatBE(0); | |
return msg; |
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 node | |
const Blynk = require('blynk-library'); | |
const applescript = require('applescript'); | |
const AUTH = ''; | |
const blynk = new Blynk.Blynk(AUTH); | |
const volume = new blynk.VirtualPin(0) | |
const play = new blynk.VirtualPin(1) | |
const next = new blynk.VirtualPin(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
function selesaikan_ujian(id) { | |
swal({ | |
title: 'Apa anda yakin?', | |
text: "aksi ini akan menyelesaikan secara paksa ujian yang sedang berlangsung!", | |
showCancelButton: true, | |
confirmButtonColor: '#3085d6', | |
cancelButtonColor: '#d33', | |
confirmButtonText: 'Yes!' | |
}).then((result) => { | |
if (result.value) { |
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
<?php | |
require("config/config.default.php"); | |
require("config/config.function.php"); | |
require("config/functions.crud.php"); | |
$idm = $_POST['id_mapel']; | |
$ids = $_POST['id_siswa']; | |
$idu = $_POST['id_ujian']; | |
$where = array( | |
'id_mapel' => $idm, |
NewerOlder