This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Vacuum journals | |
sudo journalctl --vacuum-size=500M && sudo journalctl --vacuum-time=7d | |
# Remove all uninstalled packages | |
sudo paccache -rvuk0 | |
# Remove old installed packages, leave 3 | |
sudo paccache -rvk3 | |
# Clean yay cache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm ls -gp --depth=0 | awk -F/ '/node_modules/ && !/\/npm$/ {print $NF}' | xargs npm -g rm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
# Move | |
puts "Is the move the same type as the Pokemon? (0 - yes, 1 - no) " | |
same_type = gets.chomp.to_i | |
puts "What's the move type? (0 - attack, 1 - special attack) " | |
f = gets.chomp.to_i # 0 - attack / 1 - special attack | |
puts "What's the move attack power? (0-200) " | |
c = gets.chomp.to_i # move attack power |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo pamac install vlc vlc-arc-dark-git libva-vdpau-driver libva-intel-driver | |
# After installing on Arch with pacman/yaourt/yay etc.. its in "/usr/share/vlc/skins2/" | |
# but VLC is not using the theme automatically. | |
# Start VLC and open Settings -> choose "custom Settings" and go to "/usr/share/vlc/skins2/" | |
# with the file browser. Select the wanted skin, press "Save" and restart VLC. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generated by Powerlevel10k configuration wizard on 2022-12-21 at 15:49 -03. | |
# Based on romkatv/powerlevel10k/config/p10k-lean.zsh, checksum 59558. | |
# Wizard options: nerdfont-complete + powerline, large icons, unicode, lean, 2 lines, | |
# solid, left frame, dark-ornaments, compact, many icons, concise, | |
# instant_prompt=verbose. | |
# Type `p10k configure` to generate another config. | |
# | |
# Config for Powerlevel10k with lean prompt style. Type `p10k configure` to generate | |
# your own config based on it. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[MASTER] | |
# A comma-separated list of package or module names from where C extensions may | |
# be loaded. Extensions are loading into the active Python interpreter and may | |
# run arbitrary code. | |
extension-pkg-allow-list= | |
# A comma-separated list of package or module names from where C extensions may | |
# be loaded. Extensions are loading into the active Python interpreter and may | |
# run arbitrary code. (This is an alternative name to extension-pkg-allow-list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var jwtSecret = 'xxxxxxxxxxxxxxxxx' | |
// Set headers for JWT | |
var header = { | |
'typ': 'JWT', | |
'alg': 'HS256' | |
}; | |
// Prepare timestamp in seconds | |
var currentTimestamp = Math.floor(Date.now() / 1000) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir ~/.themes | |
cd /usr/share/themes | |
cp -R * ~/.themes | |
sudo flatpak override --filesystem=$HOME/.themes | |
~/.themes > sudo flatpak override --env=GTK_THEME=Adwaita-dark |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Name=Startup | |
GenericName=Startup | |
Comment=Startup script | |
Exec='/home/d/.config/autostart/startup.sh' | |
Terminal=false | |
Type=Application | |
X-GNOME-Autostart-enabled=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sentry_sdk | |
from fastapi import FastAPI | |
sentry_sdk.init( | |
dsn="your_dns", | |
) | |
app = FastAPI() | |