Skip to content

Instantly share code, notes, and snippets.

View Pablohn26's full-sized avatar
🏠
Changing the world while working at (your company)

Pablo Hinojosa Pablohn26

🏠
Changing the world while working at (your company)
View GitHub Profile
@starkdmi
starkdmi / ROCm Installation on AMD Ryzen 7 PRO 8700GE.md
Created November 2, 2024 09:41
Installing and verifying ROCm 6.2 and PyTorch 2.6 on AMD Ryzen 7 PRO 8700GE running Ubuntu
@thesamesam
thesamesam / xz-backdoor.md
Last active April 7, 2025 09:15
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.

Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.

Background

@Lissy93
Lissy93 / Example 1 - Getting Started - conf.yml
Last active April 12, 2025 02:51
Example Config Files for Dashy
---
# Page meta info, like heading, footer text and nav links
pageInfo:
title: Dashy
description: Welcome to your new dashboard!
navLinks:
- title: GitHub
path: https://github.com/Lissy93/dashy
- title: Documentation
path: https://dashy.to/docs
@sbv-trueenergy
sbv-trueenergy / Dockerfile
Last active March 22, 2025 05:36
uvicorn reload and docker-compose
FROM python:3.7
COPY requirements.txt /app/
WORKDIR /app
RUN pip install -r requirements.txt
COPY . /app
CMD ["uvicorn", "--host", "0.0.0.0", "--reload", "--reload-dir", "/app", "app:app"]
@CarlosDomingues
CarlosDomingues / python-poetry-cheatsheet.md
Last active March 27, 2025 21:26
Python Poetry Cheatsheet

Create a new project

poetry new <project-name>

Add a new lib

poetry add <library>

Remove a lib

@mohanpedala
mohanpedala / bash_strict_mode.md
Last active April 22, 2025 21:03
set -e, -u, -o, -x pipefail explanation
@yuezhu
yuezhu / gist:47b15b4b8e944221861ccf7d7f5868f5
Created February 7, 2018 18:10
Generate self-signed certificate for HAProxy
# Generate a unique private key (KEY)
sudo openssl genrsa -out mydomain.key 2048
# Generating a Certificate Signing Request (CSR)
sudo openssl req -new -key mydomain.key -out mydomain.csr
# Creating a Self-Signed Certificate (CRT)
openssl x509 -req -days 365 -in mydomain.csr -signkey mydomain.key -out mydomain.crt
# Append KEY and CRT to mydomain.pem
@RandomArray
RandomArray / urbackup-notes.txt
Created November 26, 2016 01:06
Installing UrBackup Client with and setting up common folders to backup
TF=`mktemp` && wget "https://hndl.urbackup.org/Client/2.0.36/UrBackup%20Client%20Linux%202.0.36.sh" -O $TF && sh $TF; rm $TF
urbackupclientctl add-backupdir -x -f -d /home
urbackupclientctl add-backupdir -x -f -d /root
urbackupclientctl add-backupdir -x -f -d /etc
urbackupclientctl add-backupdir -x -f -d /var