Skip to content

Instantly share code, notes, and snippets.

@miketweaver
miketweaver / noFriends.py
Last active March 26, 2024 16:24
Solve the Serial communication for the BsidesSLC 2019 Badge
#!/usr/bin/python
#License
#Copyright 2019 Mike Weaver
#
#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 WIT
@miketweaver
miketweaver / keybase.md
Created January 28, 2020 22:04
keybase.md

Keybase proof

I hereby claim:

  • I am miketweaver on github.
  • I am bashninja (https://keybase.io/bashninja) on keybase.
  • I have a public key whose fingerprint is 1C23 13CE 662F 96C0 8F99 9591 A15F CCF2 09D1 3712

To claim this, I am signing this object:

@miketweaver
miketweaver / scandir.cpp
Last active May 24, 2020 17:54
UnRaid Filesystem Issues
#include <stdio.h>
#include <stdlib.h>
#include <dirent.h>
int
main(void)
{
struct dirent **namelist;
int n;
@miketweaver
miketweaver / Pre-Made Wires
Last active June 19, 2020 19:26
Price Comparison
Big LCD Screen - 9 pins
----------
$1.78 - 9 Pin Female Connectors (50pcs)
https://www.aliexpress.com/item/32787421255.html
$4.68 - 9 Pin Wire with connectors 30cm (10pcs)
https://www.aliexpress.com/item/32713035873.html
Small LCD Screen - 4 pins
----------
$1.35 - 4 Pin Female Connectors (50pcs)
@miketweaver
miketweaver / homeseer-hs_wd200plus.groovy
Created June 22, 2021 16:48
homeseer-hs_wd200plus.groovy
/**
* HomeSeer HS-WD200+ Dimmer
*
* Copyright 2019 Ben Rimmasch
*
* Modified from the work by DarwinsDen device handler for the WD100 version 1.03 and from the work by HomeSeer for the HS-WD200+
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at: