Remember, it's all just text.
FoldingText does some neat things, but in the end you are just typing. If you know how to type, you already know most of what you need to effectively use FoldingText.
(Click "#" to expand headings)
import ( | |
"archive/tar" | |
"fmt" | |
"io" | |
"os" | |
"path/filepath" | |
"strings" | |
) | |
func tarit(source, target string) error { |
{ | |
"name": "rsms dark v2 mono", | |
"author": "rsms", | |
"variables": { | |
"red": "hsl(5, 0%, 50%)", | |
"orange": "hsl(27, 0%, 50%)", | |
"yellow": "hsl(60, 0%, 50%)", | |
"green": "hsl(150, 0%, 43%)", | |
"cyan": "hsl(180, 0%, 50%)", | |
"blue": "hsl(210, 0%, 50%)", |
# | |
# You will need to change these variables... | |
# | |
# The host name or IP address of the SSH server that we are | |
# sending the connection request to: | |
SERVER_HOSTNAME=harek |
Apple removed colored sub-pixel antialiasing in MacOS Mojave | |
(https://developer.apple.com/videos/play/wwdc2018/209/ starting from ~28min) | |
To make fonts look normal in Sublime Text, add to Preferences: | |
// For the editor | |
"font_options": [ "gray_antialias" ], | |
// For the sidebar / other elements | |
"theme_font_options": [ "gray_antialias" ], |
# Default termtype. If the rcfile sets $TERM, that overrides this value. | |
set -g default-terminal screen-256color | |
# support logging out and back in | |
set -g update-environment "SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION" | |
# pbcopy support | |
set-option -g default-command "reattach-to-user-namespace -l bash" | |
# vi mode |
This is a collection of the most common commands I run while administering Postgres databases. The variables shown between the open and closed tags, "<" and ">", should be replaced with a name you choose. Postgres has multiple shortcut functions, starting with a forward slash, "". Any SQL command that is not a shortcut, must end with a semicolon, ";". You can use the keyboard UP and DOWN keys to scroll the history of previous commands you've run.
http://www.postgresql.org/download/linux/ubuntu/ https://help.ubuntu.com/community/PostgreSQL
Recently, I converted to using ISO-8601 formatted dates as much as possible, e.g. 2020-06-12
. As a meme, I hope this catches on. Dates written this way are internationally recognizable, no confusion over mm/dd/yy
or dd/mm/yy
. They are sortable. And, when used consistently, they are easy to search; no worries about case sensitivity, or Jun/June spellings. Don’t take my word for it, though. Randall Munroe agrees. So does GitLab.
Here's how to create a keyboard shortcut to insert the current date formatted as ISO-8601.
Launch Automator, and create a new Service.
This particular service receives no input.
Drag in Run AppleScript to the service.
from __future__ import print_function | |
import sys | |
import argparse | |
import os.path | |
import textwrap | |
import re | |
from pprint import pprint | |
import xml.etree.ElementTree as ET |
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
// Name of the struct tag used in examples | |
const tagName = "validate" |