Skip to content

Instantly share code, notes, and snippets.

View Wingman4l7's full-sized avatar

Wingman4l7

  • Boston, MA
View GitHub Profile
@egel
egel / auto-remove-sublime-license-popup
Last active April 14, 2025 09:58
Auto-remove Sublime's license popup
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sublime_plugin
import subprocess
from time import sleep
import sys
cl = lambda line: subprocess.Popen(line, shell=True, stdout=subprocess.PIPE).communicate()[0].strip()
log = lambda message: sys.stderr.write("Log: %s\n" % message)
@CrowderSoup
CrowderSoup / drowningbot.js
Created August 20, 2015 14:02
A bot to play "Drowning in Problems" for you. http://game.notch.net/drowning/
var interval = setInterval(function(){
var aTags = document.getElementsByTagName("a");
// Bail out if we didn't find any anchor tags.
if(aTags.length <= 0) {
return;
}
// Get the IDs of the tags we're going to click
var aTagIds = [];
@tomschr
tomschr / test_mock.py
Last active January 12, 2024 21:45
Example of mocking os.path.isfile
#!/usr/bin/env python3
#
# Use py.test:
# $ pytest test_mock.py
from unittest.mock import patch
import os.path
def my_isfile(filename):
@guylaor
guylaor / gist:3eb9e7ff2ac91b7559625262b8a6dd5f
Created November 23, 2016 20:27
Installing Selenium with Python 3 on mac
Install python 3
create a virtualenv and then
pip install selenium
then install chrome driver:
brew install chromedriver
to test, run this script - notice the location of the chrome driver
@koenrh
koenrh / gcp-gpu-vm-hashcat.md
Last active November 24, 2024 21:49
Running Hashcat on Google Cloud's new GPU-based VMs

Running Hashcat on Google Cloud's GPU-based VMs

In February 2017, Google announced the availability GPU-based VMs. I spun up a few of these instances, and ran some benchmarks. Along the way, I wrote down the steps taken to provision these VM instances, and install relevant drivers.

Update April 2019: Updated instructions to use instances with the Tesla T4 GPUs.

@roycewilliams
roycewilliams / hashcat-nvidia-power-performance-per-watt-adjustment.txt
Last active February 7, 2022 07:21
hashcat-nvidia-power-performance-per-watt-adjustment.txt
------------------------------------------------------------------------------
You can drop the power on NVIDIA cards and improve performance per watt.
Credit for the idea to atom on the 1080s:
https://docs.google.com/spreadsheets/d/1B1S_t1Z0KsqByH3pNkYUM-RCFMu860nlfSsYEqOoqco/edit#gid=1307275979
On the GTX 970s, you can drop to 150 and still get 99.96% of the same
performance! This saves power (and heat?). And there is evidence that the
performance difference varies per hash and per attack (masks, rules, etc.)
import pytesseract
import sys
import argparse
try:
import Image
except ImportError:
from PIL import Image
from subprocess import check_output

Disable Device Enrollment Notification on Mac.md

Restart the Mac in Recovery Mode by holding Comment-R during restart

Open Terminal in the recovery screen and type

csrutil disable
@andyrbell
andyrbell / scanner.sh
Last active March 28, 2025 17:57
Make a pdf look scanned using ImageMagick
# use ImageMagick convert
# the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf
convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf
@yassineaboukir
yassineaboukir / List of API endpoints & objects
Last active April 29, 2025 12:54
A list of 3203 common API endpoints and objects designed for fuzzing.
0
00
01
02
03
1
1.0
10
100
1000