Skip to content

Instantly share code, notes, and snippets.

View Wingman4l7's full-sized avatar

Wingman4l7

  • Boston, MA
View GitHub Profile
import pytesseract
import sys
import argparse
try:
import Image
except ImportError:
from PIL import Image
from subprocess import check_output
@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.)
@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.

@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
@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):
@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 = [];
@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)
@mohsen1
mohsen1 / download.js
Last active March 30, 2019 05:13
Download Chromecast backgrounds
var https = require('https');
var fs = require('fs');
var url = 'https://raw.githubusercontent.com/dconnolly/chromecast-backgrounds/master/backgrounds.json';
Array.prototype.getLast = function() {
return this[this.length - 1];
};
function logFail(err){
console.log('Failed!');
@taptapdan
taptapdan / bookmarklet-load-external.js
Created May 28, 2014 23:05
How to load an external Javascript file in a bookmarklet.
javascript:(function(){document.body.appendChild(document.createElement('script')).src='http://blarb.com/external.js';})();
@crisu83
crisu83 / dip_bot.js
Created May 5, 2014 11:03
Small script that will help you play "Drowning in Problems" by Notch http://game.notch.net/drowning/#
/*
Open up the developer console in your browser, paste the script below, press enter and enjoy!
*/
var anchors, i;
setInterval(function() {
anchors = document.getElementsByTagName('a');
for (i = 0; i < anchors.length; i++) {
anchors[i].click();
}