Skip to content

Instantly share code, notes, and snippets.

View ntorga's full-sized avatar

Northon Torga ntorga

View GitHub Profile

This Privacy Policy is intended to inform you about the scope of the services provided by INFINITE CLOUD COMPUTING and everything that affects the personal data you provide to us, as well as your rights as the data subject.

This Privacy Policy has been prepared in compliance with Brazilian Federal Law No. 1965 of April 23, 2014 (Internet Civil Framework), Brazilian Federal Law No. 13.709 of August 14, 2018 (Personal Data Protection Law), and EU Regulation No. 2016/679 of April 27, 2016 (General European Data Protection Regulation).

This Policy describes how we collect, use, process, and disclose your information and personal data, in connection with your access to and use of Infinite's services.

This Privacy Policy describes our privacy practices only for the websites, platforms, and services linked to it. If you are redirected to third-party pages or services, please read those providers' policies.

We recommend reading this document in full, as it is the most appropriate way to become aware of your r

This agreement shall be governed by the clauses, conditions, and annexes throughout this document, all entered into by (1) INFINITE COMPUTAÇÃO EM NUVEM LTDA – ME, and (2) the BUYER of its respective services, namely:

(1) INFINITE, or CONTRACTOR, a company headquartered in the city of Santa Cruz de Minas, State of Minas Gerais, Brazil, at Rua Sete de Setembro, nº 481 - CEP 36328-000, registered with CNPJ/MF under nº 26.407.618/0001-64.

(2) INDIVIDUAL or LEGAL ENTITY identified in INFINITE’s electronic database.

DEFINITIONS

The words and terms below, which will be repeated throughout this Agreement, have the following definitions:

@ntorga
ntorga / kinoite.sh
Last active November 4, 2025 15:43
#!/bin/bash
#
# The script will perform most of the steps, however, you must edit a few settings
# manually AFTER running the script:
#
# 1) System Settings:
# a) Mousepad & Touchpad => Screen Edges => Disable top left corner action;
# b) Colours & Themes:
# I. Select "Breeze Dark";
# II. Global Theme => Window Decorations => Breeze => Pen icon => Shadows and Outline:
#!/bin/bash
sudo rpm-ostree update
sudo rpm-ostree install autossh flameshot htop libvirt-daemon-config-network libvirt-daemon-kvm nmap qemu-kvm sshpass telnet traceroute vim virt-install virt-manager virt-viewer wireguard-tools wtype make
systemctl reboot
sudo systemctl enable libvirtd --now
flatpak install flathub app.devsuite.Ptyxis
flatpak install flathub app.zen_browser.zen
xdg-settings set default-web-browser app.zen_browser.zen.desktop
flatpak install flathub com.google.Chrome
flatpak install flathub org.filezillaproject.Filezilla
function hexToRgbTransformer(originalHex) {
const redChannel = parseInt(originalHex.slice(1, 3), 16);
const greenChannel = parseInt(originalHex.slice(3, 5), 16);
const blueChannel = parseInt(originalHex.slice(5, 7), 16);
return { red: redChannel, green: greenChannel, blue: blueChannel };
};
function rgbChannelToHex(colorChannel) {
const positiveChannelValue = Math.max(0, colorChannel);
#!/bin/bash
#
# The script will perform most of the steps, however, you must edit a few settings manually AFTER running the script:
#
# 1) Replace Whisker icon to "format-justify-fill";
# 2) Settings -> Apparence -> Select Dark theme and icons and enable toggle for matching xfce themes;
# 3) Settings => Keyboard => App Shortcuts => Add "/usr/bin/flameshot gui" => Print Screen => Keep Flameshot;
# 4) Reduce Workspaces to 1;
# 5) Configure energy settings to 15 min blank screen, 60min suspend;
# 6) Add the following itens to Whisker menu as favorites:
#!/bin/bash
#
# The script will perform most of the steps, however, you must edit a few settings manually AFTER running the script:
#
# 1) Replace Whisker icon to "format-justify-fill" and configure to show as list. Check boxes 2 and 4 on General tab;
# 2) Settings -> Apparence -> Select Dark theme and icons;
# 3) Settings => Keyboard => App Shortcuts => Add "/usr/bin/flameshot gui" => Print Screen => Keep Flameshot;
# 4) Adjust clock layout to hour + date;
# 5) Reduce Workspaces to 1 and remove unecessary launchers from tray;
# 6) Add the following itens to Whisker menu as favorites:
@ntorga
ntorga / humanReadableBytesAdapter.ts
Created April 5, 2024 18:14
A human readable bytes adapter for TypeScript/JavaScript that is actually (and finally) readable.
function humanReadableBytesAdapter(rawBytesQuantity: number): string {
const bytesUnits = ['bytes', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB'];
let unitSuffixIndex = 0;
const isQuantityNegative = rawBytesQuantity < 0;
const rawBytesQuantityAbsolute = Math.abs(rawBytesQuantity);
let shortestBytesNumeral = rawBytesQuantityAbsolute;
while (shortestBytesNumeral >= 1024 && unitSuffixIndex < bytesUnits.length - 1) {
shortestBytesNumeral /= 1024;
# ~/.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
#!/bin/bash
#
# The script will perform most of the steps, however, you must edit a few settings manually AFTER running the script:
#
# 1) a) Replace Menu Lite with Whisker;
# b) All Icons - Search "format-justify-fill";
#
# 2) Settings -> Apparence -> Select Dark Mode;
#
# 3) Settings => Keyboard => App Shortcuts => Add "/usr/bin/flameshot gui" => Print Screen => Keep Flameshot.