30.11.2020: Updated with the new patchseries and instructions for Windows
02.12.2020: Added tweaks
08.12.2020: Updated with patchseries v4
31.01.2020: Updated with patchseries v6
| /* eslint-disable no-param-reassign */ | |
| import { | |
| getMembers, types | |
| } from 'mobx-state-tree' | |
| import { | |
| createMachine | |
| } from 'xstate' | |
| import { interpret } from 'xstate/lib/interpreter' | |
| // Pieced together from: |
Here is easy steps to try Windows 10 on ARM or Ubuntu for ARM64 on your Apple Silicon Mac. Enjoy!
NOTE: that this is current, 10/1/2021 state.
| // Allows disabling Same-Origin Policy on iOS WKWebView. | |
| // Tested on iOS 12.4. | |
| // Uses private API; obviously can't be used on app store. | |
| @import WebKit; | |
| @import ObjectiveC; | |
| void WKPreferencesSetWebSecurityEnabled(id, bool); | |
| @interface WDBFakeWebKitPointer: NSObject |
| # Do this on every node of the cluster | |
| curl -O http://www.congiu.net/hive-json-serde/1.3.8/hdp23/json-serde-1.3.8-jar-with-dependencies.jar | |
| sudo cp json-serde-1.3.8-jar-with-dependencies.jar /usr/lib/presto/plugin/hive-hadoop2/ | |
| sudo chown presto:presto /usr/lib/presto/plugin/hive-hadoop2/json-serde-1.3.8-jar-with-dependencies.jar | |
| #restart presto | |
| sudo restart presto-server |
| #!/bin/bash | |
| set -eu | |
| umask 0022 | |
| if [[ $# -lt 1 ]]; then | |
| echo "Usage: $0 role_name [AWS ACCOUNT NUMBER]" >&2 | |
| exit 1 | |
| fi |
| #!/usr/bin/env python | |
| import os | |
| import json | |
| import argparse | |
| import math | |
| from datetime import datetime | |
| import dateutil.parser | |
| import time | |
| import sys |
| #!/usr/bin/env python2.7 | |
| import os | |
| import json | |
| import argparse | |
| import math | |
| def convert_size(size_bytes): | |
| if (size_bytes == 0): | |
| return '0B' |
| #!/bin/bash | |
| BASE_PATH=/var/opt/gitlab/gitlab-rails/shared/registry/docker/registry/v2/repositories | |
| DRY_RUN=0 | |
| KEEP_LAST_IMAGES=10 | |
| RUN_GARBAGE_COLLECTOR=0 | |
| GITLAB_CTL_COMMAND=`which gitlab-ctl` | |
| @startuml | |
| ' uncomment the line below if you're using computer with a retina display | |
| ' skinparam dpi 300 | |
| !define Table(name,desc) class name as "desc" << (T,#FFAAAA) >> | |
| ' we use bold for primary key | |
| ' green color for unique | |
| ' and underscore for not_null | |
| !define primary_key(x) <b>x</b> | |
| !define unique(x) <color:green>x</color> | |
| !define not_null(x) <u>x</u> |