Skip to content

Instantly share code, notes, and snippets.

View kenielf's full-sized avatar
🦀
Learning Rust!

Chrystian kenielf

🦀
Learning Rust!
  • Brazil
View GitHub Profile
@kenielf
kenielf / .zshrc
Last active April 16, 2022 21:07
Cursed CMD prompt on zsh
setopt PROMPT_SUBST
PS1='C:$(pwd | sed -e "s/home/Users/g" | tr "/" "\\" 2> /dev/null)>'
export PS1
clear && echo -e "Microsoft Windows [version 10.0.19043.1586]\n(c) Microsoft Corporation. All rights reserved.\n"
@kenielf
kenielf / caculator.py
Created July 9, 2022 14:06
Python "caculator" meme
#!/usr/bin/env python3
import time
# Simple user input
print(f"\033[32mVersatile Python Height Caculator\033[37m")
u_input = input("What is your height?\n> ")
# Get time before loop
start_time = time.time()
while True:
@kenielf
kenielf / guide--formatting--bios_gpt.md
Created September 16, 2022 16:09
Guide on how to install GRUB with GPT Partitioning on a BIOS only system.

Formatting Guide

BIOS Only + GPT + GRUB

Structure Example:

sdX      8:0    0 223.6G  0 disk 
├─sdX1   8:1    0     1M  0 part 
├─sdX2   8:2    0     4G  0 part [SWAP]
├─sdX3   8:3    0    80G  0 part /
└─sdX4   8:4    0   139G  0 part /home
@kenielf
kenielf / gentoo.md
Last active October 9, 2022 01:59
Gentoo Base Installation - Linux Mint

Prepare the Live Environment

sudo su

mkdir /mnt/gentoo
apt install -y vim git
curl 'https://raw.githubusercontent.com/cemkeylan/genfstab/master/genfstab' > /mnt/genfstab
chmod +x /mnt/genfstab

# Format the Disk
@kenielf
kenielf / arch.md
Last active April 4, 2023 23:42
Full Arch Linux Installation Guide

1: Base Installation

1.1: Preparing

Connect to a network, load keymaps and check for efivars. Firstly, connect to a network using iwctl with these commands:

  • iwctl: Enter the iwctl utility;
  • device list: List the possible devices to connect with;
  • station DEVICE scan: Scan networks on DEVICE;
  • station DEVICE get-networks: List all networks on DEVICE;
  • station DEVICE connect SSID: Connect to SSID with DEVICE; Note: Don't forget to test if you're connected with ping 'https://archlinux.org/'
@kenielf
kenielf / essentials.txt
Last active March 26, 2023 19:40
Gmod essentials
UI Reworks:
https://steamcommunity.com/sharedfiles/filedetails/?id=504945881
https://steamcommunity.com/sharedfiles/filedetails/?id=1169579845
https://steamcommunity.com/sharedfiles/filedetails/?id=950493639
https://steamcommunity.com/sharedfiles/filedetails/?id=112806637
https://steamcommunity.com/sharedfiles/filedetails/?id=284538302
https://steamcommunity.com/sharedfiles/filedetails/?id=1214291289
Tools:
https://steamcommunity.com/sharedfiles/filedetails/?id=279079869

1: Base Installation

1.1: Preparing

Connect to a network, load keymaps and check for efivars. Firstly, connect to a network using iwctl with these commands:

  • iwctl: Enter the iwctl utility;
  • device list: List the possible devices to connect with;
  • station DEVICE scan: Scan networks on DEVICE;
  • station DEVICE get-networks: List all networks on DEVICE;
  • station DEVICE connect SSID: Connect to SSID with DEVICE; Note: Don't forget to test if you're connected with ping 'https://archlinux.org/'

Personal Git Organization

Preamble

This is meant as a memo and guide for the usage of my own git structure, and I do not intend for this to be the "most optimal" way possible, just simply a way I found to organize and structure my repositories.

Others are more than welcome to copy, change and critique in whichever way they might prefer.

*Things written in this gist are likely to change according to my own

@kenielf
kenielf / anomalies.py
Last active September 25, 2023 15:13
Quick trial run for something
from pathlib import Path
from re import sub
from sys import exit, stderr
import pandas as pd
import matplotlib.pyplot as plt
from colorama import Fore
from requests import get
URL = r"https://www.cpc.ncep.noaa.gov/data/indices/sstoi.indices"
#!/usr/bin/env sh
while true; do c=31; while [ ${c} -le 37 ]; do printf "\e[H\033c\e[${c}m%s\e[00m" "${*}"; sleep 0.125; c=$((c + 1)); done; done