Skip to content

Instantly share code, notes, and snippets.

View JustLinuxUser's full-sized avatar

Andrii JustLinuxUser

  • Madrid
  • 11:03 (UTC +02:00)
View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void ft_advanced_sort_string_tab(char **tab, int (*cmp)(const char *, const char *))
{
int i;
int j;
char *temp;
[font]
size = 10
[font.bold]
family = "JetBrainsMono Nerd Font"
style = "Bold"
[font.italic]
family = "JetBrainsMono Nerd Font"
style = "Italic"
@JustLinuxUser
JustLinuxUser / script.sh
Last active June 13, 2024 20:26
download latest lutris
version=$(git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' https://github.com/lutris/lutris |
grep -v beta |
tail -n1 |
cut -d '/' --fields=3)
version_no_v=$(echo "$version" | tr -d v)
wget "https://github.com/lutris/lutris/releases/download/${version}/lutris_${version_no_v}_all.deb"
@JustLinuxUser
JustLinuxUser / wireguard_setup.sh
Created June 6, 2024 15:37
Configure wireguard server as a tunnel to connect to the machine (without further connection to the internet)
ussage='Ussage:
First, Thank Andrii Dokhniak, because he is the best!, then
sudo bash wireguard_setup.sh <network interface>
(the network interface is used to get the IP)
Dependencies:
- qrencode, for creating the qrcode
- wireguard-tools, for the userspace wg command