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
[boot] | |
command="printf \"nameserver 1.1.1.1\n$(cat /etc/resolv.conf)\nnameserver 8.8.8.8\nnameserver 1.0.0.1\n\" > /etc/resolv.conf" | |
# Where does this go? | |
# In each WSL2 distribution, add this to your `/etc/wsl.conf` file. | |
# | |
# What this does: | |
# Writes 3 nameservers to your WSL2 distribution, and inserts the dynamic nameserver (the WSL2 -> Windows bridge) from | |
# /etc/resolv.conf at level 2, and re-writes all that to the same /etc/resolv.conf file. | |
# |
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
/* place in a the head tag of html | |
It will remove all ridiculous page break directions, overflows, and inline-block display types, which cause issues. | |
Then re-applies hiding to elements that need it. could be better but works /shrug | |
Originally used on a health site's receipt page that was 3 pages long but should have fit on 1 page at 100% scale. | |
*/ | |
<style type="text/css"> | |
@media print { | |
* { | |
page-break-before: avoid!important; | |
page-break-after: avoid!important; |
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
# uses the aws iam authenticator to generate a token and store the result in a variable, | |
# then set the result's value into the clipboard for pasting. | |
# Replace the values in square brackets (including the brackets) with the correct values. | |
$x = aws-iam-authenticator token -i [your cluster name] -r [your assumed iam role name] | ConvertFrom-Json; Set-Clipboard -Value ($x.status.token) |
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
docker images | Select-String -Pattern ' (?<sha>\b[a-zA-Z0-9]{12})\b ' | foreach {docker rmi --force $_.Matches.Groups[1].Value} |