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;
}
alias szsh="source ~/.zshrc" | |
alias vzsh="vim ~/.zshrc" | |
alias lsa='ls -lah' | |
alias l='ls -lah' | |
alias ll='ls -lh' | |
alias la='ls -lAh' | |
alias pu='poetry update' | |
alias pi='poetry install' | |
alias pfr='poetry run flask run' |
#!/usr/bin/env bash | |
# | |
# Short header explaining what the script does | |
# | |
# exit on error, error on unbound variables, disable glob expansion, fail within pipes | |
set -eufo pipefail | |
[[ -n "${DEBUG:-}" ]] && set -x | |
: "${VAR_A=default_value_a}" |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowAllUsersToListAccounts", | |
"Effect": "Allow", | |
"Action": [ | |
"iam:ListAccountAliases", | |
"iam:ListUsers", | |
"iam:GetAccountPasswordPolicy", |
Based on https://www.gnu.org/software/make/manual/html_node/Quick-Reference.html
Directive | Description |
---|---|
define variable define variable = define variable := define variable ::= define variable += define variable ?= endef |
Define multi-line variables. |
undefine variable |
Undefining variables. |
#!/usr/bin/env python2 | |
# | |
# OpenSSH certificate decoder in Python | |
# | |
# References: | |
# - https://tools.ietf.org/html/rfc4251.html#section-5 | |
# - http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/PROTOCOL.certkeys?annotate=HEAD | |
# | |
# Copyright (c) 2016 Julian Kornberger <[email protected]> | |
# |
# file name terraform/modules/aws_vpc/vpc.tf | |
# first create the VPC. | |
# Prefix resources with var.name so we can have many environments trivially | |
resource "aws_vpc" "mod" { | |
cidr_block = "${var.cidr}" | |
enable_dns_hostnames = "${var.enable_dns_hostnames}" | |
enable_dns_support = "${var.enable_dns_support}" | |
tags { | |
Name = "${var.env}_vpc" |
# https://gist.github.com/erichiggins/a8bcd07295597d91dea7/ | |
# version: 0.1.0 | |
# author: Eric Higgins <[email protected]> | |
# | |
# Installation: | |
# | |
# 1) Copy this file into your repo's directory. | |
# cp docker_passthru.bash.inc ~/src/myrepo/ | |
# 2) Add the following to your ~/.bash_profile to include this script. | |
# source ~/src/myrepo/docker_passthru.bash.inc |
How to Ignore Merge Conflicts for Specific Files in a Git Repository
Create a directory and git init
it
$ mkdir merge-test
$ cd merge-test/
$ git init
# -*- coding: utf-8 -*- | |
import logging | |
import os | |
import uuid | |
from flask import Flask | |
from flask import redirect | |
from flask import request | |
from flask import url_for | |
from flask.ext.login import LoginManager |