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:34 (UTC -04:00)
View GitHub Profile
@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
@dooderstem
dooderstem / Justabot.js
Last active September 20, 2023 16:32
DiscordBot
// Package things needed for the bot & commands.
//const Discord = require('discord.js');
//const client = new Discord.Client({partials: ['MESSAGE', 'CHANNEL', 'REACTION'], intents: [ Discord.Intents.FLAGS.GUILDS, Discord.Intents.FLAGS.GUILD_MESSAGES, Discord.Intents.FLAGS.GUILD_MESSAGE_REACTIONS, Discord.Intents.FLAGS.GUILD_MEMBERS ]});
const {
Client,
GatewayIntentBits,
Partials,
ActivityType,
} = require('discord.js');
const client = new Client({
@dooderstem
dooderstem / node.js
Last active July 10, 2023 00:58
node-cheatsheet
/* *******************************************************************************************
* SYNOPSIS
* http://nodejs.org/api/synopsis.html
* ******************************************************************************************* */
var http = require('http');
// An example of a web server written with Node which responds with 'Hello World'.
// To run the server, put the code into a file called example.js and execute it with the node program.
@dooderstem
dooderstem / README.md
Last active July 10, 2023 00:58
README Badges
@dooderstem
dooderstem / rgbcolor.js
Last active July 10, 2023 00:58
rgbcolor.js
const fetch = require("node-fetch");
const { createCanvas } = require("canvas");
const RGBColor = require("rgbcolor");
const DataImageAttachment = require("dataimageattachment");
const fs = require("fs");
// https://github.com/meodai/color-names
let api = `https://api.color.pizza/v1/?values=`;
let Canvas = (rgbcolor) => {