Skip to content

Instantly share code, notes, and snippets.

View senseisimple's full-sized avatar

Chris N. senseisimple

  • Texas
  • 02:19 (UTC -05:00)
View GitHub Profile
@senseisimple
senseisimple / teams_keep_status_ang.user.js
Last active January 4, 2023 18:01
MS Teams status keeper - Angular js hook
// ==UserScript==
// @name Teams Presence Keeper - Angular
// @namespace Teams Presence Keeper - Angular
// @version 1.0
// @match *://*.teams.microsoft.com/*
// @exclude *://*.teams.microsoft.com/multi-window/*
// @noframes
// @run-at document-idle
// @inject-into auto
// @icon https://www.google.com/s2/favicons?sz=64&domain=microsoft.com
@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
@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);
@senseisimple
senseisimple / eap_proxy.sh
Created May 29, 2020 10:04 — forked from magn2o/eap_proxy.sh
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
@senseisimple
senseisimple / apache-plex-reverse-proxy.vhost
Created March 12, 2020 12:53 — forked from hazcod/apache-plex-reverse-proxy.vhost
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
@senseisimple
senseisimple / h264-vivaldi-linux.md
Created October 3, 2018 08:30 — forked from ruario/h264-vivaldi-linux.md
How to enable HTML5 MP4 (H.264/AAC) video in Vivaldi for Linux, via an alternative FFMpeg library

How to enable HTML5 MP4 (H.264/AAC) video in Vivaldi for Linux, via an alternative FFMpeg library

Intro

The following is a quick guide to get this working on various Linux distros. As a side note, if you have Chrome installed alongside Vivaldi, Netflix should also work after making these changes. Alternatively, use my latest-widevine.sh to fetch and extract Chrome's copy of Widevine, so that it can be used by Vivaldi.

If you don't have working Flash video and need that in addition, please refer to these instructions.

Note: This guide is primarily aimed at users of Vivaldi stable releases. If it does not solve your issues, read this in addition.

@senseisimple
senseisimple / apache_cors_example
Created June 8, 2018 10:19 — forked from brianlmoon/apache_cors_example
CORS example for Apache with multiple domains
# Sets CORS headers for request from example1.com and example2.com pages
# for both SSL and non-SSL
SetEnvIf Origin "^https?://[^/]*(example1|example2)\.com$" ORIGIN=$0
Header set Access-Control-Allow-Origin %{ORIGIN}e env=ORIGIN
Header set Access-Control-Allow-Credentials "true" env=ORIGIN
# Always set Vary: Origin when it's possible you may send CORS headers
Header merge Vary Origin