Skip to content

Instantly share code, notes, and snippets.

View WindowsCmd's full-sized avatar
💗
makin cool stuff

Astrid WindowsCmd

💗
makin cool stuff
View GitHub Profile
@WindowsCmd
WindowsCmd / custom-flameshot-uploader.sh
Created March 28, 2021 11:37
Custom flameshot uploader
#!/bin/bash
auth="AUTH"
if [ ! -f "$1" ]
then
exit 1
fi
@WindowsCmd
WindowsCmd / load-routes.js
Last active December 21, 2020 21:43
A Nodejs express dynamic route lodaer with support for sub dirs
const path = require('path');
const fs = require('fs');
const routesPath = path.join(__dirname, "../routes");
let Files = [];
function loadAllRoutes(app) {
ThroughDirectory(routesPath);