Skip to content

Instantly share code, notes, and snippets.

/*************
* colors.js *
*************
*
* You're almost at the exit. You just need to get past this
* color lock.
*
* Changing your environment is no longer enough. You must
* learn to change yourself. I've sent you a little something
* that should help with that.
@m-jovanovic
m-jovanovic / .editorconfig
Created June 7, 2023 12:17
Sample editor config with a bunch of rules turned off 😅
root = true
# C# files
[*.cs]
#### Core EditorConfig Options ####
# Indentation and spacing
indent_size = 4
indent_style = space
@jacknlliu
jacknlliu / env-Dockerfile
Last active May 7, 2024 11:57
use variable "DEBIAN_FRONTEND noninteractive" to apt-get noninteractive install and set environment and use shell script in Dockerfile
ENV QT_BASE_DIR=/opt/qt55
ENV QTDIR=$QT_BASE_DIR
ENV PATH=$QT_BASE_DIR/bin:$PATH
ENV LD_LIBRARY_PATH=$QT_BASE_DIR/lib/x86_64-linux-gnu:$QT_BASE_DIR/lib:$LD_LIBRARY_PATH
ENV PKG_CONFIG_PATH=$QT_BASE_DIR/lib/pkgconfig:$PKG_CONFIG_PATH
# Reconfigure locale
RUN locale-gen en_US.UTF-8 && dpkg-reconfigure locales
# Docker offical ENVIRONMETN REPLACEMENT
@J05HI
J05HI / eBay_Kleinanzeigen_Anzeige_duplizieren.js
Last active May 7, 2024 11:56
Add "reinstate" functionality, refactoring
// ==UserScript==
// @name eBay Kleinanzeigen - Anzeige duplizieren / neu einstellen
// @namespace https://github.com/J05HI
// @description Bietet eine "Anzeige duplizieren / neu einstellen" Funktion beim Bearbeiten einer vorhandenen Anzeige in eBay Kleinanzeigen.
// @icon http://www.google.com/s2/favicons?domain=www.kleinanzeigen.de
// @copyright 2024, J05HI (https://github.com/J05HI)
// @license MIT
// @version 1.4.0
// @match https://www.kleinanzeigen.de/p-anzeige-bearbeiten.html*
// @grant none
@danielchc
danielchc / docker-emby-bypass.md
Last active May 7, 2024 11:56
Emby Premiere: ByPass Docker container

Emby Premiere ByPass Docker container

❗ All the information provided on this tutorial are for educational purposes only. I'm not responsible for any misuse of this information. If you like the app buy it

Table of Contents

#!/usr/bin/env bash
# Abort sign off on any error
set -e
# Start the benchmark timer
SECONDS=0
# Repository introspection
OWNER=$(gh repo view --json owner --jq .owner.login)
@joepie91
joepie91 / you-dont-need-a-blockchain.md
Last active May 7, 2024 11:54
You Don't Need A Blockchain

You don't need a blockchain.

If you're reading this, you probably suggested to somebody that a particular technical problem could be solved with a blockchain.

Blockchains aren't a desirable thing; they're defined by having trustless consensus, which necessarily has to involve some form of costly signaling to work; that's what prevents attacks like sybil attacks.

In other words: blockchains must be expensive to operate, to work effectively. This makes it a last-resort solution, when you truly have no other options available for solving your problem; in almost every case you want a cheaper and less complex solution than a blockchain.

In particular, if your usecase is commercial, then you do not need or want trustless consensus. This especially includes usecases like supply chain tracking, ticketing, and so on. The whole *p

@mathiassoeholm
mathiassoeholm / TubeRenderer.cs
Last active May 7, 2024 11:54
Similar to Unity's LineRenderer, but renders a cylindrical mesh.
// Author: Mathias Soeholm
// Date: 05/10/2016
// No license, do whatever you want with this script
using UnityEngine;
using UnityEngine.Serialization;
[ExecuteInEditMode]
public class TubeRenderer : MonoBehaviour
{
[SerializeField] Vector3[] _positions;
@yaleiyale
yaleiyale / ClashVergeParser.js
Last active May 7, 2024 11:54
clash verge 内统一多订阅个文件的分流规则
function main(params) {
if (!params.proxies) return params
let proxies = []
params.proxies.forEach(proxy => {
proxies.push(proxy.name)
})
const groups = [
{
"name": "🚀不时之需",
"type": "select",
@Aizazahmed-7
Aizazahmed-7 / test.js
Last active May 7, 2024 11:54
Test DEmo
const isEven () => {