As root, update the server's installed packages:
> apt-get update
> apt-get upgrade -y
Set default editor (vim):
> update-alternatives --config editor
As root, update the server's installed packages:
> apt-get update
> apt-get upgrade -y
Set default editor (vim):
> update-alternatives --config editor
brew list -1 | while read cask; do | |
echo -ne "\x1B[1;34m $cask \x1B[0m" | |
brew uses $cask --installed | awk '{printf(" %s ", $0)}' | |
echo "" | |
done |
// column.ts | |
export type ColumnLoadingOptions = "cell" | |
| "column-header" | |
export const ColumnLoadingOptions = { | |
CELL: "cell" as ColumnLoadingOptions, | |
COLUMN_HEADER: "column-header" as ColumnLoadingOptions, | |
}; | |
export interface IColumnProps extends IColumnNameProps, IProps { | |
... |
#!/usr/bin/env bash | |
set -e | |
set -o pipefail | |
function qcow2_size() { | |
wc -c Docker.qcow2 | awk '{print $1}' | |
} | |
cd ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux |
Atom Settings |
#!/bin/bash | |
if [ `defaults read -g ApplePressAndHoldEnabled` -eq 1 ]; then | |
defaults write -g ApplePressAndHoldEnabled -bool false | |
echo "Disabled press and hold" | |
else | |
defaults write -g ApplePressAndHoldEnabled -bool true | |
echo "Enabled press and hold" | |
fi |
[ | |
{ "keys": ["ctrl+tab"], "command": "next_view"}, | |
{ "keys": ["ctrl+shift+tab"], "command": "prev_view"}, | |
{ "keys": ["ctrl+shift+]"], "command": "next_view"}, | |
{ "keys": ["ctrl+shift+["], "command": "prev_view"}, | |
{ "keys": ["ctrl+i"], "command": "reindent"}, | |
{ "keys": ["enter"], "command": "move", "args": {"by": "characters", "forward": true}, "context": | |
[ | |
{ "key": "following_text", "operator": "regex_contains", "operand": "^[)\"'\\]\\};]", "match_all": true }, | |
{ "key": "auto_complete_visible", "operator": "equal", "operand": false } |
#!/bin/bash | |
if [ $CONFIGURATION == Release ]; then | |
echo "Bumping build number..." | |
plist=${PROJECT_DIR}/${INFOPLIST_FILE} | |
# increment the build number (ie 115 to 116) | |
buildnum=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${plist}") | |
if [[ "${buildnum}" == "" ]]; then | |
echo "No build number in $plist" | |
exit 2 |