Skip to content

Instantly share code, notes, and snippets.

View carlosal1015's full-sized avatar
🇵🇪
Studying mathematics

Oromion carlosal1015

🇵🇪
Studying mathematics
View GitHub Profile
@thesamesam
thesamesam / xz-backdoor.md
Last active June 27, 2024 15:18
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

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@behackl
behackl / Dockerfile
Created February 2, 2021 13:24
Manim Community v0.3.0 interactive release tour (mybinder.org)
FROM manimcommunity/manim:v0.3.0
COPY --chown=manimuser:manimuser . /manim
@orhun
orhun / Arch_Linux_Packaging.md
Last active February 26, 2024 23:43
Custom guide for managing Arch Linux packages

Packaging for Arch Linux

Requirements

@bartoszek
bartoszek / git_submodule_PKGBUILD_conf.sh
Last active April 25, 2023 08:40
PKGBUILD: generate git submodule configuration.
#!/bin/bash
# shellcheck disable=SC2164,SC2154 # mask unsafe cd and uninitialized variables warings
shopt -s globstar
# How to use:
# * run in PKGBUILD dir or pass path to PKGBUILD as argument
# this will generate volatile source tree in $TMP (default: /tmp) and
# generate source array and prepare_submodule() function to init them
# * add local=1 env var to use src/ dir in PKGBUILD path instead of $TMP
# * add remote=1 env var to update module past the pined commit hash

Pre-requisitos:

arch-install-scripts, deboostrap

Instalación ArchLinux: mkdir ArchLinux && pacstrap -c ArchLinux base linux-api-headers

Una vez iniciada sesion con systemd-nspawn -D ArchLinux (debe usar la opción -D solamente), debemos borrar los archivos /etc/securetty y /usr/share/factory/etc/securetty dentro del contenedor solamente, además de añadirlos al archivo /etc/pacman.conf del mismo, en la opción NoExtract. La línea sería la siguiente:

NoExtract = /etc/securetty /usr/share/factory/etc/securetty

@vegard
vegard / kernel-dev.md
Last active June 26, 2024 09:41
Getting started with Linux kernel development

Getting started with Linux kernel development

Prerequisites

The Linux kernel is written in C, so you should have at least a basic understanding of C before diving into kernel work. You don't need expert level C knowledge, since you can always pick some things up underway, but it certainly helps to know the language and to have written some userspace C programs already.

It will also help to be a Linux user. If you have never used Linux before, it's probably a good idea to download a distro and get comfortable with it before you start doing kernel work.

Lastly, knowing git is not actually required, but can really help you (since you can dig through changelogs and search for information you'll need). At a minimum you should probably be able to clone the git repository to a local directory.

@N0rbert
N0rbert / test-mkl.sh
Last active February 17, 2024 14:55
This test script is a result of a discussion on AskUbuntu (https://askubuntu.com/q/1265756/66509 ) about using Intel MKL in Ubuntu
#!/bin/sh
# This test script is a result of a discussion on AskUbuntu (https://askubuntu.com/q/1265756/66509 ) about using Intel MKL in Ubuntu
#
# Modern Ubuntu versions include Intel MKL libraries since Ubuntu 19.10 (such as https://packages.ubuntu.com/focal/libmkl-full-dev )
# and it is expected that this library may be used by some scientific applicaitons like Octave, Scilab and others.
#
# Test method:
# 1. Execute this script with default mathematical libraries, save the results
# 2. Install the Intel MKL library with `sudo apt-get install libmkl-full-dev` confirming its usage as default math libraries alternative
# 3. Execute this script again after Intel MKL installation to compare the results
@wildrun0
wildrun0 / compile-ffmpeg.sh
Last active May 23, 2024 09:36
Compiling ffmpeg for Raspberry Pi 4 (script only works fine on RPi OS 32bit). x64 does not support mmal (see https://github.com/raspberrypi/userland/issues/688)
#!/bin/bash
# Note that there's no libdrm because this lib cause errors
sudo apt update -y && sudo apt upgrade -y
sudo apt-get -y install \
autoconf \
automake \
build-essential \
@ld100
ld100 / ArchLinuxWSL2.md
Last active June 25, 2024 15:57
Steps for setting up Arch Linux on WSL2

Migrating from Ubuntu on WSL to ArchLinux on WSL2

Obsolete notice

This document was created back in 2020 and might not be actual nowadays. It is not supported anymore, so use thise information at your own risk.

Upgrading to WSL 2

  • Download WSL2 Kernel
  • run wsl --set-default-version 2 in windows command line, so that all future WSL machine will use WSL2.