Skip to content

Instantly share code, notes, and snippets.

@blog2i2j
blog2i2j / AuthyToOtherAuthenticator.md
Created March 7, 2024 13:18 — forked from gboudreau/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
@blog2i2j
blog2i2j / main.cpp
Created November 7, 2023 04:47 — forked from shamasis/main.cpp
TOTP Generator for ESP32 OLED module
#include <WiFi.h>
#include <NTPClient.h>
// dependencies
#include "TOTP++.h"
#include "SSD1306.h"
// replace with your network credentials
const char* ssid = "Redacted";
const char* password = "Redacted";
@blog2i2j
blog2i2j / config.yaml
Created March 19, 2023 08:39 — forked from suienzan/config.yaml
config.yaml and Pacman hook for https://aur.archlinux.org/packages/mosdns-bin v5
log:
level: info
plugins:
# 缓存mosdns-install.hook
- tag: cache
type: cache
args:
size: 1024
lazy_cache_ttl: 86400
@blog2i2j
blog2i2j / auto-artifact-export.yml
Created March 19, 2023 08:38 — forked from piyoki/auto-artifact-export.yml
mosdns-v5 config template
---
- name: Update dat files
hosts: all
become: yes
vars:
- base_path: /etc/mosdns
- restart_daemon: yes
- daemon_service_name: mosdns
- clean_up_after: yes
@blog2i2j
blog2i2j / usage_json.sh
Created January 15, 2016 04:22 — forked from andy-g/usage_json.sh
Per-user traffic monitoring script for OpenWRT
#!/bin/sh
echo 'Content-Type: application/json'
/usr/bin/wrtbwmon setup br-lan
/usr/bin/wrtbwmon update /tmp/user-usage.db
echo
echo { \"date\": $(date +%s), \"devices\": [
while IFS=, read MAC IN OUT LASTSEEN IP
do
0.0.0.0
1.1.80.147
1.1.127.45
1.33.190.70
1.33.191.58
1.209.208.200
1.234.1.235
1.234.2.155
1.234.4.97
1.234.17.34
@blog2i2j
blog2i2j / gist:c08526ca5497af79f390
Last active August 29, 2015 14:28 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>