This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Custom Filters quick shortcut | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-12-18 | |
// @description Add custom buttons that automate clicking on Custom Filters in a Jira board | |
// @author Paulo | |
// @match https://*.atlassian.net/jira/software/projects/*/boards/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=atlassian.net | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Label style in JIRA | |
// @namespace http://tampermonkey.net/ | |
// @version 2025-01-22 | |
// @description Chage the style of labels in Jira board | |
// @author Paulo Amaral | |
// @match https://*.atlassian.net/jira/software/projects/*/boards/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=atlassian.net | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Written by OpenAI (GPT 4): https://chat.openai.com/share/b7a9d856-7509-460d-85b3-3e5f07161e55 | |
import argparse | |
import os | |
import shutil | |
def process_files(output_folder, divider, file_names): | |
if not os.path.exists(output_folder): |
- Download ubuntu-20.04-server-cloudimg-amd64-wsl.rootfs.tar.gz from https://cloud-images.ubuntu.com/releases/focal/release
- Install the
.tar.gz
image in a folder of your choice:wsl --import <Instance Name> <Folder> <.tar.gz file>
- example (run in Windows command line):
mkdir %userprofile%\wsl-developer wsl --import Development %userprofile%\wsl-developer ubuntu-20.04-server-cloudimg-amd64-wsl.rootfs.tar.gz
- example (run in Windows command line):
- Boot up the instance:
wsl -d <Instance Name>
https://pragprog.com/titles/tpp20/the-pragmatic-programmer-20th-anniversary-edition/
Tip #1, pg. xxi: Care About Your Craft - Why spend your life developing software unless you care about doing it well?
Tip #2, pg. xxi: Think! About Your Work - Turn off the autopilot and take control. Constantly critique and appraise your work.
The commands below use a folder ~/backup/
as storage. Files are copied with the following features:
rsync --relative
: Tree structure relative to/
is preserved (subdirectories created if needed).realpath --no-symlinks
: Symlinks not resolved, so in case you use the backup to restore files, they will end up where they were found.
--recursive
: Subfolders too--perms
: Permissions preserved--copy-links
: Don't backup links, but the files they are pointing to
Regular expression replacements to be done in the order presented, for cleaning up words that might interfere in the resulting cloud.
Step | Replace... | For... |
---|---|---|
Remove punctuation | [;\.\(\)!/"] |
space |
Add space to lines start and end | [^|$] |
space |
Remove stopwords | [^a-z](share|and|at|by|the|is|that|it|or|to|it's|of|a|an|btw|be|in|if|be|amd|the|just|get|'ll's)[^a-z] |
space |
Break in lines | [ \r\n\t]+ |
\n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@if (@X)==(@Y) @end /* JScript comment | |
@echo off | |
REM This script runs a command if it is not yet running. Otherwise, it brings | |
REM the current stance into focus. | |
REM Usage: run1 [/nostart] <command> <params> | |
REM /nostart - doesn't use the command "start" to run, causing the prompt to hang | |
REM | |
REM Example: run1.bat c:\Windows\notepad.exe c:\User\paulo\Documents\todo.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Mural downloader | |
* | |
* Run this script in Google Chrome's console to display buttons for PDF download and a switch for automatic mode. | |
* | |
* This requires the extension Ignore X-Frame headers | |
* https://chrome.google.com/webstore/detail/ignore-x-frame-headers/gleekbfjekiniecknbkamfmkohkpodhe | |
* | |
**/ |
NewerOlder