In iTerm2, in the menu bar go to Scripts > Manage > New Python Script
Select Basic. Select Long-Running Daemon
Give the script a decent name (I chose auto_dark_mode.py
)
Save and open the script in your editor of choice.
#! /bin/bash | |
# [get_golang.sh](https://gist.github.com/n8henrie/1043443463a4a511acf98aaa4f8f0f69) | |
# Download latest Golang release for AMD64 | |
# https://dl.google.com/go/go1.10.linux-amd64.tar.gz | |
set -euf -o pipefail | |
# Install pre-reqs | |
sudo apt-get install python3 git -y | |
o=$(python3 -c $'import os\nprint(os.get_blocking(0))\nos.set_blocking(0, True)') |
The PATH
is an important concept when working on the command line. It's a list
of directories that tell your operating system where to look for programs, so
that you can just write script
instead of /home/me/bin/script
or
C:\Users\Me\bin\script
. But different operating systems have different ways to
add a new directory to it:
After checking multiple tutorials I had to take pieces from each of the following to get this to work on my Win10 system:
Basically it uses the steps from the first article, but under the background
path from the second article.
Neither article on its own worked for me.
Steps:
Provide the localizable files from your project to localizers.
Export localizations for the languages and regions you’re ready to support. You can export all the files that you need to localize from your Xcode project, or export the files for specific localizations. Optionally, add files to the exported folders to provide context, and then give the files to localizers.
> When enabled, the Swift compiler will be used to extract Swift string literal and interpolationSetting name:
SWIFT_EMIT_LOC_STRINGS
LocalizedStringKey
and LocalizationKey
types during localization export.#!/bin/sh | |
# | |
# This script outputs "stdout" to stdout and "stderr" to stderr. | |
# | |
# Try it like this and observe the differences: | |
# | |
# out-vs-err.sh 2>&1 >/dev/null | |
# out-vs-err.sh >/dev/null 2>&1 | |
# | |
# See <http://stackoverflow.com/questions/10508843/what-is-dev-null-21/10508862#comment48709328_10508843> |
/* | |
* To compile objective-c on the command line: | |
* | |
* gcc -framework Foundation objc-gcc.m | |
* | |
* You may have to link with -lobjc or other libs, | |
* as required. | |
*/ | |
#import <Foundation/Foundation.h> |
As configured in my dotfiles.
start new:
tmux
start new with session name: