Skip to content

Instantly share code, notes, and snippets.

View rhymeswithmogul's full-sized avatar

Colin Cogle rhymeswithmogul

View GitHub Profile

The Freenode resignation FAQ, or: "what the fuck is going on?"

IMPORTANT NOTE:

It's come to my attention that some people have been spamming issue trackers with a link to this gist. While it's a good idea to inform people of the situation in principle, please do not do this. By all means spread the word in the communities that you are a part of, after verifying that they are not aware yet, but unsolicited spam is not helpful. It will just frustrate people.

Update 3 (May 24, 2021)

A number of things have happened since the last update.

@rhymeswithmogul
rhymeswithmogul / Revert-M365AppsFrom2104.ps1
Last active May 12, 2021 13:04
There are severe Outlook issues with version 2104. (Install-Script Revert-M365AppsFrom2104)
<#PSScriptInfo
.VERSION 1.0.1
.GUID ea95d532-3b54-48b0-97ef-45f16237e277
.AUTHOR Colin Cogle
.COPYRIGHT (c) 2021 Colin Cogle. All Rights Reserved. Licensed under the AGPLv3.
.TAGS Microsoft, screwed, up, again, 2104, Office, 2016, 2019, Current Channel, Outlook, bug, email, M365, update, devops-fail
.LICENSEURI https://www.gnu.org/licenses/agpl-3.0.en.html
.PROJECTURI https://gist.github.com/rhymeswithmogul/f6d5c37ed3058802e9cb94e637e989c9
.RELEASENOTES Documentation updates, link to PowerShell Gallery, remove swearing for broader public release.
#>
@rhymeswithmogul
rhymeswithmogul / FlashKiller.ps1
Last active December 15, 2020 21:01
A script to download and install KB4577586, the update to remove and block Adobe Flash Player. `Install-Script FlashKiller`
<#PSScriptInfo
.VERSION 1.0
.GUID d3aa9909-cd37-4154-81d2-7e6ef3c776ce
.AUTHOR Colin Cogle
.COPYRIGHT (c) 2020 Colin Cogle. All rights reserved.
.TAGS Adobe, Flash, Player, swf, killer, KB4577586
.LICENSEURI https://www.gnu.org/licenses/agpl-3.0.en.html
.PROJECTURI https://gist.github.com/rhymeswithmogul/1346f32de625962b17adc713d0ac350c
#>
@Albert221
Albert221 / JetBrains-Mono.css
Last active May 7, 2024 00:30
CSS for using JetBrains Mono on the Web. Simply copy&paste it to your stylesheet.
@font-face {
font-family: 'JetBrains Mono';
src: url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-Bold-Italic.woff2') format('woff2'),
url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-Bold-Italic.woff') format('woff');
font-weight: 700;
font-style: italic;
font-display: swap;
}
@font-face {
@rhymeswithmogul
rhymeswithmogul / Find-SSDTimeBombs.ps1
Last active May 12, 2021 13:12
Check your HPE SSD's for the 32,768-hour time bomb and the 40,000-hour time bomb.
<#
.NOTES
Find-SSDTimeBombs.ps1, version 1.0.1
Copyright (c) 2020 Colin Cogle <colin@colincogle.name>.
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
@rhymeswithmogul
rhymeswithmogul / Replace-RDGatewayCertificate.ps1
Last active February 24, 2021 19:26
A post-renewal script for Certify that replaces the Remote Desktop Gateway certificate.
<#
Replace-RDGatewayCertificate.ps1
Version 1.0.1 -- fixed my bad grammar
by Colin Cogle <colin@colincogle.name>
This program is free software: you can redistribute it and/or modify it under the terms
of the GNU General Public License as published by the Free Software Foundation, either
version 3 of the License. This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
@limepanda
limepanda / kvm-migration.txt
Last active January 26, 2024 23:26
migrate qcow2 image to zfs volume
qemu-img convert -O raw <infile.(vdi|vmdk|$whatever)> /dev/zvol/rpool/data/<vmid>-disk0
@ataylor32
ataylor32 / beep_mario_victory_theme.ps1
Created July 24, 2014 05:02
Beep: Mario Victory Theme
[Console]::Beep(130, 100)
[Console]::Beep(262, 100)
[Console]::Beep(330, 100)
[Console]::Beep(392, 100)
[Console]::Beep(523, 100)
[Console]::Beep(660, 100)
[Console]::Beep(784, 300)
[Console]::Beep(660, 300)
[Console]::Beep(146, 100)
[Console]::Beep(262, 100)
@pascalpoitras
pascalpoitras / config.md
Last active July 18, 2024 22:34
My WeeChat configuration

WeeChat Screenshot

Mouse


enable


@syzdek
syzdek / ipv6-regex-test.sh
Last active July 18, 2024 05:44
Simple script to test my IPv6 regular expression.
#!/bin/sh
#
# Use posixregex CLI tool from: https://github.com/syzdek/dmstools/blob/master/src/posixregex.c
RE_IPV4="((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])"
posixregex -r "^(${RE_IPV4})$" \
127.0.0.1 \
10.0.0.1 \
192.168.1.1 \