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 / cltex.sh
Created March 13, 2024 14:54
Compile Latex Documents On Change
#!/usr/bin/env sh
# vi: ft=sh
if ! (command -v lualatex >/dev/null 2>&1); then
printf "CLTEX: %s\n" "Please install lualatex!"
exit 1
fi
# Make sure the file exists
if ! [ -f "${1}" ]; then
printf "CLTEX: %s\n" "Target file does not exist!"
@kenielf
kenielf / components.md
Created February 24, 2024 13:45
A list of visual components

Ui Components Demo

Window Control

  • Panes
  • Pages
  • Tabs
  • SeparatorLines

Text Rendering

  • Label
  • Heading 1

Exemplo de Arquivo Markdown

Com arquivos em markdown, você tem uma maior extensão da qualidade de conteúdos em texto!


Você pode utilizar headers

Além de subheaders!

e subsubheaders!!

  • Listas Numeradas:
  1. Wow
@kenielf
kenielf / coordinate_converter.py
Last active January 18, 2024 19:18
Convert DMS (Degree Minutes Seconds) coordinates to decimal
#!/usr/bin/env python3
# By Chrystian M. F.
from typing import List, Tuple
def get_coordinates() -> Tuple[List[int], List[int]]:
# Get Latitude
latitude_str: List[str] = (
input("Latitude (Degrees Minutes Seconds)\n > ").strip().lower().split(" ")
)
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
CWD = Path(__file__).parent
@kenielf
kenielf / minecraft-installations.md
Last active November 10, 2023 01:58
A guide to my personal modded installations of minecraft.

Kenielf's Modded Installations

Vanilla+

About

This is my preferred way of playing the game, taking the vanilla experience and extending it with mods that improve performance, quality of life and add new features to make the game more engaging.

Version

  • 1.20.1

Mods

Core & Performance Mods

#!/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
@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"

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

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/'