Skip to content

Instantly share code, notes, and snippets.

View mykey's full-sized avatar
😄
I think you have tagged me in error :)

Michael mykey

😄
I think you have tagged me in error :)
View GitHub Profile
@mxcl
mxcl / uninstall_homebrew.sh
Created August 26, 2011 11:25
Uninstall Homebrew
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e

Keybase proof

I hereby claim:

  • I am mykey on github.
  • I am michaelcox (https://keybase.io/michaelcox) on keybase.
  • I have a public key ASDYqLTAC_F74gqFWdiFtOCRQRqHME-HLf2_IMlUYgqCWAo

To claim this, I am signing this object:

@monoxgas
monoxgas / Invoke-DCSync.ps1
Last active June 24, 2024 21:42
What more could you want?
This file has been truncated, but you can view the full file.
function Invoke-DCSync
{
<#
.SYNOPSIS
Uses dcsync from mimikatz to collect NTLM hashes from the domain.
Author: @monoxgas
Improved by: @harmj0y
@jdennes
jdennes / buienalarm-scraper-details.md
Last active February 17, 2022 19:20
Documents how to scrape Buienalarm.nl (until their website changes)

Buienalarm.nl scraper details

A request to http://www.buienalarm.nl/location/rotterdam produces a chart that shows the projected rainfall for the next two hours in Rotterdam:

buienalarm

That page includes the following JavaScript that represents the data used to build the chart:

<script type="text/javascript">
@jgamblin
jgamblin / burpsettings.json
Created April 17, 2017 13:04
Burp Settings JSON
{
"project_options":{
"connections":{
"hostname_resolution":[],
"out_of_scope_requests":{
"drop_all_out_of_scope":false,
"exclude":[
{
"enabled":true,
"file":"logout",
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active September 14, 2024 10:58 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export to tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.

@henfiber
henfiber / KB-Buying-guide-EU.md
Last active September 5, 2024 17:20
Buying keyboards and keyboard components from EU

Europe

  • SkinFlint : Price comparison site which has some nice filtering options per switch type etc. Searches for offers in UK, Germany, Poland and Austria
  • mykeyboard.eu : Keyboards, keycaps and accessories. Based in Belgium.
  • candykeys.com : European Store selling Vortex, Leopold, KBP, Anne Pro keyboards, keycap sets and components (ISO + ANSI). Based in Germany, ships to EU.
  • falba.tech : custom wooden bamboo cases, and some acrylic and carbon ones. Switch packs (65 browns at 48EUR). Other parts for the GH60, Atreus, ErgoDox. Also Microcontrollers, diodes, leds etc.
  • 42keebs.eu - Mostly PCBs, tools and accessories. Located in Czech Republic.
  • KEYGEM : Switches, Keycaps, lubes, cables, DIY kits and deskmats. Based in Germany, ships to the EU and worldwide.
  • [Eloquent Clicks - Custom Mechanical Keyboard Store](https://www.eloquen
import json
import csv
import sys
from datetime import datetime
import os
def has_keys(dictionary, keys):
return all(key in dictionary for key in keys)
def make_reader(in_json):
@devdattaT
devdattaT / LocationHistory.md
Last active September 16, 2024 04:35
How to Visualize your Google Location History

Google is extremely transparent about the Location History it has on you. You can check it out on the timeline feature in the Google Maps application on the phone, or on https://www.google.com/maps/timeline It is possible that you have that turned off, and in that case, consider yourself lucky.

If there is data there, you can view it online, or Download and Analyze it yourself.

Note: The conversion script has been updated on 2024-06-24, to match the updated format which is now generated by Google Takeout

@ScribbleGhost
ScribbleGhost / Add Process all files in folder to the context menu.reg
Created October 11, 2020 15:49
Add batch file to the context menu - Process all files in folder
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\Process all files in folder]
@="&Process all files in folder"
[HKEY_CLASSES_ROOT\Directory\shell\Process all files in folder\command]
@="\"C:\\Scripts\\Process all files in folder.bat\" \"%1\""