Skip to content

Instantly share code, notes, and snippets.

View andrewpong's full-sized avatar
🚀
Boom!

Andrew Pong andrewpong

🚀
Boom!
View GitHub Profile
@andrewpong
andrewpong / saveAmazonCartItems.js
Last active October 11, 2023 00:27 — forked from MichaelLawton/deleteAmazonSavedItems.js
Saves all Amazon shopping cart items for later. It will only save visible items. To use paste code in developer console (Ctrl+Shift+J or Cmd+Opt+J in Chrome) then press enter.
function saveCartItems() {
var query = document.querySelectorAll("#activeCartViewForm input[value='Save for later']")
if (query.length) {
query[0].click();
}
if (query.length > 1) {
setTimeout(saveCartItems,100);
}
else {
console.log('Finished');
@andrewpong
andrewpong / slack-files-downloader.sh
Created September 22, 2023 02:33 — forked from greird/slack-files-downloader.sh
Download all files from a Slack workspace export folder.
#!/bin/bash
#
# This script will browse a Slack export folder and download all files in a new /export folder
#
# HOW TO:
# 1. As a Workspace admin, download an export of your Slack history (https://www.slack.com/services/export)
# 2. Make sure you have jq installed (https://stedolan.github.io/jq/)
# 3. Place this file at the root of your Slack export folder, next to channels.json
# 4. Run `bash slack-files-downloader.sh` in your terminal
#
@andrewpong
andrewpong / destiny-autofish.ahk
Last active July 27, 2023 05:04 — forked from Sniffx/auto_fishing.ahk
afk fishing macro for destiny 2. You will need to install the Gdip_all library which you can find here: https://www.autohotkey.com/boards/viewtopic.php?t=6517 and the virtual controller from here: https://github.com/A2TC-YT/Tabbed-Out-AFK
;afk fishing macro for destiny 2. You will need to install ShinsImageScanClass.ahk from here: https://github.com/Spawnova/ShinsImageScanClass
;The virtual controller from the instructions here: https://github.com/A2TC-YT/Tabbed-Out-AFK
;Based on this fishing script: https://gist.github.com/AmJustS/d1eff6b0f78a48d99868c224e5dbbaaf
;F5 Starts the script
;F6 Stops the script
;F8 Completely exits the script
;Destiny 2 "Window Mode" must be set to "Windowed"
;Destiny 2 "Resolution" must be set to "1280x720"
title:Culling The Title to reclaim vault space.
description:Highlights known-decent rolls for a subpar SMG - compiled by @hakaslak.
// The Title
//notes:Probably not crap rolls for The Title. Not sure if PVE or PVP yet. Just need vault space.
dimwishlist:item=294129361&perks=1583705720,4049631843
dimwishlist:item=294129361&perks=1631667848,4082225868
dimwishlist:item=294129361&perks=3250034553,1561002382,1428297954,4082225868
dimwishlist:item=294129361&perks=3250034553,1561002382,1359896290,4082225868
dimwishlist:item=294129361&perks=1467527085,1561002382,1428297954,4082225868
#!/bin/bash
#probably needed to be run as plex user
export LD_LIBRARY_PATH="/usr/lib/plexmediaserver"
export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/var/lib/plexmediaserver/Library/Application Support"
arg=$1
rtorrent_tv="/rtorrent/tv/"
union_tv="/union/tv/"
# Profile for all PowerShell hosts. (i.e. PowerShell, PoSh ISE, Visual Studio, VS Code, etc.)
# ===========
# Dot source modules
# Write-Host "Importing Profile modules from $(Join-Path(Split-Path -Parent $profile) 'Modules')..."
Write-Host "Imported" -NoNewLine
Push-Location $(Join-Path(Split-Path -Parent $profile) 'Modules')
'components', 'functions', 'aliases', 'exports' | Where-Object { Test-Path "$_.ps1" } |
ForEach-Object -process {
Write-Host " $_" -NoNewLine