Skip to content

Instantly share code, notes, and snippets.

View shuchenliu's full-sized avatar
⚛️
React-ing

Will shuchenliu

⚛️
React-ing
  • The Scripps Research Institute
  • San Diego, CA
View GitHub Profile
@ispiropoulos
ispiropoulos / README.md
Last active February 6, 2025 13:53
Wireguard checker for OpenWRT to re-resolve ddns domains.

WireGuard DDNS Checker for OpenWRT

Purpose

This script addresses an issue where WireGuard peers fail to re-resolve the domain of their endpoint when the IP address changes.

This script was created to address this limitation by:

  • Checking the last handshake time: If the last handshake is older than a specified threshold (150 seconds in this case), the script triggers a re-resolution of the domain.
  • Re-resolving the domain: It extracts the domain and port from the WireGuard peer configuration and forces WireGuard to update the peer's endpoint with the new resolved IP address.
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active April 22, 2025 06:44
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@rtgibbons
rtgibbons / logger.js
Created November 7, 2013 13:51
Logger Library with winston
var app = require(process.cwd() + '/app');
var winston = require('winston');
var _ = require('lodash');
// Set up logger
var customColors = {
trace: 'white',
debug: 'green',
info: 'green',
warn: 'yellow',