I hereby claim:
- I am hiestaa on github.
- I am rguyot (https://keybase.io/rguyot) on keybase.
- I have a public key ASC0-5kzdP4c6U26wLFOIfwhtLH6aiqvkMyl9Z_gdy1LLAo
To claim this, I am signing this object:
#!/bin/bash | |
if [ $# -eq 0 ]; then | |
echo "usage: `basename $0` pathToDb [dbName]" | |
exit 1 | |
fi | |
pathToDb=$1 | |
if [ $# -eq 1 ]; then |
import subprocess | |
import sys | |
if len(sys.argv) > 1: | |
port = sys.argv[1] | |
else: | |
port = '3996' | |
if (len(sys.argv) > 2): | |
name = sys.argv[2] |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
for i in "$@" | |
do | |
case $i in | |
-p=*|--password=*) | |
PASSWORD="${i#*=}" | |
;; | |
-s=*|--servername=*) | |
SERVERNAME="${i#*=}" |
var express = require("express"), | |
app = express(); | |
var bodyParser = require('body-parser'); | |
function echo(req, res, next) { | |
const queryStr = Object.entries(req.query).map(([key, val]) => `${key}=${val}`).join('&'); | |
const bodyStr = req.body ? JSON.stringify(req.body) : null; | |
const response = req.method + ' ' + req.url + (queryStr && queryStr.length ? '?' + queryStr : '') + '\n' + (bodyStr ? bodyStr + '\n' : ''); | |
console.log(response); | |
res.end(response); |
var argv = require('yargs') | |
.usage('Usage: $0 -n num -q url[?queryString] [-m method] [-b body]') | |
.demandOption(['n', 'q']) | |
.argv; | |
var axios = require('axios'); | |
promises = [] | |
Promise.all([...Array(parseInt(argv.n, 10))].map((data, index) => { | |
let p |
switch_automatic.py
to ~/Library/ApplicationSupport/iTerm2/Scripts/AutoLaunch
with:#!/usr/bin/env python3
import asyncio
import iterm2
async def main(connection):
async with iterm2.VariableMonitor(connection, iterm2.VariableScopes.APP, "effectiveTheme", None) as mon:
const LAG = 3 * 60 * 1000; | |
const GAP = 10 * 1000; | |
dataReceived = function () { | |
}; | |
function startTime() { | |
return new Date(Date.now() - LAG).toISOString(); | |
} |
/** Data Link Configuration: | |
{ | |
"dataLink": { | |
"details.scheduledActivity": { | |
"match": [ | |
"cameras.$any.id" | |
], | |
"window": [ | |
86400, | |
0 |
let count = 0; | |
const INTERVAL = 120 * 1000; | |
const INTERVAL_VARIATION_RANGE = 120 * 1000; | |
const LAG = Math.round((1 + Math.random() * 10) * 60 * 1000); | |
const LIMIT = 1000; | |
const EMPLOYEES = [ | |
"Mana Kujawa", | |
"Carissa Ledesma", | |
"Beverly Murrow", | |
"Melodi Lovick", |