Fast on Linux and Windows, and supports 3-way merging! Diffinity and Meld are a couple of other viable options.
winget install KDE.KDiff3Fast on Linux and Windows, and supports 3-way merging! Diffinity and Meld are a couple of other viable options.
winget install KDE.KDiff3| #requires -RunAsAdministrator | |
| # .\Setup-Windows11-VM.ps1 -VMName 'W11' -SwitchName 'Default Switch' -ISOFile 'C:\Users\jeffmill\Downloads\ISO\Windows 11 - Version 22H2.iso' -VMPath 'E:\VM' | |
| Param( | |
| # Virtual Machine Name | |
| [Parameter(Mandatory = $true)][string]$VMName, | |
| # Virtual Switch to be used - see Get-VMSwitch | |
| [Parameter(Mandatory = $true)][string]$SwitchName, | |
| # Full path for the install media (ISO file) |
| $ScriptBlock = | |
| { | |
| Param([int]$RunNumber) | |
| $filename = Join-Path ([IO.Path]::GetTempPath()) "powershell-$RunNumber.doc" | |
| 'Opening Word ...' | |
| $oWord = New-Object -Com Word.Application | |
| $oWord.Visible = $true |
| Command | Description |
|---|---|
rg pattern |
Search pattern in current dir recursively |
rg pattern utils.py |
Search in a single file utils.py |
rg pattern src/ |
Search in dir src/ recursively |
rg '^We' test.txt |
Regex searching support (lines starting with We) |
rg -F '(test)' |
Search literally, i.e., without using regular expression |
rg -i pattern |
Search pattern and ignore case (case-insensitive search) |
rg -S pattern |
Smart case search (match case of pattern) |
rg pattern -g '*.py' |
File globbing (search in certain files), can be used multiple times |
| """ | |
| This script uses Github's API V3 with Basic Authentication to export issues from | |
| a repository. The script saves a json file with all of the information from the | |
| API for issues, comments, and events (on the issues), downloads all of the | |
| images attached to issues, and generates a markdown file that can be rendered | |
| into a basic HTML page crudely mimicking Github's issue page. If the gfm module | |
| is available, the script will go ahead and render it itself. | |
| In the end, you'll be left with a folder containing a raw .json file (which you | |
| can use to extract information for your needs, or to import it somewhere else), |
| # One liner | |
| wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com | |
| # Explained | |
| wget \ | |
| --recursive \ # Download the whole site. | |
| --page-requisites \ # Get all assets/elements (CSS/JS/images). | |
| --adjust-extension \ # Save files with .html on the end. | |
| --span-hosts \ # Include necessary assets from offsite as well. | |
| --convert-links \ # Update links to still work in the static version. |
On windows, git config --global gpg.program "C:\Program Files (x86)\GnuPG\bin\gpg.exe"
If anyone is interested in setting up their system to automatically (or manually) sign their git commits with their GPG key, here are the steps:
$ git config --global commit.gpgsign true ([OPTIONAL] every commit will now be signed)$ git config --global user.signingkey ABCDEF01 (where ABCDEF01 is the fingerprint of the key to use)$ git config --global alias.logs "log --show-signature" (now available as $ git logs)$ git config --global alias.cis "commit -S" (optional if global signing is false)$ echo "Some content" >> example.txt| """ | |
| Author: lzhbrian (https://lzhbrian.me) | |
| Date: 2020.1.20 | |
| Note: mainly modified from: https://github.com/tkarras/progressive_growing_of_gans/blob/master/util_scripts.py#L50 | |
| """ | |
| import numpy as np | |
| from PIL import Image | |
| import os | |
| import scipy |