Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focused

Pedro Torres Corfucinas

🎯
Focused
View GitHub Profile
@Corfucinas
Corfucinas / backup.md
Created Nov 9, 2022 — forked from niklaskeerl/backup.md
Encrypted backup using an external hard drive with luks and timeshift
View backup.md
@Corfucinas
Corfucinas / 2019-https-localhost.md
Created Nov 8, 2022 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains
View 2019-https-localhost.md

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@Corfucinas
Corfucinas / systemd_service_hardening.md
Created Apr 24, 2022 — forked from ageis/systemd_service_hardening.md
Options for hardening systemd service units
View systemd_service_hardening.md

security and hardening options for systemd service units

A common and reliable pattern in service unit files is thus:

NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict
View postgresql-diesel-rust-types.md
PostgreSQL Type PostgreSQL Size Description Range Diesel Type Rust Type
Nullable Types nullable Nullable``
@Corfucinas
Corfucinas / install-arch.md
Created Feb 25, 2022 — forked from mjnaderi/install-arch.md
Install Arch Linux with Full Disk Encryption (LVM on LUKS)
View install-arch.md
@Corfucinas
Corfucinas / neofetch_random_background.sh
Last active May 7, 2021
random ascii background for neofetch
View neofetch_random_background.sh
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
# Available distros until version 7.0.0
distro_list=("AIX" "Alpine" "Anarchy" "Android" "Antergos" "antiX" "AOSC"
"Apricity" "ArcoLinux" "ArchBox" "ARCHlabs" "ArchStrike"
"XFerience" "ArchMerge" "Arch" "Artix" "Arya" "Bedrock" "Bitrig"
"BlackArch" "BLAG" "BlankOn" "BlueLight" "bonsai" "BSD"
@Corfucinas
Corfucinas / graph_depth_first_search.py
Created Dec 19, 2020
dfs on python comparing dict keys as strings
View graph_depth_first_search.py
"""Depth-first search implemented in python."""
from collections import defaultdict
from typing import DefaultDict, Dict, List, Union
Raw_data = Dict[str, Dict[str, float]]
Graph = DefaultDict[str, List[str]]
Path = Union[None, List[str]]