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 / cloudflare-ddns-update.sh
Created February 1, 2021 13:38 — forked from Tras2/cloudflare-ddns-update.sh
A bash script to update a Cloudflare DNS A record with the external IP of the source machine
#!/bin/bash
# A bash script to update a Cloudflare DNS A record with the external IP of the source machine
# Used to provide DDNS service for my home
# Needs the DNS record pre-creating on Cloudflare
# Proxy - uncomment and provide details if using a proxy
#export https_proxy=http://<proxyuser>:<proxypassword>@<proxyip>:<proxyport>
# Cloudflare zone is the zone which holds the record
@jjnilton
jjnilton / generate-colors-keywords-for-web-mode.el
Last active May 28, 2022 16:02
Generate colors' keywords for web-mode.el
;; Get colors' keywords from w3 wiki into an alist ( keyword . hex )
(require 'dom)
(setq-local
colorlist
(with-current-buffer
(url-retrieve-synchronously
"https://www.w3.org/wiki/CSS3/Color/Extended_color_keywords")
(goto-char (point-min))
(re-search-forward "^$")
(delete-region (point) (point-min))
@jjnilton
jjnilton / gh-pandoc-LICENSE.md
Created May 4, 2021 20:34 — forked from forivall/gh-pandoc-LICENSE.md
Github-style css for pandoc

The MIT License (MIT)

Copyright (c) 2016-2017 Emily M Klassen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

@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 0.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 5s 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)
}
@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) 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) 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;
}