Skip to content

Instantly share code, notes, and snippets.

@vmartins
vmartins / mame-roms1.md
Created September 27, 2022 17:49
MAME download all roms arcade (1/2)
@wanlce
wanlce / emby.md
Last active March 28, 2024 16:28
Linux 下 Emby客户端破解教程

Linux 下 Emby客户端破解教程

emby 客户端是需要付费才能使用的, 市面上也有许多三方修改版或者用第三方客户端来绕过这个限制,但是基本都是移动端设置或windows,很少有关于 linux 版的客户端的,今天我来教大家自己动手,丰衣足食(通用版)

解锁前 Untitled

以下仅供个人研究使用

@jtmoon79
jtmoon79 / python-embedded-for-Win10.md
Last active March 28, 2024 16:25
fully configuring embedded Python on Windows 10

Update: use PowerShell script PythonEmbed4Win.ps1.

The instructions in this gist have some subtle problems and this gist will not be updated.

About


@fusetim
fusetim / protonvpn-wireguard-generator.py
Last active March 28, 2024 16:24
Generate lots of Wireguard configuration for your ProtonVPN Account.
import http.client
import http.cookies
import json
import base64
import hashlib
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric import x25519
from cryptography.hazmat.primitives.asymmetric import ec
from cryptography.hazmat.primitives import hashes

VIDEOS MIGHT OUTDATED BUT TEXT IS NOT

this guide is not meant to help with leaking or any stupid things you might do to ruin experience for other people

Downloading

  • Get latest version from Github Actions not releases from here , if you dont have account you can use site like nightly.link to download it , Latest build
  • Extract zip file somewhere
chrome_bBlpF4CYiz.webm.mov

@jojonas
jojonas / st2vim_themes.py
Last active March 28, 2024 16:22
Converter for Sublime Text themes to VIM themes
from __future__ import print_function
import sys
import argparse
import os.path
import textwrap
import re
from pprint import pprint
import xml.etree.ElementTree as ET
@OrionReed
OrionReed / DOM3D.js
Last active March 28, 2024 16:22
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; // ¯\\_(ツ)_/¯
@ridwansameer
ridwansameer / withAndroidSupportedDevices
Created December 21, 2023 08:16
Expo Config plugin to Add <supported-screens> to AndroidManifest.xml
const { AndroidConfig, withAndroidManifest } = require('@expo/config-plugins');
function addSupportedDevices(androidManifest, attributes) {
const { manifest } = androidManifest;
if (!manifest) {
throw new Error(
'Cannot set custom supported devices because AndroidManifest.xml is malformed.',
);
}
@zmts
zmts / tokens.md
Last active March 28, 2024 16:20
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Last major update: 25.08.2020

  • Что такое авторизация/аутентификация
  • Где хранить токены
  • Как ставить куки ?
  • Процесс логина
  • Процесс рефреш токенов
  • Кража токенов/Механизм контроля токенов
@joelstransky
joelstransky / custom-file-size-units.js
Last active March 28, 2024 16:19
Custom Intl.NumberFormat units
sizeFormatter = new Intl.NumberFormat([], {
style: "unit",
unit: "byte",
notation: "compact",
unitDisplay: "narrow",
});
(_bytes) => {
const units = { B: " bytes", KB: " kb", MB: " mb", GB: " gb", TB: " tb" };
const parts = sizeFormatter.formatToParts(_bytes);