Here are the contributions, over time, to Steven Black's Amalgamated Host Files.
Updated: July 30, 2022
127.0.0.1 localhost | |
127.0.0.1 localhost.localdomain | |
127.0.0.1 local | |
255.255.255.255 broadcasthost | |
::1 localhost | |
::1 ip6-localhost | |
::1 ip6-loopback | |
fe80::1%lo0 localhost | |
ff00::0 ip6-localnet | |
ff00::0 ip6-mcastprefix |
#!/bin/sh | |
cd ~ | |
rm -rf Music | |
rm -rf Pictures | |
rm -rf Documents | |
rm -rf Videos | |
rm -rf Templates | |
rm -rf Public | |
mkdir projects |
// for contrasting text color | |
// Original article: http://24ways.org/2010/calculating-color-contrast | |
function getContrastYIQ(hexcolor){ | |
var r = parseInt(hexcolor.substr(0,2),16); | |
var g = parseInt(hexcolor.substr(2,2),16); | |
var b = parseInt(hexcolor.substr(4,2),16); | |
var yiq = ((r*299)+(g*587)+(b*144))/1000; | |
return (yiq >= 131.5) ? 'black' : 'white'; | |
} |
Here are the contributions, over time, to Steven Black's Amalgamated Host Files.
Updated: July 30, 2022
// source: https://www.swyx.io/css-100-bytes | |
html { | |
max-width: 70ch; | |
padding: 3em 1em; | |
margin: auto; | |
line-height: 1.75; | |
font-size: 1.25em; | |
} | |
h1,h2,h3,h4,h5,h6 { |
See the conversation here: StevenBlack/hosts#1956
$ ghosts --tld -m /Users/steve/Downloads/top-1m.txt
----------------------------------------
Base hosts file summary:
----------------------------------------
Location: /Users/steve/Downloads/top-1m.txt
Domains: 999,295
# Run "git pull" in each subdirectory of the current directory. | |
# Useful when you store all of your git repos in one folder. | |
clear | |
for dir in ./*; # For every item in the folder: | |
do ( | |
if [ -d "$dir" ]; # If it is a directory: | |
then ( | |
echo "$dir" && # Print the path, |
sudo spctl --master-disable |
These commands allow you to generate CSRs, Certificates, Private Keys and do other miscellaneous tasks.
openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key
shutdown -r -m \\MachineName -t -0 |