Skip to content

Instantly share code, notes, and snippets.

View SupertigerDev's full-sized avatar
🏠
Working from home

Supertiger SupertigerDev

🏠
Working from home
View GitHub Profile
@SupertigerDev
SupertigerDev / postgress-bitwise.md
Last active October 14, 2023 10:01
Postgress bitwise

postgres bitwise add permission

Create the table

CREATE TABLE test (
	id serial PRIMARY KEY,
	perm INT NOT NULL
);
@SupertigerDev
SupertigerDev / index.js
Created February 24, 2023 22:25
discordrpcgenerator Spotify RPC work with discord.js-selfbot-v13
client.on("ready", () => {
const presence = createSpotifyRPC(client)
.setAssetsLargeImage("spotify:f2ed07272dec9cfc3b6805e9c59eac3391a59bed")
.setAssetsSmallImage("spotify:f2ed07272dec9cfc3b6805e9c59eac3391a59bed")
.setDetails("RpcGenerator - Demo")
.setState("Rpc Generator")
client.user.setPresence(presence.toDiscord())
})
@SupertigerDev
SupertigerDev / smooth-overwatch.md
Last active November 21, 2022 11:16
Make Overwatch 2 smooth: MSI mode utility, deadlock, Interrupt affinity policy tool
@SupertigerDev
SupertigerDev / latency.md
Last active February 9, 2022 11:39
Get better latency [Ryzen (intel?), WIN10 (11?)]

Cool Story

So, I always had this problem with my PC where my mouse latency felt different every time I restarted my PC. It felt like velocity was added to my mouse every time I moved it and at random values. I tried lots of different things and nothing seemed to help me. This kind of problem is also hard to troubleshoot since it's sometimes really hard to detect if it's fixed or not unless you play a game for a bit. This made me lose a lot of Overwatch games :(

When moving your mouse instantly from one side to another, you can see the delay. It should be INSTANT, but it is not.

What Didn't help

• New Mouse
• Different USB Port
• Interrupt Affinity Policy Tool
• ISLC

@SupertigerDev
SupertigerDev / bitwise.js
Created December 14, 2019 17:26
bitwise permissions example
// list of permissions
const ADMIN = 2;
const SEND_MESSAGE = 1;
// my current permission
let myPerms = 0;
console.log(containsPerm(ADMIN))
//addPerm(ADMIN)
addPerm(SEND_MESSAGE)