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
# Configure the reverse-proxy on port 443 | |
server { | |
# general configs | |
keepalive_timeout 30; | |
listen 127.0.0.1:443 ssl; | |
server_name api.example.com; | |
# ssl configs | |
ssl_certificate /path/to/api.crt; | |
ssl_certificate_key /path/to/api.key; |
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
-- ######################################################### | |
-- Author: www.sqlbook.com | |
-- Copyright: (c) www.sqlbook.com. You are free to use and redistribute | |
-- this script as long as this comments section with the | |
-- author and copyright details are not altered. | |
-- Purpose: For a specified user defined table (or all user defined | |
-- tables) in the database this script generates 4 Stored | |
-- Procedure definitions with different Procedure name | |
-- suffixes: | |
-- 1) List all records in the table (suffix of _GetAll) |
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
There is no way to store an empty object/array/null value. | |
There are also no actual arrays. Array values get stored as objects with integer keys. | |
(If all keys are integers, it will be returned as an array.) | |
Basically, it's one giant tree of hashes with string keys. | |
Simply write a value to any location, and the intermediary locations will automatically come into existance. | |
── Classes ── | |
DataSnapshot : Container for a subtree of data at a particular location. |
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 | |
BASE_DIR=`pwd`; | |
function remove_rctwebview(){ | |
local dir="${BASE_DIR}/node_modules/react-native/React"; | |
sed -i'.bak' '/RCTWebView/d' "${dir}/React.xcodeproj/project.pbxproj" | |
rm -f "${dir}/React.xcodeproj/project.pbxproj.bak" | |
rm -f "${dir}/Views/RCTWebView.m" | |
rm -f "${dir}/Views/RCTWebView.h" |
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/sh | |
package_name=$1 | |
./gradlew assembleDebug | |
adb -d install -r app/build/outputs/apk/app-debug.apk | |
adb shell monkey -p "$package_name" -c android.intent.category.LAUNCHER 1 | |
./logcat.sh "$package_name" |