Skip to content

Instantly share code, notes, and snippets.

View AnthonyVadala's full-sized avatar
🏳️‍🌈
I may be slow to respond.

Anthony Vadala AnthonyVadala

🏳️‍🌈
I may be slow to respond.
View GitHub Profile
@AnthonyVadala
AnthonyVadala / keybase.md
Created June 8, 2023 05:47
Record for verifying keybase.io identity

Keybase proof

I hereby claim:

  • I am anthonyvadala on github.
  • I am anthonyvadala (https://keybase.io/anthonyvadala) on keybase.
  • I have a public key whose fingerprint is F9C2 52F0 84CB 72D2 6AB0 B640 A36F F39A 27F6 F938

To claim this, I am signing this object:

@AnthonyVadala
AnthonyVadala / Twitter UI Filters.md
Last active May 17, 2024 18:05
Filter various UI elements on Twitter to improve the user experience

Copy and paste the filters you want below into an extension such as uBlock Origin's My filter's page to remove ui elements from Twitter.

# Hide the "What's happening" section from the right sidebar
x.com##*[aria-label="Timeline: Trending now"]

# Hide the "Subscribe to Premium" section from the right sidebar
x.com##.r-3pj75a.r-1mmae3n.r-uaa2di.r-eqz5dr.r-1habvwh.css-175oi2r

# Hide the "Explore" button from the left sidebar
@AnthonyVadala
AnthonyVadala / Most_Used_Colors.py
Created December 27, 2022 05:22
Python script that accepts a user inputted path/image, analyzes the colors used, creates a copy of the original image with circles showing the three most cominant colors in the image, and saves it as the original file name appended with "_primarycolors.png"
import cv2
import numpy as np
from sklearn.cluster import KMeans
# function to draw small circles at the bottom right corner of the image
def draw_circles(image, colors):
height, width, _ = image.shape
circle_radius = int(min(height, width) * 0.05) # radius of the circles is 5% of the minimum of height and width
for i, color in enumerate(colors):
center_x = int(width * 0.9)
@AnthonyVadala
AnthonyVadala / Dungeondraft .thumbnails Location on macOS.md
Created November 17, 2021 04:47
Location of the .thumbnails folder for Dungeondraft on macOS

.thumbnails Folder Path

~/Library/Application Support/Dungeondraft/.thumbnails

As of Dungeondraft v1.0.2.4

@AnthonyVadala
AnthonyVadala / steamsysteminformation.txt
Last active May 17, 2024 18:11
Steam System Information
Computer Information:
Manufacturer: NZXT, Inc.
Model: System Product Name
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: 13th Gen Intel(R) Core(TM) i9-13900K
CPU Family: 0x6
@AnthonyVadala
AnthonyVadala / AmazonSmile.user.js
Created October 14, 2019 18:56
Always use smile.amazon.com instead of www.amazon.com
// ==UserScript==
// @name Amazon Smile
// @namespace tt
// @include https://*.amazon.com*
// @version 1.0
// @grant none
// ==/UserScript==
if (location.hostname !== 'smile.amazon.com') {
location.hostname = 'smile.amazon.com';
@AnthonyVadala
AnthonyVadala / File_Listing.ps1
Created August 16, 2019 14:52
PowerShell script to create a list of clickable URLs based on relative postion of files in a folder created for https://drv.tw/
# Ask user for directory input
$directorypath = Read-Host 'What is the directory path you want to create links for? (ex. C:\Users\UserName\OneDrive\Foldername)'
# Gets relative location for all files in given directory and saves to .txt file
Get-ChildItem -Path $directorypath -Recurse | Resolve-Path -Relative | Out-File index.html
# Reads index.html file to manipulate data
$filename = "index.html"
Get-ChildItem -File -Path $directorypath -Filter $filename -Recurse | ForEach {
# Removes leading .\
@AnthonyVadala
AnthonyVadala / VMware Fusion Export.md
Created August 14, 2019 12:53
Export a VMware Fusion VM to OVF format

Navigate to OVF Export Tool

cd /Applications/VMware\ Fusion.app/Contents/Library/VMware\ OVF\ Tool/

Running to OVF Export Tool

./ovftool ~/Virtual\ Machines.localized/[VMware_Fusion_VM_Name].vmwarevm/[VMware_Fusion_VM_Name].vmx ~/{path_to_export_to}/exported_vm_name.ova
@AnthonyVadala
AnthonyVadala / Auto-Repair.bat
Last active July 2, 2019 17:43
A simple batch script to fix most simple Windows issues (Run as Administrator)
::Hacker Colors
color 0a
::Checks if script is minimized and relaunches if not
if not "%minimized%"=="" goto :minimized
set minimized=true
start /min cmd /C "%~dpnx0" %*
goto :EOF
:minimized
@AnthonyVadala
AnthonyVadala / Docker CE Download Links.md
Created April 6, 2019 13:06
Download Docker CE without logging into Docker Hub