Skip to content

Instantly share code, notes, and snippets.

@jjnilton
jjnilton / mac-network-commands-cheat-sheet.md
Last active April 28, 2024 23:25
Mac Network Commands Cheat Sheet

Disclaimer: I'm not the original author of this sheet, but can't recall where I found it. If you know the author, please let me know so I give the attribution.

The original author seems to be Charles Edge, here's the original content, as pointed out by @percisely.

Note: Since this seems to be helpful to some people, I formatted it to improve readability of the original. Also, note that this is from 2016, many things may have changed, and I don't use macOS anymore, so I probably can't help in case of questions, but maybe someone else can.

Mac Network Commands Cheat Sheet

After writing up the presentation for MacSysAdmin in Sweden, I decided to go ahead and throw these into a quick cheat sheet for anyone who’d like to have them all in one place. Good luck out there, and s

@jjnilton
jjnilton / launch-eclipse-gtk2
Created October 31, 2016 16:13
launch eclipse with gtk2
# before
--launcher.appendVmargs
-vmargs
# add
--launcher.GTK_version
2
@jjnilton
jjnilton / longping.sh
Created December 19, 2016 05:39
log ping
echo "Ping failures to 208.67.222.222" >/home/brad/pinglog
while true; do
if ! ping -c 1 -q 208.67.222.222 >/dev/null; then
date >> /home/brad/pinglog
fi
sleep 57
done
@jjnilton
jjnilton / doctohtml.bash
Created April 5, 2017 22:15
script to convert multiple docx files to html using pandoc
#!/bin/bash
for file in "$PWD"/*
do
filename="$file"
echo "converting $filename to ${filename%.*}.html"
if [ "$file" != "$PWD/${0##*/}" ];then
pandoc "$filename" -o "${filename%.*}.html"
fi
done
@keyframes colorhue{
from {-webkit-filter: hue-rotate(0deg); filter: hue-rotate(0deg) brightness(2.5) contrast(0.75); }
to {-webkit-filter: hue-rotate(359deg); filter: hue-rotate(359deg) brightness(2.5) contrast(0.75); }
}
.edit {
animation: colorhue 1s linear infinite;
}
@keyframes colorhue{
from {-webkit-filter: hue-rotate(0deg); filter: hue-rotate(0deg);}
to {-webkit-filter: hue-rotate(359deg); filter: hue-rotate(359deg);}
}
.edit {
/* animation: colorhue 1s linear infinite; */
filter: brightness(2.5) contrast(1) invert(1) hue-rotate(350deg);
}
@keyframes colorhue{
from {-webkit-filter: hue-rotate(0deg); filter: hue-rotate(0deg) brightness(2) contrast(0.75);}
to {-webkit-filter: hue-rotate(359deg); filter: hue-rotate(359deg) brightness(2) contrast(0.75);}
}
.edit {
animation: colorhue 1s linear infinite;
}
@keyframes colorhue{
from {-webkit-filter: hue-rotate(0deg); filter: hue-rotate(0deg) brightness(3) contrast(0.75) saturate(5);}
to {-webkit-filter: hue-rotate(359deg); filter: hue-rotate(359deg) brightness(3) contrast(0.75) saturate(5);}
}
.edit {
animation: colorhue 2s linear infinite;
}
@keyframes colorhue{
from {-webkit-filter: hue-rotate(0deg); filter: hue-rotate(0deg);}
to {-webkit-filter: hue-rotate(359deg); filter: hue-rotate(359deg);}
}
.edit {
/* animation: colorhue 1s linear infinite; */
filter: hue-rotate(20deg) brightness(1) contrast(0.75) sepia(0.5)
}
@keyframes colorhue{
from {-webkit-filter: hue-rotate(0deg); filter: hue-rotate(0deg);}
to {-webkit-filter: hue-rotate(359deg); filter: hue-rotate(359deg);}
}
.edit {
/* animation: colorhue 1s linear infinite; */
filter: brightness(2.5)
}