Skip to content

Instantly share code, notes, and snippets.

View VFUC's full-sized avatar
🙂

Jonas [WIP] VFUC

🙂
View GitHub Profile
@VFUC
VFUC / gym-prom-wrapper.go
Created October 25, 2022 21:06
Prometheus wrapper to periodically fetch Kaifu-Lodge visitor numbers
package main
import (
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
"net/http"
"time"
@VFUC
VFUC / open-github-actions.sh
Created May 15, 2020 10:20
Open GitHub Actions page for current repo (assuming the Git origin points to the GitHub repo)
git remote get-url origin | sed -e 's/[email protected]:/https:\/\/github.com\//' | sed -e 's/\.git/\/actions/' | xargs open
@VFUC
VFUC / app.js
Last active September 3, 2015 17:07
mylatest.video dynamic redirecting
var express = require('express');
var request = require('request');
var winston = require('winston');
var app = express();
var logger = new (winston.Logger)({
transports: [
new (winston.transports.File)({ filename: 'errors.log' })
]