csrutil disable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pytesseract | |
| import sys | |
| import argparse | |
| try: | |
| import Image | |
| except ImportError: | |
| from PIL import Image | |
| from subprocess import check_output |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ------------------------------------------------------------------------------ | |
| 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.) |
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # | |
| # Use py.test: | |
| # $ pytest test_mock.py | |
| from unittest.mock import patch | |
| import os.path | |
| def my_isfile(filename): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(function(){document.body.appendChild(document.createElement('script')).src='http://blarb.com/external.js';})(); |