Skip to content

Instantly share code, notes, and snippets.

{
(?#
# Adapted for PHP by Paul Buonopane
# Based heavily on the following works:
# - https://manishearth.github.io/blog/2018/02/15/picking-apart-the-crashing-ios-string/
# - https://github.com/hackbunny/viramarama
#
# This PHP regex will match any string that contains Indic character
# combinations known to crash many iOS applications as of 11.2.5 and certain
# macOS applications as of 10.13.3.

Upgrading to Ubuntu 17.10 on WSL

Note: This workaround is no longer necessary in Windows 10 Insider build 17046 and later. As of 2018-02-07, the patch hasn't yet made it to stable.

  1. Upgrade with do-release-upgrade, as you normally would. It will error out and leave your system in a partially upgraded state.
  2. Close all WSL terminals and ensure that all WSL processes have terminated
  3. Run as a normal user (not root): wget -O - https://gist.githubusercontent.com/Zenexer/10bc12fa5c99848b4b2150184f6beee5/raw/ubuntu-fix.sh | sh -s
  4. Answer any prompts (sudo password, version disambiguation)
  5. If there are errors, resolve them and re-run the script. It is idempotent, meaning that it is safe to run any number of times, even if it only partially completes.
@Zenexer
Zenexer / Internet Slang and Emoticons.md
Last active February 14, 2022 23:32
Internet slang, abbreviations, and emoticons
@Zenexer
Zenexer / Disable Windows Annoyances.md
Last active June 19, 2023 17:22
Permanently disable Windows Defender and other annoyances in Windows.

Instructions

  • To disable a service, download Disable<Service>.reg and double-click to import. (Replace <Service> with the name of the service you want to disable.)
  • To re-enable a service, download Enable<Service>.reg and double-click to import. (Replace <Service> with the name of the service you want to enable.)

Note that if you save the files by copying them into a text editor, they may need to be saved with Windows-style line endings (\r\n).

Services

@Zenexer
Zenexer / escapeshellrce.md
Last active November 2, 2023 06:09
Security Advisory: PHP's escapeshellcmd and escapeshellarg are insecure

Paul Buonopane paul@namepros.com at NamePros
PGP: https://keybase.io/zenexer

I'm working on cleaning up this advisory so that it's more informative at a glance. Suggestions are welcome.

This advisory addresses the underlying PHP vulnerabilities behind Dawid Golunski's [CVE-2016-10033][CVE-2016-10033], [CVE-2016-10045][CVE-2016-10045], and [CVE-2016-10074][CVE-2016-10074]. It assumes prior understanding of these vulnerabilities.

This advisory does not yet have associated CVE identifiers.

Summary

@Zenexer
Zenexer / authorized_keys
Last active January 9, 2024 04:01
My public keys, in OpenSSH format.
## BEGIN paul ##
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDqA95ZvPJJvrQYPC99ENK3gyAuT9f65IcGygT0icluYucZ9JU017gk/Qhw234PHTdt2ZzIrnC5Sju2ppX+b+oIrUtsc+QIF6lgkFVbv2ab6yvSJYkMWys08zygEmdr6ZfIq+1f92EXuSJ0M3tbRBnvmY4JxM1VBGeampNyMKddv2UgEEcjHMKQWlWrEc0syTQ7dLIHCaxqbRoy05+6jRrwyTgREQUh8RmBZJHKsHH73kHGla56ECrF5RWm1gDZToMZn+2aCJwMVqlB6VMEtHIF/1Xbv/akUCag8r7sbfz5GMtr5LdRPvULn/1z5LIGRVP7kAjU4Yr03OdqvfE9Nj8TtLCVigh7QJy8T2bCuplvcI1dvepI/5j9Xz2srB7m87puoM0rridJv1uIy3z0WrB5RHt6QeTQkT83+rrz7M9ejeBPxy6dQennJbWGC2YvgFmRTrNnZdtXArUN9GP/CACkHpk9JsrxmHZ2K/FqHR7/ezJrlloeZ4kCpYzQ9Vk7dobfR0m/fkDzU9iZQ1JpPem8ZMM5Rd/Mu0BmNHooyb9soxUcgBTGnESFDuCzGEZCCCnuYBDWh3G2vFcrCrrNBCTJ/N3iColHWLIqxGMU9l8iwpdY+Oyj5NSUFnOTSkQgRbzgo239zzcSigCUxuseD1up71ibZHW9fpreb39lEaROLQ== paul@0xA114C32065F79325
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFiz+mAZk9LIAjQwU4rf3v0qJApzzcQpbiriKVMSLP9v paul@0x5FE65994C25390B6
sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIBAP+89+20USh6cjTJZtVzUmRWTFdJ1rtFbw/y5IirjJAAAAHHNzaDpwYXVsQFl1YmlLZXktNUMtMTMwNj
@Zenexer
Zenexer / Mac Keyboard Symbols.md
Last active May 4, 2024 02:14
List of Mac/Apple keyboard symbols