Skip to content

Instantly share code, notes, and snippets.

View pauloeli's full-sized avatar

Paulo Henrique Eli pauloeli

View GitHub Profile
@pauloeli
pauloeli / yay-ignore-package.md
Last active March 18, 2023 18:23
Yay ignore package

To ignore a package when run yay, you need to edit the /etc/pacman.conf adding in IgnorePkg the package name you want to ignore.

Example:

Before edit:

yay
:: Synchronizing package databases...
 core is up to date
@pauloeli
pauloeli / systemd.groups.md
Created February 23, 2023 13:26
Control Groups Linux

systemd-cgtop

Shows the top control groups of the local Linux control group hierarchy, ordered by their CPU, memory, or disk I/O load.

The display is refreshed in regular intervals (by default every 1s). If a control group path is specified, shows only the services of the specified control group.

systemd-cgls

Recursively shows the contents of the selected Linux control group hierarchy in a tree.

@pauloeli
pauloeli / snippet.js
Created February 21, 2023 13:16
Simulate browser NodeJS (simple)
// Dependencia:
// "playwright-chromium": "^1.12.3",
import {BrowserContext, Page} from 'playwright-chromium/types/types';
const playwright = require('playwright-chromium');
const logger = require('../helpers/logger');
export class Browser {
@pauloeli
pauloeli / readme.md
Created February 21, 2023 13:13
Disks Health in Linux

On Debian-based computers execute:

apt-get install smartmontools

However when I execute the command to show the drive info, it looks like SMART was disabled:

smartctl -a /dev/sda 
@pauloeli
pauloeli / readme.md
Last active February 21, 2023 13:06
Start new chat direct phone number (WhatsApp)

Useful for start a new chat in WhatsApp Web inputing a phone number.

// ==UserScript==
// @name         Start new chat direct phone number
// @namespace    tools
// @version      0.1
// @description  Start a new chat directly inputing the number
// @author       user
// @match        https://web.whatsapp.com/