Skip to content

Instantly share code, notes, and snippets.

@lart2150
lart2150 / roamingSignature.ts
Last active October 6, 2025 14:24
Office 365 Roaming Signature
/*
Copyright 2025
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
using System;
using System.Net;
using System.Text;
using System.IO;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace DomainToken
{
// ==UserScript==
// @name Add AMX offfers to card
// @namespace https://lart2150.com/
// @version 0.1
// @description Add all Amx offers to card
// @author /u/lart2150
// @match https://global.americanexpress.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=americanexpress.com
// @grant GM_registerMenuCommand
// ==/UserScript==
@lart2150
lart2150 / Reddit Video links.user.js
Last active October 7, 2025 13:59
Get direct links to hihest quality reddit video. Does not include audio.
@lart2150
lart2150 / alarm.lua
Last active April 28, 2019 16:10
Simple NodeMCU alarm
--[[
I have modules adc,cron,crypto,encoder,file,gpio,http,mqtt,net,node,rtctime,sjson,sntp,struct,tmr,uart,websocket,wifi,tls
uses the tz lib at https://github.com/nodemcu/nodemcu-firmware/tree/master/lua_examples/timezone
logs to multicast udp port 4000 and to the serial
--]]
local bounce = 300 -- Debounce period. 200ms time used to debounce switches
local bounceCnt = 2
local alarmCnt = {}
currentStates = {}