Skip to content

Instantly share code, notes, and snippets.


Nabil Redmann BananaAcid

View GitHub Profile
  1. RaspberryPi OS

  2. PPI (connect screen and keyboad)

    • login: pi:raspberry
    • sudo raspi-config
      • WLAN ?
        • set it up.
BananaAcid / getOutput.mjs
Last active May 17, 2021
get process output / async JS
View getOutput.mjs
* Get output and exitcode from a command
* @author Nabil Redmann <>
* @license ISC
* import getOutput from './getOutput.mjs';
* let {out, code} = getOutput('ls', ['-l', '*.txt']);
import { spawn } from 'child_process';
BananaAcid /
Last active Jan 22, 2021
Web-Starter Package on VSCode für Mediengestalter

This is a living-document... immer wenn Änderungen nötig werden, werde ich dies hier updaten.

1. Installieren (Kommandozeile)

win:VSCode (per Win+R und eingeben: cmd )

\>  bitsadmin /transfer vscode /download /priority normal "" "%temp%\vscode.latest.exe" &&  %temp%\vscode.latest.exe /SILENT /NORESTART /MERGETASKS=!runcode
BananaAcid / web.config
Last active Jan 2, 2021
contao/iis web.config
View web.config
<?xml version="1.0" encoding="UTF-8"?>
<!-- HTTPS !!
<rule name="Redirect to https" stopProcessing="true">
BananaAcid / .gitignore
Created Mar 14, 2020
Pack up a project and some couchdb docs
View .gitignore
BananaAcid / local-redis-check.ps1
Created Jan 23, 2020
Check if a local redis server is up and running (no redis-cli for
View local-redis-check.ps1
tnc -port 6379
View SimplestHttpFileServer.cs
using System;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using System.Net;
namespace SimplestHttpFileServer
class Program
BananaAcid / asyncWrappers.pug
Last active Dec 22, 2019
Promise/Callback fn wrappers for then-pug (which is generators based)
View asyncWrappers.pug
//- will only work with the `npm install then-pug` module instead of default `pug`
//- passed in locals are: sendmail (node module), insp which is require('util').inspect, and just passed in Promise
// for functions having the second param as callback (e.g. nodejs fs.readFile)
function syncifyCb(fn) {
return function* (param1) {
let result = null;
yield function* () {
BananaAcid /
Last active Jul 18, 2019
payment services
BananaAcid / .gitignore
Last active Mar 14, 2020
compress a folder with 7z using a gitignore list
View .gitignore