Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1b
- Decimal:
27
#!/usr/bin/env python3 | |
# | |
# This script sets the service name (i.e. drive group) for the given OSDs | |
# on the host on which it is executed. | |
# | |
# For example, to set service_name=osd.foo for OSDs 1, 2 and 3, you'd run: | |
# | |
# ./set-osd-service-name.py osd.foo 1 2 3 | |
# | |
# For each OSD specified, it will set service_name in that OSD's unit.meta |
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam' | |
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes' | |
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no' |
I hereby claim:
To claim this, I am signing this object:
/* | |
* Apple - apple.com | |
* SF Pro Display used on apple.com as of iPhone 7 (RED) launch (March 21st 2017) | |
usage: | |
- font-family: "SF Pro Display","SF Pro Icons","Helvetica Neue","Helvetica","Arial",sans-serif; | |
- known issues: | |
- Access to Font at 'http://www.apple.com/wss/fonts/SF-Pro-Display/v1/sf-pro-display_bold.woff' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The response had HTTP status code 404. | |
index.html:1 Access to Font at 'http://www.apple.com/wss/fonts/SF-Pro-Display/v1/sf-pro-display_bold.ttf' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The response had HTTP status code 404. |
Open or create ~/.bash_profile
and add the following lines:
# ssh autocomplete
function _ssh_autocomplete() {
COMPREPLY=()
CURRENT_WORD="${COMP_WORDS[COMP_CWORD]}"
if [[ ${CURRENT_WORD} == -* || ${COMP_CWORD} -eq 1 ]] ; then
WORD_LIST=$(sed -nE "s/Host\ ([a-zA-Z0-9].+)/\1/p" ~/.ssh/config | tr '\n' ' ' )
COMPREPLY=( $(compgen -W "$WORD_LIST" -- ${CURRENT_WORD}) )
Open or create ~/.bash_profile
and add the following lines:
# Sublime
alias sublime='/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl'
This will allow you to type sublime
in the Terminal to open Sublime Text 3.
To open files with Sublime type the following command: