Skip to content

Instantly share code, notes, and snippets.

View edisonlee55's full-sized avatar
😋
(ノ^ヮ^)ノ*:・゚✧

Edison Lee edisonlee55

😋
(ノ^ヮ^)ノ*:・゚✧
View GitHub Profile
@OrionReed
OrionReed / dom3d.js
Last active June 1, 2024 16:50
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@SUPERCHIEFYT
SUPERCHIEFYT / loggingbots.md
Last active May 8, 2024 07:35
Breakdown of all of the known logging bots. (If I missed any let me know and I'll add it)
  • You can still selfhost the bot (view selfhosting-guide in the support server)

Selfhosted Loggers:

INFO The only selfhosted Loggers listed here will be from trusted members of the Logger support server. If you're selfhosting and a trusted member and want your selfhosted Logger to be listed then we'll reach out to you directly, don't ask to be listed here.

MIFARE Classic

Here are the steps to follow in order to read your cards. Your goal is to find as many keys as possible. The keys unlock sections of your card for the Flipper to read them - you must have a card. Once you read enough sections, you can use an emulated or cloned card at the original card reader to unlock it (sometimes even without finding all of the keys!).

Reading the card

Steps:

  1. Dictionary attack: Try to scan your MIFARE Classic card with NFC -> Read. It will try a dictionary attack of default keys to unlock your card, as well as any keys you may have found through other methods. Do not interrupt the dictionary attack, it may take a while! If it finds 32/32 keys (or 80/80) with 16/16 sectors (or 40/40), congratulations and proceed to "Emulation". If not, continue to step 2.
  2. Mfkey32 attack (): If you have only a few keys found or no keys found, you can get mor

How to install game-porting-toolkit (aka proton for macOS)

You also might wanna just use Whisky which does this automatically

This guide works on macOS 13.4+ using Command Line Tools for XCode 15 Beta!

What is this?

In the recent WWDC, Apple announced and released the "game porting toolkit", which upon further inspection this is just a modified version of CrossOver's fork of wine which is a "compatibility layer" that allows you to run Windows applications on macOS and Linux.

@t510599
t510599 / README.md
Last active June 1, 2023 09:44
hackmd image backup

hackmd 用的圖床 imgur 要清掉舊圖了
怕 hackmd 文件裡面的圖全都被清光 所以來備份一下

Steps

  1. 設定 > 筆記設定 > 備份 > 下載所有筆記
  2. 解壓縮
  3. 把 image.py 搬進去同個資料夾
  4. 執行 image.py
  5. wget -i url.txt 來下載所有圖片
@trozzelle
trozzelle / atproto_image.js
Created April 18, 2023 15:45
Image upload code for making a Bluesky post.
// Provide a uint8array of image data and set MIME type.
// Bluesky only supports jpg and png at the moment.
const testUpload = await agent.uploadBlob(testPng, {encoding: "image/png"})
// The response contains a BlobRef object, which is what
// agent.post expects.
const result = await agent.post({
text: 'Post Text',
reply: {
parent: {
@jakobkmar
jakobkmar / hetzner_minecraft_srv.md
Last active May 24, 2024 10:34
Setup a Minecraft SRV record in Hetzner DNS

Setup a Minecraft SRV record in Hetzner DNS

With an SRV record you can let your domain point to a Minecraft server without subdomains and without the need for taking the whole @ namespace.

Create a simple A record

First, we'll create a normal A record which the SRV record can point to. Let's choose play.yourdomain.com for this.

image

@OlfillasOdikno
OlfillasOdikno / Linux_GPU_PV.md
Last active May 26, 2024 16:28
Hyperv Linux Guest GPU PV

Hyperv Linux Guest GPU PV

  • Create VM
$isopath = <iso location>
$vhdpath = <vhdx location>
$vmpath = <vm path>
$vmname = "Arch-dxgkrnl"
New-VM -Name $vmname -MemoryStartupBytes 8GB -BootDevice VHD -NewVHDPath $vhdpath -Path $vmpath -NewVHDSizeBytes 20GB -Generation 2 -Switch "Default Switch"
@GeneralSadaf
GeneralSadaf / List of Discord voice activities.md
Last active May 19, 2024 09:32
IDs of Discord voice activities.

Activities no longer require boosts to unlock. Activities except Watch Together are locked behind Nitro. Kept boost levels for prosperity.

Stable versions

Application ID Application name Boost level Max participants
755600276941176913 YouTube Together(Old) 0 Unlimited
880218394199220334 Watch Together(New) 0 Unlimited
755827207812677713 Poker Night 1 25
773336526917861400 Betrayal.io 0 Unlimited
814288819477020702 Fishington.io 0 Unlimited
832012774040141894 Chess In The Park 1 Unlimited
@FairlySadPanda
FairlySadPanda / UGuiTextToTextMeshPro.cs
Last active November 24, 2021 15:59 — forked from Naphier/UGuiTextToTextMeshPro.cs
Unity3D Editor Tool to convert Unity GUI Text objects to Text Mesh Pro Text Objects
using TMPro;
using TMPro.EditorUtilities;
using UnityEditor;
using UnityEngine;
using UnityEngine.UI;
public class UGuiTextToTextMeshPro : Editor
{
[MenuItem("GameObject/UI/Convert To Text Mesh Pro", false, 4000)]
static void DoIt()