Skip to content

Instantly share code, notes, and snippets.

@jcamp
jcamp / video-editors-opensource.md
Last active January 17, 2025 23:19
OpenSource Video Editors

How to Install Nvidia Drivers on Proxmox

  1. Your /etc/apt/sources.list should look like something like this:
deb http://ftp.us.debian.org/debian [bullseye, bookworm, etc] main contrib non-free

deb http://ftp.us.debian.org/debian [bullseye, bookworm, etc]-updates main contrib non-free

# security updates
deb http://security.debian.org [bullseye, bookworm, etc]-security main contrib
@tomkail
tomkail / ExtendedScriptableObjectDrawer.cs
Last active January 17, 2025 23:15
Displays the fields of a ScriptableObject in the inspector
// Developed by Tom Kail at Inkle
// Released under the MIT Licence as held at https://opensource.org/licenses/MIT
// Must be placed within a folder named "Editor"
using System;
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEngine;
@advaith1
advaith1 / intents.md
Last active January 17, 2025 23:15
Discord Gateway Intents Explainer

Intents Explainer

If you're wondering what Gateway Intents are, what Privileged Intents are, why your bot can't see statuses, or why your bot can't see member joins anymore, then this page should explain it to you!

if you do not know what intents are, please read this entire page

Intro

First, a short explanation of how bots work: bots can make requests over the REST (HTTP) API to retreive information and do actions, and they get real-time updates from Discord in the form of websocket gateway events. They can also fetch server members via the gateway.

Examples of gateway events you are probably familiar with are Message Create (a message was sent) and Guild Member Add (a user joined a server).

@Razz21
Razz21 / dense_tied.py
Created January 30, 2019 15:23
Tied weights version for tf.python.keras. Dense layer
from tensorflow.python.framework import tensor_shape
from tensorflow.python.eager import context
from tensorflow.python.framework import common_shapes
from tensorflow.python.framework import ops
from tensorflow.python.framework import tensor_shape
from tensorflow.python.keras import activations
from tensorflow.python.keras import backend as K
from tensorflow.python.keras import constraints
from tensorflow.python.keras import initializers
from tensorflow.python.keras import regularizers
@georgy7
georgy7 / extract_mbox_attachments.py
Last active January 17, 2025 23:12
Extract attachments from mbox file.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Modified.
# Original script source:
# http://blog.marcbelmont.com/2012/10/script-to-extract-email-attachments.html
# https://web.archive.org/web/20150312172727/http://blog.marcbelmont.com/2012/10/script-to-extract-email-attachments.html
# Usage:
# Run the script from a folder with file "all.mbox"
import torch
def mel_filterbank(
n_freqs,
f_min,
f_max,
n_mels,
sample_rate,
norm=None,
mel_scale="htk"
@LawfulLeah
LawfulLeah / PasteThisInF12Console.js
Last active January 17, 2025 23:08 — forked from bedros-p/patcherooni.js
AI Studio patch to actually get the features users want (remade and with new additions via the help of Gemini Flash 2.0, Gemini Flash 2.0 Thinking, and Gemini Experimental 1206)
/**
* Regular expression to identify the null checker function within MakerSuite's code.
* @type {RegExp}
*/
const NULL_CHECKER_REGEX = /function\(\){var a=new _\...,b=new ..;return _\.(..)\(a,..,1,b\)}/gm;
/**
* Default values for the control parameters.
* @type {object}
*/
@jneuendorf-i4h
jneuendorf-i4h / download_vsix.py
Created January 16, 2025 20:38
Download VSIX from VSCode Marketplace URL (e.g. for VSCodium if OpenVSX does not provide the extension)
import re
# Attempt to import requests and handle if it's missing
try:
import requests
requests_available = True
except ImportError:
requests_available = False
def create_download_url():