Skip to content

Instantly share code, notes, and snippets.

@jleem99
jleem99 / README.md
Last active January 15, 2025 19:19
Bash script that enables Metal API for League of Legends on macOS

Bash script that enables Metal API for League of Legends on macOS.

After installing League of Legends, you can run this script to enable Metal API for the game.
You can expect a performance boost of up to ~2x FPS.

How to run

To run the script, download the script and run it in Terminal.
Or, open Terminal and type the following command:

@gabolopez90
gabolopez90 / javascript.md
Last active January 15, 2025 19:17
Apuntes de Javascript

Javascript

String en minusculas

	var str = "Hello World!";
	var res = str.toLowerCase();

Concatenar strings con el operador +=

@avdi
avdi / emacs-pidfile.el
Created June 17, 2011 19:36
Write pidfile on emacs-server startup
(setq pidfile "emacs-server.pid")
(add-hook 'emacs-startup-hook
(lambda ()
(with-temp-file pidfile
(insert (number-to-string (emacs-pid))))))
(add-hook 'kill-emacs-hook
(lambda ()
(when (file-exists-p pidfile)
(delete-file pidfile))))
@NickMcSweeney
NickMcSweeney / postgresql_plus_arch-linux.md
Last active January 15, 2025 19:13
Getting postgresql running on Arch Linux

Setup Postgresql

run postgresql with systemctl

Install postgres

latest

sudo pacman -S postgresql

specific version

find version & build from source

@GiovanniGrieco
GiovanniGrieco / podman_on_wsl2.md
Last active January 15, 2025 19:10
Install Podman on WSL2

Install Podman on Windows Subsystem for Linux 2 (WSL2)

This guide allows a safe and rootless installation of Podman on WSL2. Head over the hyperlinks to discover more about these two wonderful technologies!

This guide assumes that Debian 11 "bullseye" is installed as WSL2 base OS. To do it, simply open your Windows Powershell console under Admin rights and run

PS> wsl install -d Debian

After installation, please check that you are under the latest Debian. If not, please upgrade it.

@carlchen0928
carlchen0928 / threadsafe_queue.cpp
Created June 23, 2015 07:51
thread safe queue with condition_variable and mutex
#include <queue>
#include <mutex>
#include <memory>
#include <condition_variable>
#include <stdio.h>
#include <iostream>
/*
* thread safe queue implementation.
* Use a mutex and condition_variable to keep thread safe.

An guide how to activate Windows 11 Pro for free

Why?

Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet

Am i also able to switch from any other edition to Pro?

The answer is yes! You can switch from almost any edition to Pro completely for free!

Note for users with unactivated Pro edition

People which already have Pro, but not activated, can skip to this step.

Getting started

What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key:

@Jacobboogiebear
Jacobboogiebear / lilietrickster-documented.bat
Last active January 15, 2025 19:06
Quick trick to disable parental controls on windows (read tutorial.txt)
:: Hides the output of small commands to help clean up the view of everything
@ECHO OFF
:: This at the end of any line means hide it's output as to not clutter the display, feel free to remove it from any line and see the output of each command
:: >nul 2>&1
:: Throws "Access is denied" if the script is run as non-admin or does nothing if run as admin, setting the errorlevel variable to 0 or 1
:: (0: No error occured / Other values: An error has occured)
NET SESSION >nul 2>&1
@ruvnet
ruvnet / SynthLang.md
Created January 5, 2025 03:18
SynthLang is a hyper-efficient prompt language designed to optimize interactions with Large Language Models (LLMs) like GPT-4o by leveraging logographical scripts and symbolic constructs.

SynthLang: A Hyper-Efficient Prompt Language for AI

SynthLang is a hyper-efficient prompt language designed to optimize interactions with Large Language Models (LLMs) like GPT-4o by leveraging logographical scripts and symbolic constructs. By compressing complex instructions into fewer tokens (reducing token usage by 40–70%), SynthLang significantly lowers inference latency, making it ideal for latency-sensitive applications such as high-frequency trading, real-time analytics, and compliance checks.

Additionally, SynthLang mitigates English-centric biases in multilingual models, enhancing information density and ensuring more equitable performance across diverse languages. Its scalable design maintains or improves task performance in translation, summarization, and question-answering, fostering faster, fairer, and more efficient AI-driven solutions.

Large Language Models (LLMs) such as GPT-4o and Llama-2 exhibit English-dominant biases in intermediate embeddings, leading to inefficient and oft