Skip to content

Instantly share code, notes, and snippets.

@felippe-regazio
felippe-regazio / tt-seek-and-destroy.js
Created November 14, 2022 21:00
Automatically unfollow Twitter users by a given criteria
/**
* ABOUT
*
* This is a Twitter NO-API/Dependency-Free follower sniffer and auto-blocker.
*
* This function performs automatic bulk blocking with NO-API
* and NO-external-dependencies to run. You must run this snippet
* directly on your Console, it will sniff your followers list
* search for previous given keywords, if found on username or description,
* the user will be automatically blocked.
@MiyacoGBF
MiyacoGBF / 01_NieR_FAR.md
Last active May 9, 2024 20:17
How to Install FAR, HD Texture Pack, and ReShade (GShade) for NieR:Automata on Linux
@gyopiazza
gyopiazza / schema.ts
Last active May 9, 2024 20:17
Multi-tenant with Drizzle ORM (multiple sqlite databases) - PoC
import { integer, sqliteTableCreator, text } from 'drizzle-orm/sqlite-core'
const sqliteTable = (tenant?: string) =>
sqliteTableCreator(name => (tenant ? `${tenant}_${name}` : name))
export const users = sqliteTable()('users', {
id: integer('id', { mode: 'number' }).primaryKey({ autoIncrement: true }),
name: text('name'),
})
@JamieMason
JamieMason / unfollow.js.md
Last active May 9, 2024 20:16
Unfollow everyone on twitter.com

Unfollow everyone on twitter.com

  1. Go to https://twitter.com/YOUR_USER_NAME/following
  2. Open the Developer Console. (COMMAND+ALT+I on Mac)
  3. Paste this into the Developer Console and run it
// Unfollow everyone on twitter.com, by Jamie Mason (https://twitter.com/fold_left)
// https://gist.github.com/JamieMason/7580315
//
@radzhome
radzhome / json_schema_to_django_model.py
Last active May 9, 2024 20:16
Converts json schema to django models.py
"""
Json Schema to Django Model
"""
import json
import argparse
import logging
import os
def determine_model_name(model_id=None, filename=None):
@maxtruxa
maxtruxa / Antonyms.md
Last active May 9, 2024 20:14
A list of common terms used in programming and their respective antonyms.

Antonym List

Note: The table headings (positive/negative) are not necessarily meaningful.

Positive Negative
acquire release
add remove (e.g. an item), subtract (arithmetic)
advance retreat
allocate deallocate (correct), free (common)
allow deny
@wojteklu
wojteklu / clean_code.md
Last active May 9, 2024 20:15
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@notnotrobby
notnotrobby / cgp.md
Last active May 9, 2024 20:12
List of free resources to study computer graphics programming.
@Lars418
Lars418 / gist:53f10b2fc9e488eb038cd3382b5e774d
Created August 18, 2021 18:00
Alle Bilder von einer Anzeige von ebay-kleinanzeigen herunterladen
/**
* HOWTO: Copy whole file, open devtools on page (F12 / Ctrl + Shift + i) and paste it into the console
* Chrome might ask you to allow downloading multiple images.
*/
// credits for forceDownload: https://stackoverflow.com/a/49886131/8463645
function forceDownload(url, fileName){
var xhr = new XMLHttpRequest();
xhr.open("GET", url, true);
xhr.responseType = "blob";