Skip to content

Instantly share code, notes, and snippets.

View tomesparon's full-sized avatar

Tom Esparon tomesparon

View GitHub Profile
@tomesparon
tomesparon / clicknext.js
Last active December 20, 2024 10:55
bookmarklet clicker
javascript:!function(){let e=parseInt(prompt("Enter the desired page number:"));if(!isNaN(e)&&e>0){let t=0,n=function(){t<e-1&&(document.getElementById("NextPage_websys_CustomTypeItem_List").click(),t++,setTimeout(n,100))};n()}else alert("Invalid page number.")}();
@tomesparon
tomesparon / in console js
Created December 17, 2024 16:24
Click next on a page with nextpages
// Function to click the "Next" button
function clickNextPage() {
var nextButton = document.getElementById("nextpage"); // Adjust this to match the actual ID or method to find the button
if (nextButton) {
nextButton.click();
} else {
console.log("Next button not found");
}
}
@tomesparon
tomesparon / use in ISE
Created December 17, 2024 16:06
Auto clicker
# Add necessary types for mouse events
Add-Type @"
using System;
using System.Runtime.InteropServices;
public class Mouse {
[DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]
public static extern void mouse_event(long dwFlags, long dx, long dy, long cButtons, long dwExtraInfo);
public const int MOUSEEVENTF_LEFTDOWN = 0x02;
public const int MOUSEEVENTF_LEFTUP = 0x04;
}
@tomesparon
tomesparon / docx-specific-reg.reg
Created November 20, 2024 15:25
Add Windows context menu to convert MS Word (docx) to Markdown file to
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Classes\SystemFileAssociations\.docx]
[HKEY_CURRENT_USER\SOFTWARE\Classes\SystemFileAssociations\.docx\shell]
[HKEY_CURRENT_USER\SOFTWARE\Classes\SystemFileAssociations\.docx\shell\Pandoc]
@=hex(2):50,00,61,00,6e,00,64,00,6f,00,63,00,20,00,74,00,6f,00,20,00,4d,00,44,\
00,00,00
"Icon"=hex(2):43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,\
@tomesparon
tomesparon / readme.md
Created November 6, 2024 14:31
CLI Tools I Use ( Windows / Linux )
  • oh-my-bash
  • oh-my-posh
  • fzf
@tomesparon
tomesparon / readme.md
Created November 6, 2024 14:13
Software I Use (windows)
  • scoop.sh - Best package manager

List from scoop list

Name Version
7tt
7zip 24.08
audacity 3.6.4
#!/bin/bash
iatest=$(expr index "$-" i)
#######################################################
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me
#######################################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
// In a terminal:
code --install-extension aaron-bond.better-comments
code --install-extension abhinavk99.codewall
code --install-extension AdamCaviness.theme-monokai-dark-soda
code --install-extension alefragnani.Bookmarks
code --install-extension alexkrechik.cucumberautocomplete
code --install-extension axiomaticstudios.one-monokai-80s
code --install-extension azemoh.one-monokai
code --install-extension be5invis.vscode-custom-css
code --install-extension bierner.markdown-mermaid
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',