Skip to content

Instantly share code, notes, and snippets.

#unified-extensions-view {
--uei-icon-size: 16px;
.unified-extensions-item {
margin-block: 0 !important;
border-radius: var(--arrowpanel-menuitem-border-radius) !important;
> .unified-extensions-item-action-button {
.unified-extensions-item-message-deck {
display: none;
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 1, 2024 13:25
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@ityonemo
ityonemo / test.md
Last active May 1, 2024 13:20
Zig in 30 minutes

A half-hour to learn Zig

This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/

Basics

the command zig run my_code.zig will compile and immediately run your Zig program. Each of these cells contains a zig program that you can try to run (some of them contain compile-time errors that you can comment out to play with)

@vyach-vasiliev
vyach-vasiliev / Install_Ignore_From_Dropbox_Context_Menu.reg
Last active May 1, 2024 13:20
Ignore from Dropbox by context menu in Windows OS [updated 2024]
Windows Registry Editor Version 5.00
;= Setup ignore file/folder menu.
;= Context menu to folders:
[HKEY_CLASSES_ROOT\Directory\shell\Dropbox F Ignore]
"AppliesTo"="System.ItemPathDisplay:\"Dropbox\""
"Icon"="C:\\Program Files (x86)\\Dropbox\\Client\\Dropbox.exe,12"
@="Ignore from Dropbox"
[HKEY_CLASSES_ROOT\Directory\shell\Dropbox F Ignore\command]
@jcubic
jcubic / discount.php
Last active May 1, 2024 13:19
Calculate regional discount using Parity Purchasing Power for user IP address
<?php
// Copyright (C) Jakub T. Jankiewicz
// this code is released to Public Domain with CC0 license
// created with the help from ChatGPT
$default_country = [
'name' => 'Poland',
'code' => 'PL'
];
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active May 1, 2024 13:17
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。

Dockerized 实践 https://github.com/y0ngb1n/dockerized

配置加速地址

Ubuntu 16.04+、Debian 8+、CentOS 7+

@pedrolamas
pedrolamas / docker-iptables-fix.sh
Created August 18, 2020 19:32
Script to fix Docker iptables on Synology NAS
#!/bin/bash
currentAttempt=0
totalAttempts=10
delay=15
while [ $currentAttempt -lt $totalAttempts ]
do
currentAttempt=$(( $currentAttempt + 1 ))
echo "Attempt $currentAttempt of $totalAttempts..."
@SpeedyFolf
SpeedyFolf / ax.json
Last active May 1, 2024 13:11
Ålandish national colors/country flag color scheme for LotsOfS' stream layout
"Åland Islands": {
"Default": "AX",
"Colors": {
"AX": {
"Outer": "#FFD300",
"Inner": "#DA0E15",
"Text": "#0064AD"
}
}
},
{-# language ApplicativeDo #-}
{-# language LambdaCase #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE TypeInType #-}
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE InstanceSigs #-}
-- not sure if this is all extensions or all these extensions are needed, just pasting from the file
module VerifySchema where
@Hrissimir
Hrissimir / yt-dlp.conf
Created August 17, 2023 06:34
Instructions: How to install and configure 'yt-dlp' on Windows 10 machine
# =========================================================================
# Instructions: How to install and configure 'yt-dlp' on Windows 10 machine
#
# NOTE: Lines starting with # are treated as comments
# -------------------------------------------------------------------------
#
#
# =========================================================================
# Part I. "Install Prerequisites"
# -------------------------------------------------------------------------