Skip to content

Instantly share code, notes, and snippets.

View sylvaticus's full-sized avatar

Antonello Lobianco sylvaticus

View GitHub Profile
@mpetroff
mpetroff / jail.local
Last active March 28, 2025 03:19
JupyterHub PAM Authentication Fail2ban Configuration
# /etc/fail2ban/jail.local
[jupyterhub]
enabled = true
port = 443
filter = jupyterhub
backend = systemd
maxretry = 6
@yyx990803
yyx990803 / starcounter.js
Last active January 16, 2025 09:39
Count your total stars!
var https = require('https'),
user = process.argv[2],
opts = parseOpts(process.argv.slice(3))
request('/users/' + user, function (res) {
if (!res.public_repos) {
console.log(res.message)
return
}
var pages = Math.ceil(res.public_repos / 100),