Example: redirect from old.com
to new.com
, and www.old.com
to www.new.com
- Go to
Rules / Redirect Rules
page - Create a new rule
- Select
Custom filter expression
- Add matching rules
- Field
Hostname
, operatorequals
, valueold.com
, or
# 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
interface Base { | |
base1: string; | |
base2: string; | |
a: string; | |
} | |
interface Interface1 extends Base { | |
b: number; | |
} |
#!/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.0
brew switch openssl 1.0.2s
export PATH="/usr/local/opt/[email protected]/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/[email protected]/lib ${LDFLAGS}"
export CPPFLAGS="-I/usr/local/opt/[email protected]/include ${CPPFLAGS}"
RUBY_CONFIGURE_OPTS=--with-openssl-dir=/usr/local/Cellar/openssl/1.0.2s/ rbenv install 2.3.0
Fix and use libxml2
{ | |
"\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
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 |
# 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 |