Skip to content

Instantly share code, notes, and snippets.

View willnaoosmith's full-sized avatar
🐧
Torvalds take the wheel 🙏🏻

William Brochensque Júnior willnaoosmith

🐧
Torvalds take the wheel 🙏🏻
View GitHub Profile
@willnaoosmith
willnaoosmith / gist:2a00a84a0640b7c5f3e47395f9784818
Created June 6, 2024 17:50
break text if overflows in a div
white-space: pre-wrap;
overflow-wrap: break-word ;
word-wrap: break-word;
word-break: break-word;
@ThioJoe
ThioJoe / Appx-Uninstaller.ps1
Last active November 2, 2024 05:19
A basic script for uninstalling a list of app packages in Windows 10/11, including those pre-installed with Windows
# A basic script for uninstalling app packages in Windows 10/11, including those pre-installed with Windows
#
# Note: If you get an error about the script not being allowed to run, the below command will change the execution polciy temporarily for one session only:
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process
#
# To execute the script, open a Powershell window to the directory with the script and run the following command using your scripts file name (and don't forget the .\ )
# .\WhateverScriptName.ps1
# -------------------------------------------------------------------------------------------
# Script by ThioJoe - https://github.com/ThioJoe
@willnaoosmith
willnaoosmith / smtplib simple setup
Last active November 9, 2023 11:17
smtplib simple setup
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.utils import formataddr
import smtplib
msg = MIMEMultipart()
msg['Subject'] = "Subject"
msg['From'] = formataddr(('from name here', 'from@from.com'))
msg['To'] = "addresstoreceive"
@willnaoosmith
willnaoosmith / selenium basic setup
Last active December 8, 2023 12:31
selenium basic setup
from selenium.webdriver.firefox.service import Service
from selenium.webdriver.firefox.options import Options
from selenium.webdriver.common.by import By
from selenium import webdriver
from time import sleep
import os
try:
options = Options()
options.add_argument("--headless")
@aspose-com-gists
aspose-com-gists / Convert-HTML-to-Image-Python.md
Last active July 31, 2023 19:35
Convert HTML to Image in Python | HTML to JPG in Python | HTML to PNG in Python | HTML to TIFF in Python

Learn how to convert HTML to PNG, JPEG, BMP, GIF, or TIFF images in Python : https://blog.aspose.com/2022/06/20/convert-html-to-image-in-python/

The following topics are covered in this article:

  1. Python API to Convert HTML to Image
  2. Convert HTML to JPG Image
  3. Convert HTML to PNG Image
  4. HTML to BMP Conversion
  5. Convert HTML to GIF Image
  6. Convert HTML to TIFF Image
@opastorello
opastorello / sublime text 4143 license key
Last active November 3, 2024 19:34
sublime text 4143 license key
> * Go to [hexed.it](https://hexed.it/)
> * Click "Open File" and choose your sublime_text.exe **(DON'T FORGET TO BACKUP YOUR EXE FILE)**
> * Go to Search and in "Search for" put: 80 78 05 00 0F 94 C1
> * In Search Type select "Enable replace" and put: 80 78 05 00 0F 94 C1
> * Click "Find next" then "Replace"
> * Do the same thing with: C6 40 05 01 48 85 C9 => C6 40 05 01 48 85 C9
> * Click "Save as" then name it: sublime_text
> * Copy your modified sublime_text.exe to directory Sublime Text
#!/bin/sh
# https://dl.ubnt.com/unifi/5.11.46/unifi_sh_api
#username=ubnt
#password=ubnt
#baseurl=https://unifi:8443
#site=default
#[ -f ./unifi_sh_env ] && . ./unifi_sh_env
cookie=$(mktemp)
@JerryLokjianming
JerryLokjianming / Crack Sublime Text Windows and Linux.md
Last active November 4, 2024 03:49
Crack Sublime Text 3.2.2 Build 3211 and Sublime Text 4 Alpha 4098 with Hex

How to Crack Sublime Text 3.2.2 Build 3211 with Hex Editor (Windows | Without License) ↓

  1. Download & Install Sublime Text 3.2.2 Build 3211
  2. Visit https://hexed.it/
  3. Open file select sublime_text.exe
  4. Offset 0x8545: Original 84 -> 85
  5. Offset 0x08FF19: Original 75 -> EB
  6. Offset 0x1932C7: Original 75 -> 74 (remove UNREGISTERED in title bar, so no need to use a license)
@giovanni-d
giovanni-d / allinonemigration.md
Last active November 4, 2024 06:29
All-in-One WP Migration - Restore From Server (without PRO version) - Restore

All-in-One WP Migration Restore From Server (without pro version)

If you don't want to pay for the PRO version of this plugin, and you want to use the "Restore from Server" functionally that was present in the version 6.77, follow the instructions below:

  1. Open the js file: wp-content/plugins/all-in-one-wp-migration/lib/view/assets/javascript/backups.min.js
  2. On line 1208, replace the code below:
$('.ai1wm-backup-restore').click(function (e) {
@astamicu
astamicu / Remove videos from Youtube Watch Later playlist.md
Last active November 4, 2024 18:07
Script to remove all videos from Youtube Watch Later playlist

UPDATED 22.11.2022

It's been two years since the last update, so here's the updated working script as per the comments below.

Thanks to BryanHaley for this.

setInterval(function () {
    video = document.getElementsByTagName('ytd-playlist-video-renderer')[0];

 video.querySelector('#primary button[aria-label="Action menu"]').click();