Skip to content

Instantly share code, notes, and snippets.

View neutraltone's full-sized avatar
🏠
Working from home

Tony Phipps neutraltone

🏠
Working from home
View GitHub Profile
@neutraltone
neutraltone / chdman_recursive_script.md
Last active June 1, 2023 13:42
chdman bash script

This script will allow you process a directory full of subdirectories with your uncompressed cue, gdi, iso, etc files and output the compressed chd in the same directory.

find . -name '*.cue' -print0 | while IFS='' read -r -d '' file; do
  exfile="$(echo $file | sed -E 's/\.[A-z]+$//')"
  chdman createcd -i "${file}" -o "${exfile}.chd"; 
done
@neutraltone
neutraltone / input.scss
Created September 2, 2022 22:49
Generated by SassMeister.com.
$color: white;
$colors: red, blue, green, yellow, tomato;
.group {
.child {
background-color: $color;
}
@each $color in $colors {
.group--#{$color} .child {
background-color: $color;
@neutraltone
neutraltone / input.scss
Last active September 2, 2022 22:48
Generated by SassMeister.com.
$color: white;
.group {
.child {
background-color: $color;
}
&.group--red {
$color: red;
.child {
@neutraltone
neutraltone / input.scss
Created September 2, 2022 22:28
Generated by SassMeister.com.
$color: white;
.group {
&.group--red {
$color: red;
.child {
background-color: $color;
}
}
@neutraltone
neutraltone / input.scss
Created September 2, 2022 22:25
Generated by SassMeister.com.
$color: white;
.group {
&.group--red {
$color: red;
.child {
background-color: $color;
}
}
@neutraltone
neutraltone / input.scss
Created June 17, 2021 20:04
Generated by SassMeister.com.
.test {
display: block;
&#something {
content: 'probably shouldn't use ids as selectors;
}
}
@neutraltone
neutraltone / deactivate.js
Created July 3, 2018 12:37
Deactivate slack user accounts
setTimeout(function () {
var inactiveAccounts = document.querySelectorAll('#active_members .admin_list_item.active.inactive');
var toDeactivate = inactiveAccounts[0];
$(toDeactivate).trigger('mouseover');
toDeactivate.click()
toDeactivate.querySelector(".api_disable_account.sub_action").click()
}, 60000);
@neutraltone
neutraltone / README.md
Last active March 14, 2018 16:13
Slack Deploy Message Script

Setup

Add a new incoming webhook to Slack. This will give you a webhook URL complete with a token. You should also select a channel to default post to.

@neutraltone
neutraltone / https-localhost.sh
Created November 2, 2017 08:50
A set of really simple commands to enable https over localhost for Mac
cd; mkdir .ssl
openssl req -newkey rsa:2048 -x509 -nodes -keyout .ssl/localhost.key -new -out .ssl/localhost.crt -subj /CN=localhost -reqexts SAN -extensions SAN -config <(cat /System/Library/OpenSSL/openssl.cnf <(printf '[SAN]\nsubjectAltName=DNS:localhost')) -sha256 -days 3650
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain .ssl/localhost.crt
@neutraltone
neutraltone / .muttrc
Created September 21, 2017 12:13
Mutt Gmail Configuration
# Me
set from = "EMAIL@gmail.com"
set realname = "NAME"
# My credentials
# For 2FA issue and application token from:
# https://security.google.com/settings/security/apppasswords
set smtp_url = "smtp://EMAIL@gmail.com@smtp.gmail.com:587/"
set smtp_pass = "password"