Skip to content

Instantly share code, notes, and snippets.

@tylerneylon
tylerneylon / rwlock.py
Last active January 15, 2025 00:16
A simple read-write lock implementation in Python.
# -*- coding: utf-8 -*-
""" rwlock.py
A class to implement read-write locks on top of the standard threading
library.
This is implemented with two mutexes (threading.Lock instances) as per this
wikipedia pseudocode:
https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock#Using_two_mutexes
@x0nu11byt3
x0nu11byt3 / elf_format_cheatsheet.md
Created February 27, 2021 05:26
ELF Format Cheatsheet

ELF Format Cheatsheet

Introduction

Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.

ELF

Compilation

@tdcosta100
tdcosta100 / WSL2GUIXvnc-en.md
Last active January 15, 2025 00:11
A tutorial to use GUI in WSL2 replacing original XServer by Xvnc, allowing WSL to work like native Linux, including login screen

WSL2 with GUI using Xvnc

Note

If you want to use pure WSLg, you can try the new WSLg (XWayland) tutorial or the WSLg (Wayland) tutorial.

In this tutorial, we will setup GUI in WSL2, and access it using VNC. No additional software outside WSL (like VcXsrv) is required, except, of course, a VNC Viewer (RealVNC, TightVNC, TigerVNC, UVNC, etc, all of them might work flawlessly).

The key component we need to install is the desktop metapackage you want (GNOME, KDE, Xfce, Budgie, etc) and tigervnc-standalone-server.

For this setup, I will use Ubuntu (20.04, 22.04 and 24.04 are working), and install GNOME Desktop. Since the key components aren't bound to Ubuntu or GNOME, you can use your favorite distro and GUI. Check the [Sample

@marcoandre1
marcoandre1 / PyQt-installation.md
Last active January 15, 2025 00:09
Install PyQt with pip command on windows 10

About

Installation guide to PyQt4 and PyQt5 on windows 10. Works with Python 3.7.3 32-bit and Python 3.7.3 64-bit (tested)

Installing

  1. Verify that python is installed and runnning by typing python --version on the command line.
  2. Verify that you have not installed PyQt before pip list.
  3. pip install PyQt5 this will install PyQt5.
  4. pip install pyqt5-tools this will install the designer.exe in your Scripts folder.
@AnonQuebec
AnonQuebec / oscp_prep.md
Created January 15, 2025 00:05 — forked from rahmiy/oscp_prep.md
Resource for OSCP like HTB Boxes with Ippsec Videos and Writeups.
@dehsilvadeveloper
dehsilvadeveloper / 0_prerequisites.md
Last active January 14, 2025 23:58
Installing Docker on WSL 2 with Ubuntu 22.04

Installing Docker on WSL 2 with Ubuntu 22.04

Instalando Docker em um WSL 2 com Ubuntu 22.04

Prerequisites

Before start the installation process, make sure you meet the following prerequisites:

  • A Windows 10 operating system with WSL 2 support.
  • WSL 2 enabled.
  • Ubuntu 22.04 installed on WSL 2.
Michael Chow, David Meisner, Jason Flinn, Daniel Peek, Thomas F. Wenisch

What is the Problem? [Good papers generally solve a single problem]

Existing performance debugging methods for complex distributed systems do not provide useful information about end-to-end performance characteristics, because it is challenging to construct an execution model of requests in a highly-distributed heterogeneous system.

@Heliodex
Heliodex / updateDec24.md
Created January 14, 2025 23:55
Changes to Heliodex projects for the end of 2024

Heliodex project update – December 2024

Happy new year! Small update from the end of last year here.

Litecode is, solely for the purposes of the larger project I would like to use it in, nearing completion. I ought to change the tagline to something other than "Semi-working Luau bytecode interpreter" at this point lol

I'm taking full advantage of the fact I can break compatibility with the reference implementation in a couple of places. The interpreter now features a faster, simpler, and lighter implementation of tables, at the cost of a few tiny edge cases being different with vanilla Lua/Luau. Bugs are sometimes difficult to track down because of little debugging/error handling support at the moment, though the steadily growing test suite helps a lot with this.

@f0r34chb3t4
f0r34chb3t4 / keys.txt
Created April 9, 2019 16:42
Proxifier.txt
Portable Version KEYS:
P6Z3T-UYJC9-YAK3F-APN9M-6ZDSD
FGZPK-93CWX-Q33Y6-D5URV-YXC3X
9CZQX-9YAQA-PF33L-XVUQH-NSD48
8RZ3L-H3Y5L-W2RY5-Z5M8N-C7Z2U
CCZNU-LW3LF-K9V2T-MYZFF-94667
EWZM6-3W4UX-KH922-C96GK-VGBH2
Standard Version KEYS:
4AZNW-S2YHE-LLMWM-J6EL8-7QKDL
@Enitoni
Enitoni / README.md
Created July 6, 2023 16:38
Guide on how to properly delete your reddit account.

How to properly delete your Reddit account

After countless protests from the community and greed (not to mention arrogance) from the CEO of Reddit, enough is enough! It's time to leave this website, and show them no mercy.

This guide is for those of you who are finally fed up with the company having no regard for their users, and who are now ready to leave.

Prerequisites

  • A desktop browser
  • A little tech-savvyness, or at least being comfortable using the developer tools in your browser
  • Patience