This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media (prefers-color-scheme: dark) { | |
#main a { color: #bfdfff; } | |
body { background-color: #292a2d; } | |
#main a:hover { background-color: #000000; } | |
#main a:hover { color: #80ecff; } | |
#main a:hover { box-shadow: 0 0 7px #0080ff; } | |
#main a:hover { box-shadow: 0 0 7px #0080ff; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-env browser */ | |
var Buffer = require('buffer').Buffer | |
var name = 'dat' | |
function withStore (type, block, callback) { | |
var req = indexedDB.open(name + '-db', 1) | |
req.onerror = () => callback(req.error) | |
req.onupgradeneeded = () => req.result.createObjectStore(name) | |
req.onsuccess = () => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# assumes a fairly recent Ubuntu - may work on Debian or others but needs testing | |
# assumes you have your .ssh/config setup to specify a user and key for the host | |
HOST=$1 | |
ssh root@${HOST} "sed -i .backup -e 's/PermitRootLogin\syes/PermitRootLogin no/' /etc/ssh/sshd_config" | |
ssh root@${HOST} "sed -i .backup -e 's/#PasswordAuthentication\syes/PasswordAuthentication no/' /etc/ssh/sshd_config" | |
ssh root@${HOST} "sed -i .backup -e 's/X11Forwarding\syes/X11Forwarding no/' /etc/ssh/sshd_config" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Want to show hidden files and folders in your TextMate project drawer? Simple, just modify the file and folder patterns in TextMate's preferences. | |
# Instructions: | |
# Go to TextMate > Preferences... | |
# Click Advanced | |
# Select Folder References | |
# Replace the following: | |
# File Pattern |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%===================================================================== | |
% jhwhw.cls | |
% Provide jhwhw.cls class | |
%===================================================================== | |
%===================================================================== | |
% Identification | |
%===================================================================== | |
\NeedsTeXFormat{LaTeX2e} | |
\ProvidesClass{jhwhw}[2009/02/11 Justin Wilson's Homework Class] |