Skip to content

Instantly share code, notes, and snippets.

@pawohl
pawohl / fritzbox-cert-update.sh
Last active Feb 25, 2020 — forked from wikrie/fritzbox-cert-update.sh
Fritzbox Fritz!Box AVM SSL Letsencrypt automatically update
View fritzbox-cert-update.sh
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# parameters
USERNAME="maybe empty"
PASSWORD="fritzbox-password"
CERTPATH="path to cert eg /etc/letsencrypt/live/domain.tld/"
CERTPASSWORD="cert password if needed"
@itod
itod / fluid_gmail.js
Last active Jul 9, 2020
Gmail Fluid App Userscript
View fluid_gmail.js
window.fluid.dockBadge = '';
setTimeout(updateDockBadge, 1000);
setTimeout(updateDockBadge, 3000);
setInterval(updateDockBadge, 5000);
function updateDockBadge() {
var newBadge = '';
var res = findInboxAnchorMatchResult();
if (res) {
@geoffgarside
geoffgarside / cisco_config_parser.rb
Created May 25, 2011
Quick slapped together ruby class for parsing cisco router configuration files, only a start
View cisco_config_parser.rb
class CiscoConfigParser
def initialize(io)
@io = io
end
def parse
@io.each do |line|
if line =~ /^\!$/ # terminate current block
end_config
next
elsif line =~ /^\!/ # Comment
View index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="refresh" content="3600" />
<title>Scrobble Map</title>
<link rel="stylesheet" href="scrobblemap.css" type="text/css" media="screen" title="no title" charset="utf-8">
</head>
You can’t perform that action at this time.