Skip to content

Instantly share code, notes, and snippets.

View reginaldosnunes's full-sized avatar

Reginaldo Nunes reginaldosnunes

View GitHub Profile
@jatubio
jatubio / download.js
Created March 5, 2021 11:58
Download Google Drive protected/view only document
let jspdf = document.createElement("script");
jspdf.onload = function () {
let pdf = new jsPDF();
let elements = document.getElementsByTagName("img");
for (let i in elements) {
let img = elements[i];
console.log("add img ", img);
if (!/^blob:/.test(img.src)) {
console.log("invalid src");
continue;
@COFFEETALES
COFFEETALES / EdgeChromium.ps1
Last active October 22, 2025 08:35
PowerShell, Winforms and WebView 2, the getting started app
Param ( [String]$URL = 'https://coffeetales.net', [String]$Mode = 'Default' )
If ( 'Default' -ieq $Mode ) {
#[String]$WindowsPowershellPath =
# [IO.Path]::Combine(
# ([String[]]@( [Environment]::SystemDirectory, 'WindowsPowerShell', 'v1.0', 'powershell.exe' ))
# )
[String]$PowerShellPath = Get-Process -Id $PID | Select-Object -ExpandProperty Path
Start-Process `
@balazsbotond
balazsbotond / notify.ps1
Last active February 15, 2025 23:13
PowerShell script for sending Windows 10 notifications
$ErrorActionPreference = "Stop"
$notificationTitle = "Build Succeeded"
[Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] > $null
$template = [Windows.UI.Notifications.ToastNotificationManager]::GetTemplateContent([Windows.UI.Notifications.ToastTemplateType]::ToastText01)
$toastXml = [xml] $template.GetXml()
$toastXml.GetElementsByTagName("text").AppendChild($toastXml.CreateTextNode($notificationTitle)) > $null
$xml = New-Object Windows.Data.Xml.Dom.XmlDocument
$xml.LoadXml($toastXml.OuterXml)
$toast = [Windows.UI.Notifications.ToastNotification]::new($xml)
$toast.Tag = "Test1"
@dend
dend / toast.ps1
Last active July 6, 2026 01:22
Toast Notification in PowerShell
function Show-Notification {
[cmdletbinding()]
Param (
[string]
$ToastTitle,
[string]
[parameter(ValueFromPipeline)]
$ToastText
)
@ppoffice
ppoffice / README.md
Last active May 26, 2026 13:00
Install Visual Studio Code (actually code-server) on Android
  1. Install Termux, an Android terminal emulator that provides a Linux execution environment and various tools.

  2. Update system packages in Termux:

    $ pkg update -y
@andreasbotsikas
andreasbotsikas / Vob2Mp4.bat
Last active September 8, 2025 10:38
Convert DVD to mp4 using ffmpeg
REM Download ffmpeg from https://www.ffmpeg.org/download.html.
REM Place ffmpeg.exe in the folder with the vob files
REM Merge all vob files into one
REM VTS_01_0.VOB is usually the menu which you may not want
if exist VTS_01_7.VOB (
copy /b VTS_01_1.VOB+VTS_01_2.VOB+VTS_01_3.VOB+VTS_01_4.VOB+VTS_01_5.VOB+VTS_01_6.VOB+VTS_01_7.VOB ConCat.vob
) else if exist VTS_01_6.VOB (
copy /b VTS_01_1.VOB+VTS_01_2.VOB+VTS_01_3.VOB+VTS_01_4.VOB+VTS_01_5.VOB+VTS_01_6.VOB ConCat.vob
) else if exist VTS_01_5.VOB (
@sveggiani
sveggiani / djying.md
Last active August 12, 2024 07:25
[DJ / Music mixing] #dj #study-notes #masscode

DJ

1. Concepts

1.1. Cue

Differences between Hot Cues and Memory Cues

  • Memory Cues: cannot be set on the fly and are always sequential. Requires the track to be paused and to mark it with the Cue button. Can be saved with an active loop (rekordbox). Useful when the exit in a song is very short, you could set a Memory Cue with an active loop and keep the track looping.
  • Hot Cues: can be set on the fly and in any order (non sequential). They allow to keep the song playing after jumping to them (depending on the configuration)
@fnky
fnky / ANSI.md
Last active July 20, 2026 02:39
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@DarthJahus
DarthJahus / whois.ps1
Created November 2, 2017 23:52
Whois command for PowerShell
<#
.SYNOPSIS
Domain name WhoIs
.DESCRIPTION
Performs a domain name lookup and returns information such as
domain availability (creation and expiration date),
domain ownership, name servers, etc.
.PARAMETER domain
@yangxuan8282
yangxuan8282 / emoji-info.sh
Last active January 24, 2025 18:39
Emoji❤bash
#!/bin/bash
# run this scripts with `bash emoji-info.sh` or `./emoji-info.sh`
usage() {
cat << EOF
usage: $0 [options] <emoji>
Options:
-h Show this message
-o Octal Escape Sequence