Skip to content

Instantly share code, notes, and snippets.

@demensdeum
demensdeum / command.txt
Created October 5, 2023 19:06
Build ffmpeg with debug symbols enabled
./configure --enable-debug=3 --disable-optimizations --enable-shared --disable-stripping
@hmidani-abdelilah
hmidani-abdelilah / wayland-gnome-ubuntu-mint.sh
Created September 11, 2022 21:29 — forked from wellington1993/wayland-gnome-ubuntu-mint.sh
How to Install Wayland Gnome on Linux Mint Ubuntu with Dependencies with PPA
#!/bin/bash
# NOTICE, EASY WAY FIRST: sudo apt install gnome-session-wayland
# If easy way not work try this below:
################# 0 - Preparation ##################
# Update and PPA
sudo add-apt-repository -y ppa:wayland.admin/daily-builds; \
apt update; \
#
# Depends
sudo apt install -y doxygen xmlto; \
@lucprincen
lucprincen / Save.php
Last active December 13, 2024 15:45
Saves a WordPress FSE pattern on the local environment.
<?php
namespace WotW\Theme\Patterns;
use WotW\Theme\Contracts\Interfaces\Hookable;
class Save implements Hookable{
public function register_hooks(): void {
@CharlyJazz
CharlyJazz / Argentina_Provincias_Ciudades.sql
Last active December 13, 2024 15:43
Argentina Ciudades Provincias Localidades SQL
--
-- Estructura de tabla para la tabla `provincias`
--
DROP TABLE IF EXISTS `provincias`;
CREATE TABLE IF NOT EXISTS `provincias` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`provincia` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
@Tesla2550
Tesla2550 / IBSng Install
Created December 13, 2024 15:39 — forked from soheilsec/IBSng Install
IBSng Install
yum install httpd php postgresql postgresql-server postgresql-python perl iptables-services tar zip unzip wget nano bzip2 install nano lsof net-tools -y
nano /etc/selinux/config
wget https://managedway.dl.sourceforge.net/project/ibsng/IBSng-A1.24.tar.bz2
tar -xvjf IBSng-A1.24.tar.bz2 -C /usr/local
@futurGH
futurGH / bubbleSort.ts
Last active December 13, 2024 15:38
A TypeScript type-only bubble sort
// https://www.typescriptlang.org/play#code/C4TwDgpgBAyg9gJ2BAJlAvFAQgVwEZ4A2E8SAPANoCMANFACx21QDMdATHQLQCcdAHHQDs3TlABsdRlCrSu7ZlUEzmQtlHbsAugD4AsACgA9EahmAegH5DhkyahdHT5y65YAqliwAZAKKwAeQAlABVXcKcbA1BIbHwiEkRgMgA5KAgAD2QAOxQAZyhsnABbPAgECl0MQzNcAmJSYAAFAEM8vNSddKyIXIKAS2yAM3KoAOyIVvbunPzCkrKKrRqzKEs4+sSkKY7xyba8rszZgrqExp3OldW1jfOky5T9AxuzAC47hqSyPZ3nm4+EwAbuUojFoGcvtsDqkZr05kVSuVKl10Cs0sd4QUKIMRggoAAxfoIPLAOF9eZIhB0XGjGAQADGcFy5IRC3KdAAdNzafighBSayCojFpVli9Vut+YLMRTKtdJVBvAK8iEABYtbJkIkk4B0elM3JHHoU4AIHAQBU3dYUHWk-WM5kocWvVYfCgGp10O3AF2vD7K9rqzXa4n22COo1CqBmi1WxW2sN6qDczmQrbNGEeyMoLnc6W+nR+13uz25PNp+JQzPtSg+isF3TFqCAiAghBROymCLhdwhACS3n7IQAmlBR01fDAe64weBoIHVRqtQBBaMijnYdfshColZr2VzLAK9ZDFqEPKWiXvKAAAwAJABvFcAX1v0dvXCfvKgK7weQPE02SpN943WB9HywN8Py-R8fz-PIsG3EDb3jMx1kXYNV3-LA6AQlcunsNcyCgAAGOgkJI0i0JbGNzWgIioCoiioB0TBqOvN07yfKD30PApPyfDcEFAzj0KgM8LwY0w1zYsiWKo+MPhgfAzRaBlkhXCjjROQo21GewkK6FcaPWWMr1dG9JMvOdYhXFAUDIQDdOElj+MpRZUSgChUxCHAwGIAIhmVbIAHNgDVJydArPyAogIKQvCyKsCLCgACJiDCiK0q0ABuWzoBUvA1I0pzkMWNygOFHc
@soheilsec
soheilsec / IBSng Install
Created October 4, 2023 16:32
IBSng Install
yum install httpd php postgresql postgresql-server postgresql-python perl iptables-services tar zip unzip wget nano bzip2 install nano lsof net-tools -y
nano /etc/selinux/config
wget https://managedway.dl.sourceforge.net/project/ibsng/IBSng-A1.24.tar.bz2
tar -xvjf IBSng-A1.24.tar.bz2 -C /usr/local
@mjpieters
mjpieters / CodeLLDB-rust-auto-sourcemap.md
Created June 17, 2024 12:28
CodeLLDB & Rust: Automatically add a source map to LLDB for the Rust stdlib

Automatically set the correct source map for your Rust toolchain

When it comes to debugging Rust in VSCode, the CodeLLDB extension provides a great debugging experience. Until you try to step into some Rust stdlib code and are greeted with assembly.

Of course you can manually add a source map entry for your rust toolchain, which involves finding the current rustc version commit hash and the sysroot path for the source code:

$ rustc --version --verbose
rustc 1.76.0 (07dca489a 2024-02-04)
binary: rustc
@cloudwu
cloudwu / json.lua
Last active December 13, 2024 15:33
An inefficient but minimalist pure lua json parser
-- An inefficient but minimalist pure lua json parser
local escape_table = {
['"'] = '"',
['/'] = '/',
['\\'] = '\\',
['b'] = '\b',
['f'] = '\f',
['n'] = '\n',
['r'] = '\r',