This file contains 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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\exefile\shell\WindowsFirewall] | |
@="" | |
"MUIVerb"="Windows Firewall" | |
"icon"="%SystemRoot%\\system32\\FirewallControlPanel.dll,0" | |
"subcommands"="" | |
[HKEY_CLASSES_ROOT\exefile\shell\WindowsFirewall\Shell] | |
@="" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
require 'watir' | |
require 'selenium-webdriver' | |
require 'logger' | |
# Selenium::WebDriver::Error.constants | |
# => [:WebDriverError, :NoSuchElementError, :NoSuchFrameError, ...] | |
def rescue_every_single_goddamn_webdriver_error | |
selenium_errors = Selenium::WebDriver::Error.constants.map do |e_symbol| | |
Selenium::WebDriver::Error.const_get(e_symbol) |
This file contains 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
<!-- | |
Note that this is a very rough, incomplete prototype. | |
More info on how to possibly leverage it here: https://github.com/tumblr/docs/issues/49 | |
--> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
{MobileAppHeaders} |
This file contains 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
require 'base64' | |
require 'fastimage' | |
# This is not raster-to-vector conversion; this is putting a raster in a vector | |
# suit. If you find yourself in need of this information, something is very | |
# wrong. Something is very wrong. | |
def embed_raster_image_in_svg(input_image ="raster.jpg", | |
output_image="raster_in_vector.svg") | |
dimensions = FastImage::size(input_image) |
This file contains 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
module Enumerable | |
# Sources: | |
# - https://stackoverflow.com/a/15442966/797772 | |
# - https://rubygems.org/gems/vex/versions/0.6.2 | |
def stable_sort_by | |
sort_by.with_index { |x,idx| [yield(x), idx] } | |
end | |
# def stable_sort_by |
This file contains 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 bash | |
# Steps used September 2021 to get Zoneminder working on Ubuntu 18.04 with a | |
# Reolink RLC-410W camera. | |
# Install dependencies: | |
sudo apt-get install tasksel | |
sudo tasksel install lamp-server |
This file contains 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
require 'watir' | |
require 'webdrivers/geckodriver' | |
# Source: | |
# <https://github.com/SeleniumHQ/selenium/issues/7796#issuecomment-555833317> | |
# Find your Firefox profile's directory by opening 'about:support' in the | |
# browser and scrolling down to the 'Profile Directory' field. | |
# | |
# Alternately, to create a new profile, go to 'about:profiles' and click |
This file contains 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
# NOTE: The Edge version in use here is: | |
# `92.0.902.15 (Official build) beta (64-bit)` | |
gem 'selenium-webdriver', '=4.0.0.beta4' | |
require 'selenium-webdriver' | |
gem 'watir', '~> 6.19' | |
require 'watir' | |
# gem 'webdrivers', '~> 4.6' # Edge not supported on Linux as of latest release | |
# require 'webdrivers' |
This file contains 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
// ==UserScript== | |
// @name Etsy.com - Mute Deceptive Search Result Ads | |
// @author snarp | |
// @version 0.3 | |
// @description Hides the difficult-to-identify ads in Etsy search results. | |
// @run-at document-idle | |
// @include https://www.etsy.com/*/search?q=* | |
// @include https://www.etsy.com/search?q=* | |
// @grant none | |
// @icon https://www.etsy.com/images/favicon.ico |