Skip to content

Instantly share code, notes, and snippets.

@piense
piense / example.py
Created October 21, 2023 17:57
Azure Devops Push
import base64
import json
import urllib
import requests
org_name = "your org"
project_name = "your project"
repo_name = "test"
PAT = "a_pat"
@piense
piense / Expanded YAML
Created May 29, 2021 21:41
YAML Debugging
trigger:
enabled: false
variables:
- group: dev
stages:
- stage: Build
jobs:
- job: Test
steps:
- task: CmdLine@2
@piense
piense / ip8.lua
Created April 9, 2020 02:00
A&H IP Lua dissector
-- Place this in %APPDATA%\Wireshark\plugins
-- declare our protocol
IP8 = Proto("IP8","IP8")
-- create a function to dissect it
function IP8.dissector(buffer,pinfo,tree)
pinfo.cols.protocol = "IP8"
local subtree = tree:add(IP8,buffer(),"IP8 Protocol Data")
offset = 0
@piense
piense / uart tx issue.c
Created December 24, 2019 06:10
PIC32MX675F256H
#include <p32xxxx.h>
#include <stdint.h>
#include <sys/kmem.h>
uint8_t __attribute__((coherent)) buf[200];
void main()
{
uint32_t i;
#!/usr/bin/perl
#In a nutshell: grab the MLS search results page
#extract listings with RegEx (test it with https://regex101.com/)
#check results against a local SQLite database for changes or additions
#send out updates via a gmail account and smtp
#run this script with a cron job
use strict;