Skip to content

Instantly share code, notes, and snippets.

View dooderstem's full-sized avatar
🐥
Better Than Yesterday

DOODER(Michael Smith) dooderstem

🐥
Better Than Yesterday
  • Ohio, USA
  • 13:35 (UTC -04:00)
View GitHub Profile
@dooderstem
dooderstem / shell.js
Created August 16, 2023 05:13
shell & prompt script
const fs = require("node:fs");
const sh = require("shelljs");
if (!sh.which("git")) {
sh.echo("Sorry, this script requires git");
sh.exit(1);
}
let schema = new CreateSchema();
prompter();
@dooderstem
dooderstem / index.js
Last active December 23, 2023 15:50
Async JavaScript - Creating promises and handling promise chains.
/**
* @author doodercodes
* @description Async JavaScript - Creating promises and handling promise chains.
* @description JAVASCRIPT WAITS FOR NOTHING!
* @date 08/03/2023
**/
const cart = randCart();
createOrder(cart)
@dooderstem
dooderstem / README.md
Last active August 19, 2023 19:48
vscode extension recommendations
  1. Download this gist.
    1. You can use the git cli tool or download and extract the ZIP from the "Download ZIP" button at the top right of this gist
  2. Open the extracted contents from this repo.
    1. in vsc, one quick way to do this is navigating to File->Open Folder in the menu bar and locating the directory.
  3. Create /.vscode/ and move extensions.json there.
    1. For example, if your download path was C:/Users/User/Desktop/dooder, then place it here: C:/Users/User/Desktop/dooder/.vscode/extensions.json
  4. On Windows, ctrl+shift+p brings up the command pallet by default. start by typing:

image

@dooderstem
dooderstem / Jimp.js
Last active July 10, 2023 06:07
The "JavaScript Image Manipulation Program" :-) #JIMP #Node #JavaScript
// npm install --save jimp
var Jimp = require("jimp");
// Example usage (Promise will never resolve if callback is passed):
// open a file called "lenna.png"
Jimp.read("lenna.png", (err, lenna) => {
if (err) throw err;
lenna
.resize(256, 256) // resize
@dooderstem
dooderstem / OperaGX.md
Last active April 26, 2024 05:14
List of Useful Opera/OperaGX URLs #OperaGX #Opera

Opera | OperaGX

made by /r/operabrowser/wiki/opera, pasted by me.

List of Useful Opera URLs

These are directs to Opera/GX's settings and customization pages for faster navigation. I found it handy to bookmark some of the ones that I use most often.

I should organize/section these, but some URLs are strictly for Opera and some only works for OperaGX.

General

@dooderstem
dooderstem / rpc.py
Last active July 10, 2023 00:58
discord_rpc
# https://pypi.org/project/discord-rpc.py/
# pip install discord-rpc.py
import discord_rpc
import time
if __name__ == '__main__':
def readyCallback(current_user):
print('Our user: {}'.format(current_user))
def disconnectedCallback(codeno, codemsg):
@dooderstem
dooderstem / .sh
Last active July 10, 2023 00:58
Windows Machine Setup
# manage corsair preferables
choco install icue
# Browsers
choco install googlechrome
choco install opera-gx
# Auth
choco install bitwarden
choco install bitwarden-cli
# Productivity
choco install notion
# https://pypi.org/project/pypresence/
# pip install pypresence
# Only Python versions 3.8 and above are supported.
from pypresence import Presence
import time
client_id = '64567352374564' # Fake ID, put your real one here
RPC = Presence(client_id) # Initialize the client class
RPC.connect() # Start the handshake loop
@dooderstem
dooderstem / gimpfu.py
Last active July 21, 2023 07:32
gimpfu
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from gimpfu import *
import os, sys
import datetime
today = datetime.date.today() # Get today's date
formatted_date = today.strftime("%d/%m/%Y") # Format the date as DD/MM/YYYY
@dooderstem
dooderstem / list-my-gists.sh
Last active July 10, 2023 00:58
SHELL SCRIPTS
# https://github.com/cslee/list-my-gists
#!/bin/bash
public_only=0
secret_only=0
public_and_secret=0
signature=1
while test $# -gt 0; do
case "$1" in