Skip to content

Instantly share code, notes, and snippets.

View gilsondev's full-sized avatar
💼
Work

Gilson Filho gilsondev

💼
Work
View GitHub Profile
@gilsondev
gilsondev / style.css
Created June 7, 2023 15:24
Arc Boost to hide Youtube Shorts
/*
* Remove shorts in subscriptions
* Source: https://arcboosts.com/boosts/48/no-youtube-shorts-in-subscriptions
*/
.ytd-rich-grid-row:has([aria-label="Shorts"]):not(#items) {display: none !important}
/* Remove Menu item "Shorts" in sidebar */
.ytd-guide-section-renderer [title="Shorts"] {display: none !important}
@gilsondev
gilsondev / udemy_xpath_course_details.js
Created September 3, 2022 19:26
Extract Course Names from Udemy Course using DevTools
$x('/html/body/div[1]/div[2]/div/div/div[1]/div[6]/div/div[2]/div/div[2]/div/div/h3/button/span/span[1]/text()').forEach(item => console.log(item.data))

Tokyo Night Slack theme

  1. Copy this hex colors
#1A1B26,#3B4252,#9AA5CE,#24283B,#565F89,#C0CAF5,#9ECE6A,#7DCFFF,#24283B,#C0CAF5

Tokyo Night Color Schema using Obsidian Minimal Theme

{
  "minimal-advanced@@font-smallest": 12,
  "minimal-advanced@@font-smaller": 13,
  "minimal-style@@h1": "1.325em",
  "minimal-style@@h2": "1.225em",
  "minimal-style@@base@@dark": "#1A1B26",
  "minimal-style@@accent@@dark": "#24283B",

Portainer Templates

@gilsondev
gilsondev / tlp
Last active April 24, 2020 13:19 — forked from pauloromeira/tlp
My TLP config file (/etc/default/tlp) for ThinkPad
# ------------------------------------------------------------------------------
# tlp - Parameters for power saving
# See full explanation: http://linrunner.de/en/tlp/docs/tlp-configuration.html
# dir: /etc/default/tlp
# Hint: some features are disabled by default, remove the leading # to enable
# them.
# Set to 0 to disable, 1 to enable TLP.
@gilsondev
gilsondev / parse_pdf.py
Created May 16, 2019 02:16
Example to use camelot-py
# Camelot: PDF Table Extraction for Humans
# Documentation: https://camelot-py.readthedocs.io/en/master/
import camelot
# Read the PDF and specify the pages
tables = camelot.read_pdf("manual.pdf", pages='27')
# Visualize with pandas
tables[0].df
@gilsondev
gilsondev / generage_secret_key.py
Created June 5, 2018 01:45
Generate secret_key
#!/usr/bin/env python
from django.core.management.utils import get_random_secret_key
print(get_random_secret_key())

Numbers

Text

  • Reverse a String – Enter a string and the program will reverse it and print it out.
  • Pig Latin – Pig Latin is a game of alterations played on the English language game. To create the Pig Latin form of an English word the initial consonant sound is transposed to the end of the word and an ay is affixed (Ex.: "banana" would yield anana-bay). Read Wikipedia for more information on rules.
  • Count Vowels – Enter a string and the program counts the number of vowels in the text. For added complexity have it report a sum of each vowel found.
  • Check if Palindrome – Checks if the string entered by the user is a palindrome. That is that it reads the same forwards as backwards like “racecar”
  • Count Words in a String – Counts the number of individual words in a string. For added complexity read these strings in from a text file and generate a summary.
@gilsondev
gilsondev / install.sh
Last active August 9, 2016 15:36 — forked from claudiosanches/install.sh
Install Strem.io
#!/usr/bin/env bash
FILE="Streamio.tar.gz"
if [ -f "$FILE" ]
then
echo "Arquivo $FILE encontrado."
else
echo "Arquivo não encontrado. Iniciando download..."
wget http://www.strem.io/download -O Streamio.tar.gz