Skip to content

Instantly share code, notes, and snippets.

View crapthings's full-sized avatar
😎
🇰🇵我们晚上去

crapthings crapthings

😎
🇰🇵我们晚上去
View GitHub Profile

1 - Get an Ubuntu machine up and running (make sure ports 11011 and 4000 are open)

2 - Install docker + docker-compose (full_install_docker_compose.sh)

3 - Get a docker-compose.yml with mongodb, kadira-ui, kadira-engine and kadira-rma (docker-compose.yml)

3 - Run "sudo docker-compose up" (-d if you want it running on background)

4 - Access http://machineIp:4000 and login as "admin@gmail.com" and "admin" password

5 - Create your APP, get the ID and Secret

6 - Setup kadira in your app by code or settings.json (Config)

7 - Update your app from "free" plan to "paid" to get full access at Kadira ([Update App Plan](https://gist.github.com/6uimorais/1e1de20bbbb2a04fe19fc73f88d6a25f#file-changepl

@crapthings
crapthings / gist:59e3d0cc415c02d7afede490b160c2b6
Last active August 26, 2020 02:11
android oppo 推送相关

https://blog.csdn.net/zhongshanyishi/article/details/80619101

if (action.equals("openNotificationSettings")) {
            cordova.getActivity().runOnUiThread(new Runnable() {
                @Override
                public void run () {
                    Context context = cordova.getActivity().getApplicationContext();
                    Intent intent = new Intent();
 intent.setAction(Settings.ACTION_APP_NOTIFICATION_SETTINGS);
package cn.hhjjj.mobpush;
import android.os.Bundle;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.provider.Settings;
@crapthings
crapthings / Ontology.md
Last active August 23, 2020 04:37
semantic web best answer
中华人民共和国专利法
中华人民共和国专属经济区和大陆架法
中华人民共和国个人所得税法
中华人民共和国个人独资企业法
中华人民共和国中国人民银行法
中华人民共和国中外合作经营企业法
中华人民共和国中外合资经营企业所得税法
中华人民共和国中外合资经营企业法
中华人民共和国中小企业促进法
中华人民共和国义务教育法
@crapthings
crapthings / FAQ.md
Last active May 16, 2020 07:26
sparql 查询 cheatsheet
@crapthings
crapthings / 机翻.md
Last active May 6, 2020 05:07
物权法拆解

用益物权

['用益物权', '物权']

一般规定

['一般', '规定']

49d939c5-33b9-4387-9e46-9aae8a645022 49d939c5-33b9-4387-9e46-9aae8a645022 0.01mb Wed Mar 18 2020 19:32:49 GMT+0800 (CST)
c676c333-db29-49e6-a701-46a55a58a591 c676c333-db29-49e6-a701-46a55a58a591 0mb Wed Mar 18 2020 19:32:42 GMT+0800 (CST)
719401bb-6612-4f01-a92b-fc998796c962 719401bb-6612-4f01-a92b-fc998796c962 0.08mb Wed Mar 18 2020 09:31:53 GMT+0800 (CST)
a61952cd-a1a4-4051-a4c9-dfbd10311f13 a61952cd-a1a4-4051-a4c9-dfbd10311f13 0.16mb Tue Mar 17 2020 21:17:53 GMT+0800 (CST)
0aedcc2d-b1c1-405e-8962-c34855caff4c 0aedcc2d-b1c1-405e-8962-c34855caff4c 0.16mb Tue Mar 17 2020 18:29:53 GMT+0800 (CST)
c0e92c13-5b18-41a6-8295-48f27cc03293 c0e92c13-5b18-41a6-8295-48f27cc03293 0.04mb Tue Mar 17 2020 15:43:49 GMT+0800 (CST)
7073aaf1-e44b-484d-a2f5-ab86a86fd038 7073aaf1-e44b-484d-a2f5-ab86a86fd038 0.04mb Tue Mar 17 2020 15:43:30 GMT+0800 (CST)
5891c048-dd08-45e9-8fc9-c108921cf7ff 5891c048-dd08-45e9-8fc9-c108921cf7ff 0.02mb Tue Mar 17 2020 13:49:10 GMT+0800 (CST)
06d1fad3-b72d-41bf-86f7-2db1539d0111 06d1fad3-b72d-41bf-86f
01-03 10:29:10.684 1557 4901 D HwConnectivityServiceEx: set cache by key is 10158 interfaceName iswlan0 value is false
01-03 10:29:11.169 27724 27724 I aptouch_daemon: filter_touch_detect, down, in: 1, out: 1
01-03 10:29:11.170 1557 1852 D libfingersense_wrapper: Calling fingersense_classify_touch()
01-03 10:29:11.174 1557 1852 D libfingersense_wrapper: fingersense_classify_touch() finished
01-03 10:29:11.277 3379 10242 I HwCommBoosterService: reportBoosterPara enter: com.android.server.dns
01-03 10:29:11.278 3379 10242 I HwCommBoosterManager: reportBoosterPara exit: com.android.server.dns
01-03 10:29:11.279 3379 3492 I OllieBoosterPlugin: receiveAPModuleData
01-03 10:29:11.279 3379 3492 I DollieDcTracterAdapter: onReceiveAPModuleData dataType801
01-03 10:29:11.302 27724 27724 I aptouch_daemon: filter_touch_detect, all_touch_up
01-03 10:29:11.307 633 20784 I netd : trafficSwapActiveStatsMap() <10.34ms>
=> Started your app.
=> App running at: http://localhost:3000/
=> Errors executing Cordova commands:
While running Cordova app for platform Android with options --buildConfig,/Users/monsterstep/dev/sandbox2020/mobileauth/.meteor/local/cordova-build/build.json,--device:
Error: Command failed: /Users/monsterstep/dev/sandbox2020/mobileauth/.meteor/local/cordova-build/platforms/android/cordova/run --buildConfig /Users/monsterstep/dev/sandbox2020/mobileauth/.meteor/local/cordova-build/build.json --device
/Users/monsterstep/dev/sandbox2020/mobileauth/.meteor/local/cordova-build/platforms/android/app/src/main/AndroidManifest.xml:73:9-91 Error:
Element meta-data#JPUSH_APPKEY at AndroidManifest.xml:73:9-91 duplicated with element declared at AndroidManifest.xml:15:9-91
/Users/monsterstep/dev/sandbox2020/mobileauth/.meteor/local/cordova-build/platforms/android/app/src/main/AndroidManifest.xml Error: