This file contains hidden or 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
// an example to create a new mapping `ctrl-y` | |
api.mapkey('<ctrl-y>', 'Show me the money', function() { | |
Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).'); | |
}); | |
settings.blocklistPattern = /.*feishu.cn\/wiki.*|.*nowcoder.com\/practice.*|.*leetcode.cn\/problems.*|.*bytedance.larkoffice.com\/.*/i; | |
// an example to replace `T` with `gt`, click `Default mappings` to see how `T` works. | |
api.map('gt', 'T'); |
This file contains hidden or 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
package main | |
func main() { | |
} |
This file contains hidden or 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/sh | |
### BEGIN INIT INFO | |
# Provides: traefik | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the traefik server | |
# Description: starts traefik using start-stop-daemon |
This file contains hidden or 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
let action = "" | |
let data = { | |
"key": "value" | |
} | |
let form = document.createElement("form") | |
form.method="POST" | |
form.action = action | |
form.style = "display: none;" |
This file contains hidden or 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
apt-get install -y libreadline-dev liblzma-dev libncurses5-dev libsqlite3-dev libbz2-dev zlib1g-dev libssl-dev libgdbm-dev | |
./configure --prefix=/usr/local/python3 --enable-shared --disable-ipv6 | |
make -j 8 | |
make install | |
echo "/usr/local/python3/lib" >> /etc/ld.so.conf.d/python3.conf | |
ldconfig -v |
This file contains hidden or 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
font-family: | |
/*西文*/ | |
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Helvetica, Arial, | |
/*中文*/ | |
"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Source Han Sans CN", sans-serif; | |
color: rgb(72, 85, 93); | |
-webkit-font-smoothing: antialiased; |
This file contains hidden or 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
server { | |
listen 80; | |
server_name servername; | |
location / { | |
rewrite (.*) https://$host$1 permanent; | |
} | |
access_log /path/to/access.log; | |
error_log /path/to/error.log error; |
This file contains hidden or 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
apt-get update | |
apt-get install -y pkg-config libxml2-dev libssl-dev libcurl4-gnutls-dev libjpeg-dev libpng-dev libfreetype6-dev libmcrypt-dev libreadline-dev libxslt1-dev libbz2-dev | |
PHP_INSTALL_DIR="/usr/local/php56" | |
PHP_CONFIG_DIR="$PHP_INSTALL_DIR/etc" | |
PHP_CONFIG_SCAN_DIR="$PHP_CONFIG_DIR/php.d" | |
./configure \ |
This file contains hidden or 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
wget http://cn2.php.net/distributions/php-7.2.4.tar.gz | |
tar zxvf php-7.2.4.tar.gz | |
cd php-7.2.4 | |
# Base directory | |
PHP_INSTALL_DIR='/usr/local/php72' | |
PHP_CONFIG_DIR="$PHP_INSTALL_DIR/etc" | |
PHP_CONFIG_SCAN_DIR="$PHP_CONFIG_DIR/php.d" | |
# Dependency |
NewerOlder