# show
defaults write com.apple.dock desktop-picture-show-debug-text -bool TRUE && killall Dock
# hide
defaults write com.apple.dock desktop-picture-show-debug-text -bool FALSE && killall Dock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Base { | |
base1: string; | |
base2: string; | |
a: string; | |
} | |
interface Interface1 extends Base { | |
b: number; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
set -x | |
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
cd "${ROOT_DIR}" | |
SOURCE_CONFIG_URL="https://raw.githubusercontent.com/airbytehq/airbyte/master/airbyte-integrations/connectors/source-file/integration_tests/config.json" | |
SOURCE_IMAGE_NAME="airbyte/source-file" |
-
Install Ruby with
openssl
1.0brew switch openssl 1.0.2s export PATH="/usr/local/opt/openssl@1.0/bin:$PATH" export LDFLAGS="-L/usr/local/opt/openssl@1.0/lib ${LDFLAGS}" export CPPFLAGS="-I/usr/local/opt/openssl@1.0/include ${CPPFLAGS}" RUBY_CONFIGURE_OPTS=--with-openssl-dir=/usr/local/Cellar/openssl/1.0.2s/ rbenv install 2.3.0
-
Fix and use
libxml2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"\UF729" = "moveToBeginningOfLine:"; /* Home */ | |
"\UF72B" = "moveToEndOfLine:"; /* End */ | |
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; /* Shift + Home */ | |
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; /* Shift + End */ | |
"\UF72C" = "moveToBeginningOfDocument:"; /* PageUp */ | |
"\UF72D" = "moveToEndOfDocument:"; /* PageDown */ | |
} |
Tammy Butow presentation on DigitalOcean Tide SF
- Kubernetes
- 3 primaries and 3 nodes
- Docker containers
- Load balancer
- Private network
Parameter | Purpose | Default |
---|---|---|
yarn.app.mapreduce.am.resource.mb |
The physical memory requirement, in MiB, for the ApplicationMaster. | 1 GiB |
mapreduce.map.memory.mb |
The amount of physical memory, in MiB, allocated for each map task of a job. | 1 GiB |
mapreduce.reduce.memory.mb |
The amount of physical memory, in MiB, allocated for each reduce task of a job. | 1 GiB |
mapreduce.map.java.opts |
Java opts for the map processes. | -Djava.net.preferIPv4Stack=true |
mapreduce.reduce.java.opts |
Java opts for the reduce processes. | -Djava.net.preferIPv4Stack=true |
mapred.child.java.opts |
Java opts for the map processes. It has been deprecated in Hadoop 2.0. | -Djava.net.preferIPv4Stack=true |
yarn.nodemanager.vmem-pmem-ratio |
Virtual / physical memory ratio. Virtual memory is allocated based on this ratio | 2.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Show database charset | |
SELECT default_character_set_name FROM information_schema.SCHEMATA | |
WHERE schema_name = "<database>"; | |
# Chase database charset | |
ALTER DATABASE <database> CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci; | |
# Show table charset | |
SELECT CCSA.character_set_name, T.table_name FROM information_schema.`TABLES` T, | |
information_schema.`COLLATION_CHARACTER_SET_APPLICABILITY` CCSA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for file in *.mp4 | |
do | |
new_file=`echo ${file} | cut -d"." -f1` | |
echo "Processing: ${new_file}.mp4 -> ${new_file}.gif" | |
ffmpeg -i ${new_file}.mp4 -s 600x400 -r 5 -f gif - | gifsicle --optimize=1 --delay=3 > ${new_file}.gif | |
done |
NewerOlder