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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge] | |
"BrowserSignin"=dword:00000000 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome] | |
"BrowserSignin"=dword:00000000 |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<ComicInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/anansi-project/comicinfo/main/schema/v2.0/ComicInfo.xsd"> | |
<Title>神無月の巫女 (1)</Title> | |
<Series>神無月の巫女</Series> | |
<Number>1</Number> | |
<Count>2</Count> | |
<Summary> | |
宿命の巫女として転生した二人の少女と、運命に抗う一人の少年。そして暗黒神=ヤマタノオロチ復活を狙う巨大ロボ軍団! 現代に甦る神々が世界の命運を賭けて、壮絶なロボバトルを繰り広げる衝撃の第1巻!! | |
</Summary> |
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
# Get the list of all .jpg files | |
$files = Get-ChildItem -LiteralPath . -Filter *.jpg | |
# Counter for the output file names | |
$counter = 1 | |
foreach ($file in $files) { | |
# Determine the dimensions of the image | |
$imageInfo = magick identify -format "%wx%h" $file.FullName | |
$dimensions = $imageInfo -split 'x' |
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
# Single thread | |
Get-ChildItem -LiteralPath . -Filter *.avif | ForEach-Object { | |
$jpgFileName = [System.IO.Path]::ChangeExtension($_.Name, '.jpg') | |
magick convert $_.FullName $jpgFileName | |
} | |
# Or parallel | |
$scriptBlock = { | |
param($inputFile) | |
$outputFile = [System.IO.Path]::ChangeExtension($inputFile, '.jpg') |
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 perl | |
use strict; | |
use warnings; | |
use 5.038; | |
use utf8; | |
use English; | |
use FindBin; | |
use lib "$FindBin::Bin/local/lib/perl5"; |
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 perl | |
use strict; | |
use warnings; | |
use utf8; | |
use v5.38; | |
use Glib::Object::Introspection; | |
Glib::Object::Introspection->setup( | |
basename => 'Gio', | |
version => '2.0', | |
package => 'Gio'); |
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
# See also: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1969375 | |
# See: https://github.com/wmcelderry/systemd_with_tpm2 | |
# Install dependencies for systemd TPM | |
sudo apt install libtss2-rc0 | |
# Check if Ubuntu recognize your TPM chip | |
systemd-cryptenroll --tpm2-device=list | |
# Check current LUKS info | |
sudo cryptsetup luksDump /dev/nvme0n1p3 | |
# Enroll TPM as unlocker | |
sudo systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs=7 /dev/nvme0n1p3 |
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
gsettings set org.gnome.shell.extensions.dash-to-dock show-mounts-only-mounted true |
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
# Specify the source directory containing the images | |
$srcDir = ".\src" | |
# Specify the destination directory to move the renamed images to | |
$destDir = ".\dest" | |
# Get all image files in the source directory and its subfolders | |
$imageFiles = Get-ChildItem -Path $srcDir -Recurse -Include *.jpg,*.jpeg,*.png,*.gif,*.bmp | Sort-Object @{Expression={[regex]::Match($_.Name, '(\d+)').Groups[1].Value.PadLeft(10,'0')}},FullName | |
# Get the number of digits needed to represent the count of files in $imageFiles |
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
require ["reject", "imap4flags", "envelope", "extlists"]; | |
if anyof ( | |
# Domains for our addresses that we don't want to receive unencrypted emails. | |
envelope :domain "to" "protonmail.com", | |
envelope :domain "to" "proton.me", | |
envelope :domain "to" "pm.me", | |
envelope :domain "to" "protonmail.ch" | |
) { | |
if allof ( | |
# Reject unencrypted emails. |
NewerOlder