Skip to content

Instantly share code, notes, and snippets.

View vczb's full-sized avatar
🙃
Code with passion, unleash your creations.

Vinicius Zucatti vczb

🙃
Code with passion, unleash your creations.
View GitHub Profile
@vczb
vczb / custom.conf
Created July 6, 2025 02:05
/etc/gdm3/custom.conf
# GDM configuration storage
#
# See /usr/share/gdm/gdm.schemas for a list of available options.
[daemon]
# Uncomment the line below to force the login screen to use Xorg
#WaylandEnable=false
# Enabling automatic login
# AutomaticLoginEnable = true
@vczb
vczb / release-upgrades
Created June 14, 2025 13:40
Ubuntu 20.04 /etc/update-manager/release-upgrades
# Default behavior for the release upgrader.
[DEFAULT]
# Default prompting and upgrade behavior, valid options:
#
# never - Never check for, or allow upgrading to, a new release.
# normal - Check to see if a new release is available. If more than one new
# release is found, the release upgrader will attempt to upgrade to
# the supported release that immediately succeeds the
# currently-running release.
@vczb
vczb / grub
Created June 14, 2025 13:40
Ubuntu 20.04 /etc/default/grub
# /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
@vczb
vczb / nordvpn-connect.service
Created April 15, 2025 15:01
Auto connect Nord VPN San Francisco US
#/etc/systemd/system/nordvpn-connect.service
[Unit]
Description=Connect to NordVPN on boot
After=network-online.target
Wants=network-online.target
Requires=nordvpnd.service
[Service]
Type=oneshot
ExecStart=/bin/bash -c 'export HOME=/home/vini && /usr/bin/nordvpn connect San_Francisco'
@vczb
vczb / .bashrc
Last active April 22, 2025 14:40
dotenv
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@vczb
vczb / override-post-requests.js
Created October 3, 2024 17:57
override-post-requests
//https://stackoverflow.com/questions/69592467/override-post-requests
let send = XMLHttpRequest.prototype.send;
XMLHttpRequest.prototype.send = function (body) {
const newBody = JSON.parse(body);
newBody.id = 304622;
send.call(this, JSON.stringify(newBody));
};
@vczb
vczb / nvim-backup.sh
Last active June 21, 2024 10:51
nvim backup/restore
# required
mv ~/.config/nvim{,.bak}
# optional but recommended
mv ~/.local/share/nvim{,.bak}
mv ~/.local/state/nvim{,.bak}
mv ~/.cache/nvim{,.bak}
@vczb
vczb / .bashrc
Created December 12, 2023 13:33
Ubuntu 22.04 default bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@vczb
vczb / tlp.conf
Created November 24, 2023 18:58
/etc/tlp.conf - TLP user configuration
# ------------------------------------------------------------------------------
# /etc/tlp.conf - TLP user configuration
# See full explanation: https://linrunner.de/en/tlp/docs/tlp-configuration.html
#
# New configuration scheme (TLP 1.3). Settings are read in the following order:
# 1. Intrinsic defaults
# 2. /etc/tlp.d/*.conf - Drop-in customization snippets
# 3. /etc/tlp.conf - User configuration (this file)
#
@vczb
vczb / dark-palette.css
Created July 25, 2023 11:56
ahrefs theme
:root {
--white: #fff;
--white90: #ededed;
--white80a: rgba(255, 255, 255, 0.6);
--white70a: rgba(255, 255, 255, 0.5);
--white60: #848586;
--white60a: rgba(255, 255, 255, 0.4);
--white50a: rgba(255, 255, 255, 0.33);
--white40: #676869;
--white40a: rgba(255, 255, 255, 0.26);