Skip to content

Instantly share code, notes, and snippets.

@denilsonsa
denilsonsa / digit9brazil.js
Last active August 26, 2024 13:33
Google Apps Script to find mobile phone numbers meeting certain criteria (look inside "updateNumber()" and "fixNumbersFromGoogleContacts()" for details) and add a ninth digit to them. Scans all phone numbers in your Google Contacts, using official Google APIs. Also includes a simple and ugly UI for the most basic usage.
// digit9brazil.gs
// Google Apps Script
//
// Objective:
// Find mobile phone numbers meeting certain criteria (look inside "updateNumber()" and
// "fixNumbersFromGoogleContacts()" for details) and add a ninth digit to them.
//
// Live link:
// https://script.google.com/macros/s/AKfycbzWlGLgZmA0lygkwMLp3p6RrRFIbBfVdKGXaUAcJCJo59R492E/exec
//
@denilsonsa
denilsonsa / README.md
Last active August 18, 2024 01:28 — forked from a9cQ0Q/README.md

slow

This bash script offers quick shortcuts to simulate slower network connections. It is useful when you need to simulate a wireless network on a Linux network server, especially when you are using a virtual machine guest on your local machine or in the cloud.

slow 3G                   # Slow network on default eth0 down to 3G wireless speeds
slow 3G -l 600ms -p 10%   # slow network on eth0 and setup latency to 600ms packetloss to 10%
slow reset                # Reset connection for default eth0 to normal
slow vsat --latency=500ms # Simulate satellite internet  with a high latency

slow dsl -b 1mbps # Simulate DSL with a slower speed than the default

@denilsonsa
denilsonsa / AveryLabels.ipynb
Last active August 16, 2024 16:40
Avery labels template parser
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@denilsonsa
denilsonsa / README.md
Last active July 16, 2024 14:44 — forked from noromanba/README.md
add permanently HEAD links on Gist for UserScript
@denilsonsa
denilsonsa / README.md
Last active July 15, 2024 18:07
Embed VTT subtitles into HTML

Embed VTT subtitles into HTML

Objective

I have a video file on my local disk. I also have some subtitles (in HTML5's [WebVTT][] format).

I want to create an HTML file to play that video with subtitles, all from the local filesystem.

Problem

@denilsonsa
denilsonsa / Denilsons-keyboard-idea-v2_1.kbd.json
Last active July 11, 2024 22:58
Denilson's keyboard idea v2.1
[
{
"name": "Denilson's keyboard idea v2.1",
"author": "Denilson",
"pcb": false,
"plate": false
},
[
"Esc",
{
@denilsonsa
denilsonsa / README.md
Last active July 2, 2024 15:43
Python Mandelbrot fractal

Python Mandelbrot fractal

Trivial implementation of the Mandelbrot fractal written in pure Python. It outputs to the terminal using 24-bit ANSI escape codes, which is widely supported by many terminals.

No optimization was done to the code. It's supposed to be simple and straightforward.

There is a one-to-one mapping between each calculated point from the fractal and one output character. This results in a low-resolution image made of characters (instead of pixels),

@denilsonsa
denilsonsa / Guide.md
Last active June 25, 2024 22:30
How to add Windows-only non-Steam games to Steam Deck

How to add Windows-only non-Steam games to Steam Deck

This guide explains how to add a Windows-only game (or application) to Steam Deck. It also works for Steam running on Linux on any hardware (your laptop, your desktop, etc.). By following these instructions you can add any freeware and fan-game to your system. Of course, just be careful and don't download anything suspicious.

This guide was originally written as a comment to a YouTube video. However, YouTube comments are trash and are randomly silently dropped, so I'm rewriting it here. It's also easier to point people towards this guide.

Prerequisites

  • You know how to use the desktop mode.
  • You understand the concept of files and folders; and you know how to uncompress a ZIP file (or whatever format you have downloaded).
@denilsonsa
denilsonsa / README.md
Last active June 18, 2024 21:30
Steam Community modals as links

Steam Community modals as links

Converts pseudo-links from Steam Community into real anchor tags. Advantages:

  • No JavaScript needed for opening Steam Community items. They are now plain links.
  • We can open them as a full page, instead of being constrained to the clunky modal dialog.
  • We can open them as a new tabs or as a new windows.
  • We can right-click to copy the link to each item.
  • We can click-and-drag the link.
  • We can open many items as background tabs (by middle-clicking on them) and let them load in the background, instead of forcing us to wait for them to load.
@denilsonsa
denilsonsa / README.md
Last active June 18, 2024 21:08
Bundle Helper Reborn