Skip to content

Instantly share code, notes, and snippets.

View Webbanditten's full-sized avatar
🥃
Need a drink

Patrick Nærvig Wøhlk Webbanditten

🥃
Need a drink
View GitHub Profile
@Webbanditten
Webbanditten / audit-your-codebase.md
Created August 16, 2026 19:57 — forked from aarondfrancis/audit-your-codebase.md
A read-only, agent-orchestrated codebase audit prompt for data structures, state modeling, algorithms, and ownership.

Audit this entire codebase for materially useful simplifications in its data structures, state representation, control flow, algorithms, and ownership.

This is an audit-only exercise. Do not edit files, run tests, implement recommendations, commit, or push. Read-only inspection commands are allowed.

You are the coordinator. Continue until the complete codebase has been reviewed and the final audit is validated.

  1. Establish the coverage contract

Inspect the repository and inventory every identifiable subsystem.

@Webbanditten
Webbanditten / DinecWiegandencoding.js
Last active June 30, 2026 09:54
Dinec Wiegand encoding
/**
* Dinec Wiegand encoding: EM4100 RFID -> "Chip system" badge id (Badge1).
*
* Use to enroll chips from a web dashboard instead of Dinec's software.
* Take the decimal RFID a scanner reads, produce the hex value Dinec stores
* in [DBM6000].[dbo].[Users].[Badge1] (CardType1 = EM4100). Write that, done.
*
* NOT encryption. Reversible encoding = bit-reversal of RFID's low 24 bits,
* framed as 26-bit Wiegand with inverted parity (lead odd / trail even).
* Reverse-engineered from 25 known pairs, 100% match. RFID bits above bit23
{
"captainVersion": "2",
"documentation":"http://www.quakejs.com/",
"displayName": "quakejs",
"description": "QuakeJS is a port of ioquake3 to JavaScript with the help of Emscripten.",
"dockerCompose":{
"services":{
"$$cap_appname":{
"containerHttpPort":"80",
"environment":{
{
"captainVersion": "2",
"documentation":"https://docs.requarks.io/",
"displayName": "wiki.js",
"description": "The most powerful and extensible open source Wiki software",
"dockerCompose":{
"services":{
"$$cap_appname":{
"containerHttpPort":"3000",
"environment":{
@Webbanditten
Webbanditten / ghost-caprover.yml
Last active June 3, 2022 20:53
GHOST-CAPROVER
captainVersion: 4
services:
$$cap_appname:
environment:
database__client: 'mysql'
database__connection__host: $$cap_mariadb_host
database__connection__database: $$cap_ghost_database_name
database__connection__password: $$cap_ghost_database_password
database__connection__user: $$cap_ghost_database_user
database__connection__port: '3306'
RewriteCond %{REQUEST_URI} !^.well-known/acme-challenge
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{REQUEST_URI} !^.well-known/acme-challenge
REWRITERULE ^(.*)$ https://cyberpanel/$1 [P]
@Webbanditten
Webbanditten / program.cs
Created July 26, 2017 10:43
List Project administrator and collection administrators on TFS
using System;
using System.Linq;
using Microsoft.TeamFoundation.Framework.Common;
using Microsoft.TeamFoundation.Client;
using Microsoft.TeamFoundation.Framework.Client;
using System.Collections.Generic;
using Microsoft.TeamFoundation.Core.WebApi;
using Microsoft.TeamFoundation.Server;
using ProjectInfo = Microsoft.TeamFoundation.Server.ProjectInfo;
@Webbanditten
Webbanditten / ActiveDirectoryGroupFilter.cs
Last active March 7, 2017 07:41
ActiveDirectoryGroupFilter.cs
using System;
using System.Collections.Generic;
using System.DirectoryServices.AccountManagement;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
public class ActiveDirectoryGroupFilter : ActionFilterAttribute
{

Material Design Spinner

CSS and SVG recreation of the new Google material design loading spinner.

A Pen by Fran Pérez on CodePen.

License.

// Released under MIT license: http://www.opensource.org/licenses/mit-license.php
$('[placeholder]').focus(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
input.removeClass('placeholder');
}
}).blur(function() {
var input = $(this);