Skip to content

Instantly share code, notes, and snippets.

View ratijas's full-sized avatar
🔓
gpg --recv-keys 16FE1EF864EAFBE8209247FAAE69C4B00B02FC69

ratijas ratijas

🔓
gpg --recv-keys 16FE1EF864EAFBE8209247FAAE69C4B00B02FC69
View GitHub Profile
@thesamesam
thesamesam / xz-backdoor.md
Last active November 17, 2024 13:13
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

@mitchcurtis
mitchcurtis / clean-rebuild-qt-cmake-linux.sh
Created October 30, 2021 12:16
Build scripts for Qt on Linux
#! /bin/bash
# ~/Dropbox/dev/scripts/cmake/clean-rebuild-qt-cmake-linux.sh
set -e
set -o pipefail
topLevelSourceDir=$1
topLevelBuildDir=$2
configPath=$3
@mitchcurtis
mitchcurtis / qt-git-sync-to.sh
Created October 30, 2021 12:08
Script to sync Qt modules
#!/bin/bash
usageExample="Usage: cd ~/dev/qt-dev/qtdeclarative && git fetch && git reset --hard origin/dev && cd .. && qt-git-sync-to.sh qtdeclarative HEAD"
if [ -z "$1" ]; then
echo "module argument not supplied"
echo $usageExample
exit 1
fi
@romkatv
romkatv / run-command.zsh
Last active October 25, 2024 11:50
Zsh function to run a command and capture its status, stdout and stderr
# Runs "$@" in a subshell with the caller's options, sets reply=(stdout stderr)
# and returns the status of the executed command. Both stdout and stderr are
# captured completely, including NUL bytes, incomplete UTF-8 characters and
# trailing LF, if any.
#
# Example:
#
# % zsh-run-command ls -d ~ /garbage
# % printf 'status: %s\nstdout: %s\nstderr: %s\n' $? "${(q+)reply[@]}"
# status: 2
@divi255
divi255 / logger.py
Last active August 20, 2021 08:08
Logging from embedded Python to Rust
import logging
def rust_emit_log(*args):
# Override from Rust with pyfunction
pass
class RustLogHandler(logging.Handler):
def emit(self, record):
msg = f'{record.name}: {record.getMessage()}'
@tmccombs
tmccombs / README.adoc
Last active December 9, 2023 02:58
XDG Default Applications
@jfcherng
jfcherng / st4-changelog.md
Last active August 18, 2024 07:25
Sublime Text 4 changelog just because it's not on the official website yet.
void action::ItemAmiiboCreateFromDropTable::doSpawn(const sead::SafeString& drop, BaseProcHandle* procHandle, const Vec3* additionalPosOffset)
{
if (!drop)
return;
const bool isImportant = ActorInfoData::sInstance->hasTagByName(drop.c_str(), Tag_Important);
if (isImportant && GameDataMgr::sInstance && GameDataMgr::sInstance->getFlagBool("IsGet_" + drop))
return;
if ( sead::SafeStringBase<char>::findIndex(drop, "GameRomHorse") != -1 )
@MikeDacre
MikeDacre / RENEW.md
Last active April 3, 2022 21:11
These are the instructions I use myself for my annual GPG key renewal. I am sharing them here to help others, though they are not perfect.

Renewing the GPG Key

The point is to renew the core signing key, encryption key, and authentication key, and to create a set of subkeys to be used on devices without access to the GPG card.

The encryption key should not 'expire' ever, as it is needed for communication, the same is true for the parent key, which should never be anywhere other than the card and the veracrypt container. We give them an expiration date anyway, so that if something happens and I can't renew them, they eventually become invalud.

@cypok
cypok / excelsior-quiz-at-jbreak.markdown
Last active June 13, 2021 12:39
Excelsior Quiz @ JBreak / 4 марта 2018