Skip to content

Instantly share code, notes, and snippets.

View KebabLord's full-sized avatar

Junicchi KebabLord

View GitHub Profile
@thesamesam
thesamesam / xz-backdoor.md
Last active May 11, 2024 07:48
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Background

On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that

#!/usr/bin/env bash
# Injector script for osiris
# shamelessly stolen from https://github.com/LWSS/Fuzion
# and modified for osiris
# undetected as of right now, but that might change
# please do not use this to cheat against normal players
# cheating against normal players is very scummy
# I do not endorse cheating
# I personally use this only on a local server to
@KebabLord
KebabLord / smart-tv.sh
Last active November 28, 2023 14:04
Simple shell script to control Vestel MB211 TV from terminal. Should work on all MBxxx models.
#!/bin/bash
#Get IP address of tv from searching port 56789
if [ -a /tmp/toshiba_ip ];then
tv_ip="$(cat /tmp/toshiba_ip)"
else
tv_ip="$(nmap 192.168.1.0/24 -sT -np56789 --open -oG - | awk '/Up$/{print $2}' | tee /tmp/toshiba_ip)"
fi
#Function to send specified command key code
@CSaratakij
CSaratakij / README.txt
Last active April 4, 2024 20:57
Video Wallpaper (hw-accelerate) : Use 'mpv' as a video player backend with 'xwinwrap' to wrap our window to be use as a desktop background
You want to use a live wallpaper in x11?
Great!!...but It come as a cost.
I did experiment with .gif backend and non hardware accelerate backend, It sucks.
CPU usage was so high (40% up just for idle), unacceptable for my laptop.
Running with those backend for such a really long time will slowly turn your laptop into the hot potato.
But don't be upset, we can reduce those cost.
Using the video player with hardware video decoding support can reduce the cost.
@Kreyren
Kreyren / gist:cccf642ce672fd8f127ed128cf27749b
Last active January 19, 2024 14:26
How to properly setup and install nvidia on Debian/Devuan

OUTDATED: The pinning no longer works.


DISCLAIMER: This is provided as is without any warranty with hope to provide helpful informations

WARNING: Provided as reference to the configuration, you should use your own deduction for a proper configuration, DO NOT COPY-PASTE!

This is a short tutorial to install nvidia drivers on Debian/Devuan by adding non-free repository and then pinning to exclude all non-free packages excluding the one needed for Nvidia GPU to avoid their unexpected install.

@rithvikvibhu
rithvikvibhu / LICENSE
Last active May 5, 2024 08:43
Get tokens for Google Home Foyer API
MIT License
Copyright (c) 2020 Rithvik Vibhu
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@llimllib
llimllib / mssql_to_csv.bash
Last active April 15, 2024 16:00
This is a script to convert every table in a Microsoft SQL Server database backup (.bak file) to a .csv file
#!/usr/bin/env bash
# import an MS SQL .bak backup file to an MS SQL database, then export all
# tables to csv. run this script as `import.sh <filename>`. It expects to be
# run in the same directory as the backup file.
# this is only tested on my mac (OS X Catalina). I tried to stick to posix, but
# It will probably require some tweaking for you. I hope it gives a general
# sense of what you need to do at the very least.
@wdog
wdog / .dunstrc
Last active July 3, 2022 23:57
Simple configuration for dunst notification
# <- this tricks vim into using syntax highlighting
[global]
# font = Tewi 8
font = "FontAwesome, Noto Sans 11"
icon_path = /usr/share/icons/Faenza/status/16/:/usr/share/icons/Faenza/devices/16/
markup = yes
# The format of the message. Possible variables are:
# %a appname
# %s summary