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 | |
# -*- coding: utf-8, tab-width: 2 -*- | |
function adjust_mod_dirnames () { | |
local MANIF= MOD_DIR= EXPECTED= | |
local -A MOD_INFO=() | |
for MANIF in */info.json; do | |
MOD_DIR="${MANIF%/*}" | |
eval MOD_INFO=( $(<"$MANIF" tr -s '{},' '\n' | sed -nre ' | |
s~^\s*"([a-z0-9_]+)":\s*"([ !#-Z_-z]*)"\s*$~[\1]=\x27\2\x27~p') ) |
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
// -*- coding: utf-8, tab-width: 2 -*- | |
import 'p-fatal'; | |
import aux from './02_depth_aux'; | |
import pProps from './03_depth_naive'; | |
const { deepDump, identity, soon, detectState } = aux; | |
const deployment = soon({ |
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 | |
# -*- coding: utf-8, tab-width: 2 -*- | |
SPACE="${*//[^ ]/ }" | |
echo "####${SPACE// /#}####" | |
echo "## $SPACE ##" | |
echo "## $* ##" | |
echo "## $SPACE ##" | |
echo "####${SPACE// /#}####" |
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 nodemjs | |
// -*- coding: utf-8, tab-width: 2 -*- | |
import test from 'p-tape'; | |
import 'p-fatal'; | |
import pDelay from 'promise-delay'; | |
function stubAsyncDataSource(x) { return pDelay(200, x); } | |
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
import 'p-fatal' | |
import proxyTunnels from 'tunnel' | |
import got from 'got' | |
const tunnelCfg = { | |
proxy: { | |
host: 'localhost', | |
port: 7777, | |
proxyAuth: 'guest:yolo', | |
}, |
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
using System; | |
using System.IO; | |
namespace shout | |
{ | |
class Program | |
{ | |
static void Main() | |
{ | |
// reopenStdin(maxLineLen: 4 * 1024); |
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
// ==UserScript== | |
// @name ScriptMonkey foo test 180404-001 | |
// @description test | |
// @namespace spaceweb.pimpmybyte.de | |
// @match *://spaceweb.pimpmybyte.de/* | |
// @match *://github.com/* | |
// @match *://gist.github.com/* | |
// @version 1 | |
// @resource some-resource.js some-resource.js | |
// @grant GM_xmlhttpRequest |
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
Wscript.Echo "Gonna import the DLL." | |
set voice = WScript.CreateObject("Sapi.SpVoice") | |
Wscript.Echo "imported." | |
Wscript.Echo "Begin config." | |
' voice.Voice = voice.GetVoices().Item(i) | |
' voice.AudioOutput = voice.GetAudioOutputs().Item(i) | |
voice.Rate = 0 |
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
var relPath = require('absdir')(module, '.'), | |
serveStaticFiles = require('ecstatic')({ root: relPath('public') }), | |
httpLogFormat = 'short', | |
logHttpRequests = require('morgan')(httpLogFormat), | |
httpStack = require('stack')( | |
logHttpRequests, | |
serveStaticFiles | |
), |
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
'use strict'; | |
const PgClient = require('pg').Client; | |
module.exports = function makeHelpers() { | |
var hlp = { ctx: null }; | |
hlp.connectToDatabase = async function (dbCfg){ | |
const dbClient = new PgClient({ | |
host : dbCfg.host, |