Skip to content

Instantly share code, notes, and snippets.

Mike Weaver miketweaver

Block or report user

Report or block miketweaver

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@miketweaver
miketweaver / scandir.cpp
Last active May 24, 2020
UnRaid Filesystem Issues
View scandir.cpp
#include <stdio.h>
#include <stdlib.h>
#include <dirent.h>
int
main(void)
{
struct dirent **namelist;
int n;
View 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 / noFriends.py
Last active Mar 9, 2019
Solve the Serial communication for the BsidesSLC 2019 Badge
View noFriends.py
#!/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
View bundle-image.html
{{ $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 / build.sh
Last active Feb 2, 2019
building EmptyEpsilon for Android - NOT WORKING YET
View build.sh
## 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
View lanparty.sh
#!/bin/bash
# LANParty toolset
# Written by @Pips801, tweaked by @_bashNinja
#
#
#container names
STEAMCACHE="Steam"
ORIGINCACHE="Origin"
@miketweaver
miketweaver / config.boot
Created Feb 28, 2018
VyOS VPN Config.boot
View config.boot
firewall {
all-ping enable
broadcast-ping disable
config-trap disable
ipv6-receive-redirects disable
ipv6-src-route disable
ip-src-route disable
log-martians enable
receive-redirects disable
send-redirects enable
@miketweaver
miketweaver / digitalocean-openvpn-guide.md
Last active Feb 12, 2018
Digital Ocean OpenVPN commands
View digitalocean-openvpn-guide.md
View setup-nightshade.md

Install NightShade

Get NightShade Files

git clone https://github.com/UnrealAkama/NightShade
cd NightShade

Setup Pip and Postgres

sudo apt update
@miketweaver
miketweaver / cleanup.bat
Last active Dec 20, 2018
Windows VM Cleanup before Snapshot
View cleanup.bat
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
You can’t perform that action at this time.