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 | |
# Start at :30 seconds | |
WAIT_FOR_MIDDLE_OF_MINUTE=$(( ( 90 - $(date +%S) ) % 60 )) | |
sleep $WAIT_FOR_MIDDLE_OF_MINUTE | |
START=$(date +%s%N) | |
INTERVAL_SECONDS=60 | |
INTERVAL_NANOSECONDS=$(( $INTERVAL_SECONDS * 1000000000 )) | |
i=1 |
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 dq($query){ | |
$sql = $query->toSql(); | |
foreach($query->getBindings() as $key => $binding){ | |
$sql = preg_replace('/\?/', "'$binding'", $sql, 1); | |
} | |
dd($sql); | |
} |
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
const express = require("express"); | |
const querystring = require("querystring"); | |
const session = require("express-session"); | |
const app = express(); | |
const port = 8080; | |
const url = `http://localhost:${port}`; | |
const oauthServer = "https://app.startinfinity.com"; | |
const appId = "<paste-app-id>"; |
OlderNewer