Skip to content

Instantly share code, notes, and snippets.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 26, 2024 14:44
Complete Recent Discord Quest

Complete Recent Discord Quest

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
  2. Join a vc
  3. Stream any window (can be notepad or something)
  4. Press Ctrl+Shift+I to open DevTools
  5. Go to the Console tab
  6. Paste the following code and hit enter:
let wpRequire;
@GMoncrieff
GMoncrieff / how_i_work.md
Last active April 26, 2024 14:22
How I do ML with geospatial data

How I do machine learning with geospatial data

I have a couple of AI/ML projects related to mapping things, often conservation related, with remote sensing data. Some details and packages will vary, but the process below describes how I generally approach these types of problems. Some of these tools I have only touched briefly, but I like them, and this is more an outline of how I would like to approach a new project than a retrospective look at my previous work.

We use AWS, so it makes sense to use datasets and services that are already hosted on AWS. The data discovery and loading part of this process would look somewhat different if we were using Azure and Planetary Computer, and very different if we were using GCP and Earth Engine.

Compute

All of my analysis will be done using python on an AWS VM in the same region as my data on S3, Probably using VSCode on Sagemaker or [JupyterLab](https://docs.aws.amazo

@neil1023
neil1023 / bjs_coupon_clipper.js
Last active April 26, 2024 14:17
BJs Coupon Clipper
// This script can be run in the browser console
// Just navigate to https://www.bjs.com/myCoupons and execute the script
// This script will clip all the coupons on the current page
//
// Created on 10/13/22
let buttons = document.getElementsByClassName('mt-2 btn gray-btn');
for (let i = 0; i < buttons.length; i++) {
buttons[i].click();
}
@arthurbeggs
arthurbeggs / install_quartus17.sh
Created November 2, 2019 03:15
Install Quartus Prime Lite 17.0 in Ubuntu
#!/bin/bash
################################################################################
### Install Quartus and ModelSim ###
################################################################################
# Source code at https://github.com/arthurbeggs/scripts #
################################################################################
# #
# Based on https://github.com/jessebarreto/ConfigureWorkspace script. #
# #
@hibiyasleep
hibiyasleep / GodDrinksJava.java
Last active April 26, 2024 14:08
world.execute(me);
package goddrinksjava;
/**
* The program GodDrinksJava implements an application that
* creates an empty simulated world with no meaning or purpose.
*
* @author momocashew
* @lyrics hibiyasleep
*/
@wojtekmaj
wojtekmaj / jest-to-vitest.sh
Last active April 26, 2024 14:08
Automatically migrate Jest project to Vitest
#!/bin/bash
# Ensure we're working on the latest version of the main branch
git switch main
git fetch
git pull
# Create a new branch
git switch -c vitest
@ksmithut
ksmithut / .dockerignore
Last active April 26, 2024 14:04
Node Docker Compose nodemon
node_modules
@doge
doge / leave.py
Last active April 26, 2024 13:59
Mass Leave Discord Servers
import discord
client = discord.Client()
token = "your-client-token"
whitelist = [
# discord guild ids you don't want to leave
123456789012345678,
876543210987654321
]