When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}
#!/bin/bash | |
# This assumes that the ~6GB mojave installer is in the /Applications folder. | |
# If it's not, just open the App Store, search Mojave, and you can download the installer file from there. | |
hdiutil create -o /tmp/mojave.cdr -size 6g -layout SPUD -fs HFS+J | |
hdiutil attach /tmp/mojave.cdr.dmg -noverify -mountpoint /Volumes/install_mojave | |
sudo /Applications/Install\ macOS\ mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/install_mojave | |
mv /tmp/mojave.cdr.dmg ~/Desktop/InstallSystem.dmg | |
hdiutil detach /Volumes/Install\ macOS\ mojave |
// ==UserScript== | |
// @name Hide Rated R Movies on Feature Films page | |
// @namespace http://stevespiga.rel.li/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author Steve Spigarelli | |
// @match https://www.slcolibrary.org/mm/mmmo/newFeatureFilms.htm | |
// @grant none | |
// ==/UserScript== |
# UPDATED 17 February 2019 | |
# Redirect all HTTP traffic to HTTPS | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name www.domain.com domain.com; | |
return 301 https://$host$request_uri; | |
} | |
# SSL configuration |
yum -y install epel-release
yum -y upgrade
yum -y install openssh-server net-tools iputils psmisc less which man mc bash-completion bash-completion-extras bash-argsparse bind-utils traceroute htop mtr
echo "export HISTTIMEFORMAT='%F %T '" > /etc/profile.d/history.sh
echo "export HISTIGNORE='ls -l:pwd:date:'" >> /etc/profile.d/history.sh
echo "export HISTCONTROL=ignoredups" >> /etc/profile.d/history.sh
systemctl enable sshd
systemctl start sshd
import Foundation | |
class Template { | |
class func render (var str: String, dict: Dictionary<String, String>) -> String { | |
for (key, value) in dict { | |
str = str.stringByReplacingOccurrencesOfString("{\(key)}", withString: value) | |
} | |
return str | |
} |
xquery version "1.0-ml"; | |
let $directories-map := (cts:uris('/',('properties','map'),cts:directory-query('/','infinity')) | |
- | |
cts:uris('/',('document','map'),cts:directory-query('/','infinity'))) | |
return map:keys($directories-map)[xdmp:estimate(cts:search(fn:collection(),cts:directory-query(.,'infinity'))) eq 0] |
if (fn:contains(xdmp:get-request-header("Accept-Encoding", ""), "gzip")) then | |
(: do your gzipping here :) | |
else | |
(: don't gzip :) |