Skip to content

Instantly share code, notes, and snippets.

View senseisimple's full-sized avatar

Chris N. senseisimple

  • Texas
  • 08:38 (UTC -06:00)
View GitHub Profile
@senseisimple
senseisimple / teams_keep_status.user.js
Last active April 15, 2024 05:29
MS Teams status keeper - presence API call
// ==UserScript==
// @name Teams Presence Keeper
// @namespace Teams Presence Keeper
// @description Teams Presence Keeper
// @version 2.1
// @grant none
// @match *://*.teams.microsoft.com/*
// @match *://teams.microsoft.com/*
// @noframes
// @run-at document-idle
@bendem
bendem / bw-agent
Last active March 21, 2025 15:08
Bitwarden scripts to keep a session open without the need to export env variables.
#!/usr/bin/env python3
import grp
import os
import pwd
import socket
import sys
import subprocess
import struct
import typing
@senseisimple
senseisimple / signal_quality.md
Last active December 30, 2020 04:08
Signal Quality as a Percent for IPW2200 - Archive

Signal Quality as a Percent for IPW2200

https://www.ces.clemson.edu/linux/signal_quality.shtml (dead link)

Bill Moss February 26, 2006

Introduction

The purpose of this note is to examine a new model for ipw2200 wireless signal quality and a conversion from signal quality to signal strength bars.

@senseisimple
senseisimple / comment-36.md
Last active May 2, 2024 18:12
dbm to percent conversion - quadratic

In Response to comment: https://www.intuitibits.com/2016/03/23/dbm-to-percent-conversion/#comment-9 regarding the quadratic formula used by WiFi Explorer (based on ipw2200 driver logic) for which a dBm to Percent table is provided.

https://github.com/torvalds/linux/blob/9ff9b0d392ea08090cd1780fb196f36dbb586529/drivers/net/wireless/intel/ipw2x00/ipw2200.c#L4321

Some quick PHP based on the ipw2200 code and a table generating function:

function signal_quality_perc_quad($rssi, $perfect_rssi=-20, $worst_rssi=-85) {
$nominal_rssi=($perfect_rssi – $worst_rssi);
@heygambo
heygambo / lwp-cloudflare-dyndns.sh
Created March 17, 2020 05:21
Cloudflare as Dynamic DNS (revised)
#!/bin/bash
# Cloudflare as Dynamic DNS
# From: https://letswp.io/cloudflare-as-dynamic-dns-raspberry-pi/
# Based on: https://gist.github.com/benkulbertis/fff10759c2391b6618dd/
# Original non-RPi article: https://phillymesh.net/2016/02/23/setting-up-dynamic-dns-for-your-registered-domain-through-cloudflare/
# Fixed and documented version by Christian Gambardella (https://gambo.io)
# 1. Create a cloudflare account
# 2. Create a zone and a record with any ip address.
# It will be updated by the script.
@magn2o
magn2o / eap_proxy.sh
Last active February 16, 2021 07:54
init.d style service script for eap_proxy on the UDMPro.
#!/bin/sh
set -eu -o pipefail
CONTAINER_NAME="eap_proxy"
IMAGE_NAME="pbrah/eap_proxy-udmpro"
IMAGE_TAG="v1.1"
container_exists() {
podman container inspect "${1}" &>/dev/null
@magn2o
magn2o / wpawatch
Last active May 28, 2020 13:02
Simple watchdog script for wpa_supplicant/eap_proxy (or anything, really) on the UDM-Pro
#!/bin/bash
while getopts ":h:t:n:p:s" opt; do
case $opt in
h) OPT_H="${OPTARG}"
;;
t) OPT_T=${OPTARG}
;;
n) OPT_N=${OPTARG}
;;
@hazcod
hazcod / apache-plex-reverse-proxy.vhost
Last active December 12, 2024 05:45
Apache2 reverse proxy vhost configuration for Plex. Rerquires modules ssl, proxy, wstunnel
This current configuration is based of at least Server Version 1.16.5.1488 and Web Version: 3.108.2.
This updated config file allows the playing of trailers and TV Show theme music where as the previous one did not.
## Requirements
1. Apache version > 2.4
2. A bunch of mod's enabled (proxy, ssl, proxy_wstunnel, http, dir, env, headers, proxy_balancer, proxy_http, rewrite)
3. Protocols h2 http/1.1 needs apachectl -V 2.4.17 and higher...
## Apache .conf file
@ruario
ruario / h264-vivaldi-linux.md
Last active July 25, 2025 07:24
How to enable HTML5 MP4 (H.264/AAC) video in Vivaldi for Linux, via an alternative FFMpeg library
@grenade
grenade / update_firefox_developer_edition.sh
Last active August 10, 2024 22:29 — forked from simonewebdesign/install_sublime_text.sh
this script is based on another for Sublime Text (http://www.simonewebdesign.it/install-sublime-text-3-on-linux/). It will handle updates (detects the latest developer or nightly edition) and locale (using your $LANG environment variable) (only tested on a 64 bit, fedora system, feedback welcome).
#!/bin/sh
# Firefox Developer Edition install
# No need to download this script, just run it on your terminal:
# $ curl -L git.io/firefoxdev | sh
# When you need to update Firefox Developer Edition, run this script again.
START_CMD="firefox-dev"
INSTALLATION_DIR="/opt/${START_CMD}"