Skip to content

Instantly share code, notes, and snippets.

View delight09's full-sized avatar

delight09

View GitHub Profile
@delight09
delight09 / gh-contribute-calendar.rb
Last active January 19, 2024 14:56
selectable SVG image for your github contributions calendar
require "nokogiri"
require "open-uri"
x_weeks_last = params['last-x-weeks'].to_i
width = params['width'].to_i
height = params['height'].to_i
url = "https://github.com/users/#{params['username']}/contributions"
document = Nokogiri::HTML(open(url))
#!/bin/bash --
# check natapp proc, check logfile, post new url
# USAGE: nat_endpoint_checker.sh (system startup / crontab)
NATAPP_AUTHTOKEN=0fe7367cxXxXxXxX
SERVERCHAN_KEY=SCU14967TxXxXxXxXb9881e859ba765c77730fdb659f8xXxXxXxX
LOGFILE=/tmp/natapp.log
KEYWORD="established"