Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focused

Pedro Torres Corfucinas

🎯
Focused
View GitHub Profile
@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]]
@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 / 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
View postgresql-diesel-rust-types.md
PostgreSQL Type PostgreSQL Size Description Range Diesel Type Rust Type
Nullable Types nullable Nullable``
@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