Skip to content

Instantly share code, notes, and snippets.

View Geofferey's full-sized avatar
🤓
OnePlus 8T time

Geofferey Eakins Geofferey

🤓
OnePlus 8T time
  • NETLABWORK
  • USA
View GitHub Profile
@Geofferey
Geofferey / report.html
Last active November 13, 2024 11:52
TailScale Login - Group Policy
<html dir="ltr" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" gpmc_reportInitialized="false">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-16" />
<title>TailScale Login</title>
<!-- Styles -->
<style type="text/css">
body { background-color:#FFFFFF; border:1px solid #666666; color:#000000; font-size:68%; font-family:MS Shell Dlg; margin:0,0,10px,0; word-break:normal; word-wrap:break-word; }
table { font-size:100%; table-layout:fixed; width:100%; }
@Geofferey
Geofferey / WGRoam.md
Created October 19, 2024 22:43
Wireguard Roaming.md

Certainly! Here’s how the provided iptables rules can be incorporated into the previous explanation, ensuring clarity on their context and usage within the configuration for managing WireGuard connectivity for roaming dynamic peers.


Managing WireGuard Connectivity for Roaming Dynamic Peers

Scenario Overview:

In a WireGuard setup, a static endpoint (e.g., a firewall or server) has a fixed public IP address and an internal IP address (e.g., 203.0.113.10). A dynamic peer (client) connects to this static endpoint and may roam between internal networks (like a LAN) and external networks (such as mobile or public Wi-Fi). When on the same LAN, the dynamic peer learns the static endpoint's internal IP and begins communicating with it using this address. However, once the dynamic peer leaves the LAN, it can no longer reach the static peer’s internal IP, leading to connection issues. This situation necessitates strategies to ensure the dynamic peer can consistently connect to the static endpoi

@Geofferey
Geofferey / homestar-asound.state
Created January 28, 2024 14:16
This is the state of homestar with working microphone
state.Dummy {
control.1 {
iface MIXER
name 'Master Volume'
value.0 0
value.1 0
comment {
access 'read write'
type INTEGER
count 2
# /etc/acpi/events/lidconf
# run a script on lid open/close events
event=button/lid
action=/etc/acpi/actions/acpi-lid-switch.sh "%e"
#!/bin/sh
## This script is intended to be ran by ACPID daemon on lid switch events with the goal of disabling/re-enabling
# local tochpad on Chromebook trogdor + display on lid close/open. There is an issue with the touchpad that causes
# spurious input while the lid is closed and not suspeded + XFCE/upowers method of screen blanking causes issues
# with resuming session after opening the keyboard flap.
LOGFILE=/dev/null
## This is all being done so root can get display # and session cookie of the foreground users console
@Geofferey
Geofferey / 5.19.1-trogdor.config
Created January 1, 2024 04:38
5.19.1 kernel config for sc7180 arm64 based trogdor chromebooks coachz+homestar
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 5.19.1 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=110400
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=23800
@Geofferey
Geofferey / waydroid-chvt.sh
Created June 24, 2023 08:50
WIP Switch back to active
#!/bin/bash
## Use tasker + termux + ssh keys to run inside of waydroid and export WAYDROID_LAUNCH
PRIMARY_VT=1
WAYDROID_VT=7
PREV_VT=$(cat /tmp/.prev-vt)
CUR_VT=$(fgconsole)
if [[ ${CUR_VT} != ${WAYDROID_VT} ]]; then
#!/bin/sh
PRIMARY_USER=geofferey
sleep 1
waydroid session stop
weston --socket=waydroid-0 &
[Unit]
Description=Weston Wayland Compositor (on tty7)
RequiresMountsFor=/run
[email protected] plymouth-quit.service
After=systemd-user-sessions.service [email protected] plymouth-quit-wait.service gdm3.service waydroid-container.service
[Service]
User=geofferey
WorkingDirectory=/home/geofferey
PermissionsStartOnly=true
Restart=always
@Geofferey
Geofferey / flex_seq_5052.sub
Created April 24, 2023 01:22
RAW Recording of FLEX pager signal test sequence from flipper
Filetype: Flipper SubGhz RAW File
Version: 1
Frequency: 927985500
Preset: FuriHalSubGhzPresetCustom
Custom_preset_module: CC1101
Custom_preset_data: 02 0D 0B 06 08 32 07 04 14 00 13 02 12 04 11 83 10 67 15 24 18 18 19 16 1D 91 1C 00 1B 07 20 FB 22 10 21 56 00 00 C0 00 00 00 00 00 00 00
Protocol: RAW
RAW_Data: 623 -624 623 -624 625 -622 625 -628 623 -626 623 -624 621 -626 627 -626 623 -23780 417 -836 415 -834 413 -834 467 -730 519 -756 493 -730 519 -728 523 -730 519 -728 519 -730 545 -704 519 -730 545 -676 571 -676 573 -676 573 -676 573 -700 545 -702 547 -680 599 -650 599 -652 573 -674 599 -652 599 -650 597 -652 599 -624 623 -652 597 -652 597 -626 623 -652 597 -652 597 -652 599 -626 625 -626 623 -624 625 -626 625 -624 623 -626 623 -624 625 -624 623 -626 625 -622 625 -626 623 -626 623 -626 623 -626 625 -626 625 -626 625 -624 623 -624 625 -624 623 -626 625 -624 623 -626 623 -622 625 -624 623 -626 625 -624 627 -626 623 -622 625 -626 625 -624 623 -624 625 -626 625 -624 623 -624 621 -626 651 -602 625 -626 625 -626