Skip to content

Instantly share code, notes, and snippets.

View zschzen's full-sized avatar
🍸
Come cheer up, my lads

Leandro Peres zschzen

🍸
Come cheer up, my lads
View GitHub Profile

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@zschzen
zschzen / post-installation-void-linux-glibc.txt
Created September 18, 2025 12:53 — forked from bastomiadi/post-installation-void-linux-glibc.txt
Post installation Void Linux (Glibc)
1. Update all package system
sudo xbps-install -Suv
2. add non-free repo
sudo xbps-install -Rs void-repo-nonfree
3. Software & utilities
sudo xbps-install -Rs xdg-desktop-portal xdg-desktop-portal-gtk xdg-user-dirs xdg-user-dirs-gtk xdg-utils vlc pipewire libspa-bluetooth noto-fonts-cjk noto-fonts-emoji noto-fonts-ttf noto-fonts-ttf-extra libreoffice-writer libreoffice-calc libreoffice-impress rhythmbox neofetch ntfs-3g gimp inkscape lm_sensors wget udisks2 gvfs mtpfs gvfs-mtp gvfs-gphoto2 xtools WoeUSB xz unrar qt5-wayland nano ffmpeg Kooha handbrake inxi streamlink
4. Install chrome gnome, gnome menu For Gnome & extension
@zschzen
zschzen / tiny_fiber.h
Created May 3, 2025 21:52 — forked from JiayinCao/tiny_fiber.h
Tiny Fiber ( A razor thin cross platform fiber library )
/*
MIT License
Copyright (c) 2023 Jiayin Cao
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@zschzen
zschzen / main.cpp
Last active September 30, 2024 20:12
#include <iostream>
#include "particle.h"
int main()
{
constexpr Vector2D g = { 0.0F, -9.8F }; // Constante gravitacional
constexpr float dt = 1.0F / 60.0F; // Passo de tempo para simulação
Particle apple { 0 };
@zschzen
zschzen / ShowOnlyAttribute.cs
Last active December 18, 2020 03:38
Readonly inspector property taken from http://answers.unity.com/answers/793967/view.html
using UnityEngine;
public class ShowOnlyAttribute : PropertyAttribute {}
@zschzen
zschzen / GetAllLinksBasedOnExtensions.js
Last active October 24, 2020 23:13
Code responsible for listing all links of the 'a' HTML tag, being guided primarily by the extension of the files, as well as '* .pdf'.
var pdflinks = [];
Array.prototype.map.call(document.querySelectorAll("a[href$=\".pdf\"]"), function(e, i) {
if ((pdflinks || []).indexOf(e.href) == -1) {
pdflinks.push(e.href);
}
});
console.log(pdflinks.join(" "));