Skip to content

Instantly share code, notes, and snippets.

View TeamDman's full-sized avatar
🌜
o/

TeamDman

🌜
o/
View GitHub Profile
@rparrett
rparrett / repeat.rs
Last active January 11, 2024 22:29
Bevy 0.12 2d Repeating Image
use bevy::{
prelude::*,
render::{
mesh::VertexAttributeValues,
texture::{ImageAddressMode, ImageLoaderSettings, ImageSampler, ImageSamplerDescriptor},
},
sprite::MaterialMesh2dBundle,
};
fn main() {
@aamiaa
aamiaa / RevertNewLayout.md
Last active April 9, 2024 21:30
Revert New Discord Layout

The original snippet no longer works!

On 02/09/2024 at around 8pm UTC, Discord flipped an experiment (2023-09_mobile_redesign_override_toggles) which ignores the layout toggle that this script relied on.

If you want to continue using the old layout, you can either use a modded mobile client (such as Vendetta) to disable that experiment, or downgrade to an old version of the app.

Method 1 - Downgrading (Android)

Tip

Use this one if you want a fast, beginner-friendly solution and don't mind using a version from November 2023

  1. Download version 205.15 of Discord mobile app from ApkMirror
@sba923
sba923 / Get-ZoomItHelp.ps1
Last active February 26, 2024 15:07
Utilities to help working with Sysinternals ZoomIt
# this is one of Stéphane BARIZIEN's public domain scripts
# the most recent version can be found at:
# https://gist.github.com/sba923/7ea3d013b1f758a947eea6c2e4f89f73#file-get-zoomithelp-ps1
<#
.SYNOPSIS
Show help for ZoomIt functions, with currently configured hotkeys
.DESCRIPTION
This script outputs help information the ZoomIt functions
@Shadows-of-Fire
Shadows-of-Fire / strike.md
Last active July 12, 2023 20:41
Triage Stike Demands

Forge Triage Union Strike Demands

Code of Conduct

Context

In repeated instances, recently on May 28th[^1], and even more recently on June 22nd[^11][^12][^13] Lex acts as if he is above the Code of Conduct[^14].image
Unfortunately, the idea is sustained by the fact that the CoC currently has the famous "Lex Clause" which allows Lex to do whatever he wants when interacting with the community and the team. This is an extremely pressing issue, as his behaviour is becoming more concerning every day, and he still is the face of Forge.

Demands

  1. The aforementioned clause will be removed in totality. There will be absolutely no exceptions made for any member of the team or the community regarding beha
@Banashek
Banashek / prettmaps-fablepy.fs
Created July 21, 2022 19:42
Quick and dirty fable-py prettymaps. Very dynamic for proof of concept.
open Fable.Core
open Fable.Core.PyInterop
open Fable.Python.Json
[<ImportAll("sys")>]
let sys: obj = nativeOnly
let prettymaps: obj = importAll "prettymaps"
let matplotlib: obj = importAll "matplotlib"
@HuemanInstrument
HuemanInstrument / gist:bc6f4715e36765136e0293d5513182a8
Created June 15, 2022 05:44
Untitled Track Boards of Canada Video
Notebook used: https://colab.research.google.com/github/Sxela/DiscoDiffusion-Warp/blob/main/Disco_Diffusion_v5_2_Warp.ipynb
Please follow my content here: https://linktr.ee/huemaninstrument
https://noclip.website/ <-- FFX Gaudosalam footage video init
Done on a V100 card
Settings:
steps:
@Lucretiel
Lucretiel / lisplusplus.cpp
Created October 19, 2021 23:27
Demo of lisp implemented by overloading the comma operator
#include "liscpp.h"
using namespace std;
int main()
{
ReadEvalPrint(
(Let,
tok(fold), (Lambda, tok(F), tok(I), tok(L),
@advaith1
advaith1 / discordjs-slash-commands.md
Last active April 20, 2024 05:39
Slash Commands in Discord.js

WSL 2 Cisco AnyConnect Networking Workaround

Overview

WSL 2 uses a Hyper-V Virtual Network adapter. Network connectivity works without any issue when a VPN is not in use. However when a Cisco AnyConnect VPN session is established Firewall Rules and Routes are added which breaks connectivity within the WSL 2 VM. This issue is tracked WSL/issues/4277

Below outline steps to automatically configure the Interface metric on VPN connect and update DNS settings (/etc/resolv.conf) on connect/disconnect.

Manual Configuration

Set Interface Metrics

@ivawzh
ivawzh / json-parser.ts
Last active February 26, 2024 07:09
Typescript crazy mapped types
// This is only working in 4.1.0-insiders20200903
type ParserError<T extends string> = { error: true } & T
type EatWhitespace<State extends string> =
string extends State
? ParserError<"EatWhitespace got generic string type">
: State extends ` ${infer State}` | `\n${infer State}`
? EatWhitespace<State>
: State
type AddKeyValue<Memo extends Record<string, any>, Key extends string, Value extends any> =