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
' | |
' Old Microsoft Word Greek document fixer | |
' | |
' Copyright 2023 Diomidis Spinellis | |
' | |
' Licensed under the Apache License, Version 2.0 (the "License"); | |
' you may not use this file except in compliance with the License. | |
' You may obtain a copy of the License at | |
' | |
' http://www.apache.org/licenses/LICENSE-2.0 |
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
comm -13 <(git ls-files | sort) <(yarn prettier --check . 2>&1 | sed -n 's/\[warn\] //p' | sort) >.prettierignore |
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 bash | |
# | |
# Display host names of Cytrox spyware-hosting sites visited with Firefox | |
# See: https://github.com/AmnestyTech/investigations/tree/master/2021-12-16_cytrox | |
# | |
# Diomidis Spinellis, May 2022 | |
# | |
if [ -z "$1" ] ; then | |
echo "Usage: $0 /path/to/Firefox/places.sqlite" 1>&2 |
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
URL=https://www.spinellis.gr/unix | |
love: # Help: Create a file name love | |
touch love | |
money: # Help: Hit the jackpot | |
yes $$ | fmt | head | |
me a wizard: MOOC # Help: Become a Unix command-line wizard |
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
#!/bin/sh | |
# | |
# List the caller's pending GitHub pull request reviews | |
# | |
user=$(git config github.user) | |
gh pr list --json number,title,reviewRequests -q '.[] | select(.reviewRequests | any(.login == "'$user'")) | ["#" + (.number|tostring), .title] | @tsv' |
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
#!/bin/sh | |
# | |
# Show lines (and color) endings that violate the Greek final-n omission rule | |
# Exit with a 0 success error code if such lines were found | |
# | |
egrep -i --color '\<(αυτήν|την|δεν|μην) ([^κπτξψαεηιουωάέήίόύώϊϋΐΰμνγ]|μ[^π]|ν[^τ]|γ[^κ])' |
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
#!/bin/sh | |
# | |
# Find all anagrams in the system's dictionary by mapping the words | |
# into a product of prime numbers associated with each letter | |
# | |
# Process plain ASCII characters | |
export LC_ALL=C | |
# Create commands for the calculator bc |
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
#!/bin/sed -Ef | |
# | |
# Convert code review text to third person singular | |
# Author: Diomidis Spinellis, June 2020 | |
# Released to the public domain | |
# | |
# you write -> the code contains | |
s/\<you write/the code contains/g |
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
/* | |
* Convert the specified speech WAV file into text output | |
* on the program's standard output. | |
* | |
* Diomidis Spinellis, October 2019 | |
* Based on https://stackoverflow.com/a/40002268/20520 | |
*/ | |
#include <iostream> | |
#include <sapi.h> |
NewerOlder