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 / 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:
@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 / 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 / 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 / PassswordCTF2017.md
Last active October 24, 2019 17:56
PCrack CTF Post-Mortem - 2017

PCrack CTF Post-Mortem - 2017

Thank you to everyone who played this year at @SAINTCON! We had an awesome time and loved seeing everyone heat up their rooms and test their skills. As far as I'm aware, there was only one graphics card killed in this endeavor (sorry about that @d4rkm4tter).

Scores

SAINTCON Players:

1st - 53,371,688 - leeroy

@miketweaver
miketweaver / build.sh
Last active February 2, 2019 19:17
building EmptyEpsilon for Android - NOT WORKING YET
## This is meant to be run manually, not as a script
sudo apt update
sudo apt dist-upgrade
sudo reboot
sudo apt install unzip openjdk-8-jdk cmake
mkdir android && cd android
{{ $altText := .Get "alt"}}
{{ $caption := .Get "caption"}}
{{ $source := .Get "source"}}
{{ with $.Page.Resources.GetMatch (.Get "name") }}
<div class="post-image">
<figure>
<a href="{{.RelPermalink}}">
<img
srcset="
{{ (.Resize "320x").RelPermalink }} 320w,
@miketweaver
miketweaver / cleanup.bat
Last active December 20, 2018 14:02
Windows VM Cleanup before Snapshot
REM # -----------------------------------------------------------------
REM # This requires ultradefrag, and sdelete installed.
REM # cinst ultradefrag sysinternals -y
REM # run as Admin
REM # -----------------------------------------------------------------
net stop wuauserv
rmdir /S /Q C:\Windows\SoftwareDistribution\Download
mkdir C:\Windows\SoftwareDistribution\Download
net start wuauserv
#!/bin/bash
# LANParty toolset
# Written by @Pips801, tweaked by @_bashNinja
#
#
#container names
STEAMCACHE="Steam"
ORIGINCACHE="Origin"