Skip to content

Instantly share code, notes, and snippets.

View vankxr's full-sized avatar
🏠
Working from home

João Silva vankxr

🏠
Working from home
View GitHub Profile
@Jiab77
Jiab77 / create-DNS-over-TLS-bridge-with-pi-hole-unbound-and-stubby-on-ubuntu-server.md
Last active June 27, 2024 21:02
Few months ago, I've made a similar work but I wanted something a little more easier to manage. Please have a look at here for my previous work.

Create DNS-over-TLS bridge with Pi-hole, unbound and stubby on Ubuntu Server

Few months ago, I've made a similar work but I wanted something a little more easier to manage. Please have a look at here for my previous work.

This time, I'm gonna do pretty much the same thing but using Pi-hole as base then modify it to include unbound and stubby.

This way, I can use the power of Pi-hole with some additional security layers:

  • Recursive DNS check (unbound)
  • DNS-over-TLS (stubby)
@nnsdev
nnsdev / _improve_fivem_resources.md
Last active January 14, 2024 19:53
How to improve FiveM resource performance

How to fix resource performance

Showing by example of "disc-base" exempts

This is an example of a resource called "disc-base", I have only taken parts of it and removed the mentions of ESX, because I am running this on an empty server. The part we are looking at here especially is the marker drawing. This is also an outdated version of this resource before they applied performance improvements, but we are also going to go deeper than their changes.

Base of this tutorial: https://github.com/DiscworldZA/gta-resources/blob/54a2aaf7080286c8d49bbd7b1978b6cc430ec755/disc-base/client/markers.lua (client.lua here)

Assessment

@aumouvantsillage
aumouvantsillage / Building VC4CL
Created November 28, 2017 09:40
Building VC4C and VC4CL on a Raspberry Pi 3 with Raspbian Stretch
sudo apt install git cmake clang-3.9 opencl-headers ocl-icd-dev ocl-icd-opencl-dev
sudo ln -s /usr/bin/clang{-3.9,}
git clone https://github.com/doe300/VC4C.git
git clone https://github.com/doe300/VC4CL.git
git clone https://github.com/doe300/VC4CLStdLib.git
mkdir VC4C/build
cd VC4C/build
sudo apt-get install cmake libusb-1.0-0-dev
sudo echo -e "\nblacklist dvb_usb_rtl28xxu\nblacklist rtl2832\nblacklist rtl2830" >> /etc/modprobe.d/blacklist.conf
rmmod dvb_usb_rtl28xxu
git clone git://git.osmocom.org/rtl-sdr.git
cp rtl-sdr/rtl-sdr.rules /etc/udev/rules.d/
cd rtl-sdr
mkdir bin
cd bin
cmake ../
make
@strezh
strezh / autoload_driver.md
Last active February 7, 2024 12:16
Automatic create /dev file when driver module is loaded, automatic load driver on startup.

Automatic create /dev file

example driver module:

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/gpio.h>
#include <linux/fs.h>