Skip to content

Instantly share code, notes, and snippets.

View Kamillaova's full-sized avatar
🏳️

Kamilla 'ova Kamillaova

🏳️
View GitHub Profile
@Kamillaova
Kamillaova / Driver-of-Intel-R-Gaussian-Neural-Accelerator.patch
Last active April 6, 2024 18:59
[PATCH] Driver of Intel(R) Gaussian & Neural Accelerator
From 00f3bad3bd4e9b4a60983857b805082750de30ed Mon Sep 17 00:00:00 2001
From: Kamillaova <me@kamillaova.dev>
Date: Sat, 6 Apr 2024 21:53:42 +0300
Subject: [PATCH] Driver of Intel(R) Gaussian & Neural Accelerator
Link: https://lore.kernel.org/dri-devel/20221020175334.1820519-1-maciej.kwapulinski@linux.intel.com
---
Documentation/gpu/drivers.rst | 1 +
Documentation/gpu/gna.rst | 64 +++++
MAINTAINERS | 7 +
@Kamillaova
Kamillaova / custom_acpi.sh
Created October 18, 2023 00:03
/etc/initcpio/install/custom_acpi. Add the patched acpi tables to /etc/custom_acpi, for example: /etc/custom_acpi/DSDT
#!/usr/bin/env bash
__basename() {
local tmp
tmp=${1%"${1##*[!/]}"}
tmp=${tmp##*/}
tmp=${tmp%"${2/"$tmp"}"}
printf '%s\n' "${tmp:-/}"
}
@Kamillaova
Kamillaova / README.md
Last active August 24, 2023 15:58
XDP hello world, supports ipv4 and ipv6, just drops 25565/tcp destination

XDP Hello world, blocks dst 25565/tcp, supports ipv4 and ipv6

Build

$ clang -O3 -Wall -c -target bpf hello_xdp.c -o hello_xdp.bpf

Load

import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.io.Input;
import com.esotericsoftware.kryo.io.Output;
import com.esotericsoftware.kryo.serializers.ImmutableSerializer;
import java.net.Inet4Address;
import java.net.Inet6Address;
import java.net.InetAddress;
import java.net.UnknownHostException;
package kamillaova.botscommand;
import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.plugin.Plugin;
import net.md_5.bungee.api.scheduler.ScheduledTask;
import java.util.concurrent.TimeUnit;
@SuppressWarnings("unused") // Убрать предупреждение Class 'BotsProtection' is never used
public class BotsProtection extends Plugin {
@Kamillaova
Kamillaova / sort.sh
Last active June 16, 2021 16:19
Sort images by date (copy to year/month directories)
#!/usr/bin/env bash
LC_ALL=C
if ! [ -x "$(command -v identify)" ]; then
echo 'Error: imagemagick is not installed.' >&2
exit 1
fi
IMGS=./imgs