Example on how to run locally an AWS Lambda via API Gateway using localstack.
Based on...
import { useState, useEffect } from "react"; | |
import { NativeModules, StatusBarIOS, Platform, StatusBar } from "react-native"; | |
import get from "lodash/get"; | |
const { StatusBarManager } = NativeModules; | |
export default function useStatusBarHeight() { | |
// Initialize w/ currentHeight b/c StatusBar.currentHeight works properly on android on Android | |
const [height, setHeight] = useState(StatusBar.currentHeight || 0); |
name: {Project Name} | |
options: | |
bundleIdPrefix: {Bundle ID Prefix} | |
deploymentTarget: | |
iOS: 13.0 | |
xcodeVersion: "11.3.1" # 変わらない? | |
# findCarthageFrameworks: true # 余計なフレームワークまで追加されてしまうためコメントアウト | |
carthageExecutablePath: mint run Carthage/Carthage carthage |
Example on how to run locally an AWS Lambda via API Gateway using localstack.
Based on...
adb help // List all comands | |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader |
<IfModule mod_headers.c> | |
Header set Connection keep-alive | |
# Cache-control headers | |
# 2 HOURS | |
#<filesMatch "*"> | |
Header set Cache-Control "max-age=7200, must-revalidate" | |
#</filesMatch> | |
# 480 weeks - 290304000 |
# run as root! | |
yum erase ffmpeg faac libfaac x264 libx264 libvpx -y | |
yum install gcc gcc-c++ automake autoconf libtool nasm git subversion nasm pkgconfig -y | |
export LD_LIBRARY_PATH=/usr/local/lib/ | |
echo /usr/local/lib > /etc/ld.so.conf.d/custom-libs.conf | |
ldconfig | |
/* | |
1. Create a folder named "email" within "tinymce/plugins". | |
2. Create a file called "plugin.min.js" within the folder. | |
2. Paste the below code inside "tinymce/plugins/email/plugin.min.js" | |
3. Extend your tiny.init like: | |
tinymce.init({ | |
plugins: "email", | |
toolbar: "email" |
# Apache .htaccess | |
# angularjs pushstate (history) support: | |
# See http://www.josscrowcroft.com/2012/code/htaccess-for-html5-history-pushstate-url-routing/ | |
<ifModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_URI} !index | |
RewriteRule (.*) index.html [L] |