(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
-server | |
-Xms2048m | |
-Xmx2048m | |
-XX:NewSize=512m | |
-XX:MaxNewSize=512m | |
-XX:PermSize=512m | |
-XX:MaxPermSize=512m | |
-XX:+UseParNewGC | |
-XX:ParallelGCThreads=4 | |
-XX:MaxTenuringThreshold=1 |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/bin/bash | |
PATH=/sbin:/usr/sbin:/bin:/usr/bin | |
DESC="Kibana 4" | |
NAME=kibana | |
DAEMON=/home/kibana/bin/$NAME | |
DAEMON_ARGS="" | |
PIDFILE=/var/run/$NAME.pid | |
SCRIPTNAME=/etc/init.d/$NAME | |
LOG=/var/log/kibana.log | |
function ChunkyCache(cache, chunkSize){ | |
return { | |
put: function (key, value, timeout) { | |
var json = JSON.stringify(value); | |
var cSize = Math.floor(chunkSize / 2); | |
var chunks = []; | |
var index = 0; | |
while (index < json.length){ | |
cKey = key + "_" + index; | |
chunks.push(cKey); |
#!/usr/bin/env bash | |
# | |
# see: https://gist.github.com/gregorynicholas/2160046ec6946a2ce0fa | |
# src: https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# updated: 2015-06-06 | |
# | |
# ask for the administrator password upfront | |
sudo -v |
version: '2.1' | |
services: | |
mysql: | |
container_name: mysql | |
image: mysql:5.7 | |
ports: | |
- "13306:3306" | |
environment: | |
- MYSQL_ROOT_PASSWORD=Welcome123 | |
healthcheck: |
Charts are from different sources and thus colors are inconsistent, please carefully read the chart's legends.
Like this? Check React Native vs Flutter: https://gist.github.com/tkrotoff/93f5278a4e8df7e5f6928eff98684979
sysctl kern.maxfiles | |
#kern.maxfiles: 12288 | |
sysctl kern.maxfilesperproc | |
#kern.maxfilesperproc: 10240 | |
sudo sysctl -w kern.maxfiles=1048600 | |
#kern.maxfiles: 12288 -> 1048600 | |
sudo sysctl -w kern.maxfilesperproc=1048576 | |
#kern.maxfilesperproc: 10240 -> 1048576 | |
sudo sysctl -w net.inet.tcp.rfc1323=1 |
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"parameters": { |
import gql from 'graphql-tag'; | |
// https://docs.amplify.aws/cli-legacy/graphql-transformer/directives/ | |
const clientSchemaExtensions = gql` | |
# https://docs.amplify.aws/cli/graphql/data-modeling/#how-it-works | |
directive @model( | |
queries: ModelQueryMap | |
mutations: ModelMutationMap | |
subscriptions: ModelSubscriptionMap | |
timestamps: TimestampConfiguration |