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
check process puma_web | |
with pidfile /home/deploy/rails_apps/store/shared/tmp/pids/puma_web.pid | |
if totalmem is greater than 1024 MB for 1 cycles then alert | |
if totalmem is greater than 1024 MB for 2 cycles then | |
exec "/bin/bash -c '/sbin/restart store-puma-web'" as uid root and gid root | |
check process puma_api | |
with pidfile /home/deploy/rails_apps/store/shared/tmp/pids/puma_api.pid | |
if totalmem is greater than 512 MB for 1 cycles then alert | |
if totalmem is greater than 512 MB for 2 cycles then |
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
users: | |
- 1: | |
name: 'djiowdjeiow' | |
activity_id: 1 | |
discount_ids: | |
- 1 | |
- 2 | |
account: | |
id: 1 | |
accounts: |
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
#include <MIDI.h> | |
#include <SoftwareSerial.h> | |
#include <DFPlayer_Mini_Mp3.h> | |
#include <math.h> | |
SoftwareSerial mySerial(11, 10); // RX, TX | |
MIDI_CREATE_DEFAULT_INSTANCE(); | |
bool isMp3Mode = false; |
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
--setwifi.lua | |
print("Entering wifi Setup..") | |
wifi.setmode(wifi.STATIONAP) | |
cfg={} | |
cfg.ssid="LeakSensor" | |
--cfg.password="12345678" --comment to leave open | |
wifi.ap.config(cfg) |
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
{ | |
"aps": { | |
"alert": { | |
"title": "Test", | |
"body": "Test" | |
}, | |
"sound": "true", | |
"custom": { | |
"object_type": "Product", | |
"object": { |
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
#include <MozziGuts.h> | |
#include <Oscil.h> | |
#include <tables/chum9_int8.h> // recorded audio wavetable | |
#include <tables/cos512_int8.h> // for filter modulation | |
#include <LowPassFilter.h> | |
#include <mozzi_rand.h> // for rand() | |
#include <EventDelay.h> // for scheduling events | |
#define CONTROL_RATE 64 // powers of 2 please |
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
explain analyse | |
SELECT | |
SUM(vacations.daily_hours) AS daily_hours, | |
generate_series :: DATE AS date, | |
staff_memberships.user_id, | |
staff_memberships.account_id | |
FROM vacations | |
LEFT JOIN staff_memberships ON staff_memberships.id = vacations.staff_membership_id | |
CROSS JOIN generate_series( |
OlderNewer