Skip to content

Instantly share code, notes, and snippets.

@bmaupin
bmaupin / free-database-hosting.md
Last active January 15, 2025 19:22
Free database hosting
@klezVirus
klezVirus / EtwStartWebClient.cs
Last active January 15, 2025 19:20
A PoC in C# to enable WebClient Programmatically
using System.Runtime.InteropServices;
using System;
/*
* Simple C# PoC to enable WebClient Service Programmatically
* Based on the C++ version from @tirannido (James Forshaw)
* Twitter: https://twitter.com/tiraniddo
* URL: https://www.tiraniddo.dev/2015/03/starting-webclient-service.html
*
* Compile with:
@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: