Skip to content

Instantly share code, notes, and snippets.

Avatar
😎
🇰🇵我们晚上去

crapthings crapthings

😎
🇰🇵我们晚上去
View GitHub Profile
View Preferences.sublime-settings
// Settings in here override those in "Default/Preferences.sublime-settings",
// and are overridden in turn by syntax-specific settings.
{
"font_face": "Fira Code",
"font_size": 16,
"font_options": [
"subpixel_antialias",
// "gray_antialias"
],
"tab_size": 2,
View gist:8d2d0b23e6ae6da684767ac0e95c48b8
This file has been truncated, but you can view the full file.
#define
#endif
#if
#ifdef
#ifndef
#import
#include
#pragma
%d
View gist:18fe20fe7fbeb25007a88fd4ee3f06f8
to check if the server works - https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice
stun:
stun.l.google.com:19302,
stun1.l.google.com:19302,
stun2.l.google.com:19302,
stun3.l.google.com:19302,
stun4.l.google.com:19302,
stun.ekiga.net,
stun.ideasip.com,
@crapthings
crapthings / docker-compose.yml
Last active May 3, 2022
docker-compose rs init
View docker-compose.yml
version: '3'
services:
mongo1:
hostname: mongo1
container_name: localmongo1
image: mongo
restart: always
expose:
- 27017
ports:
@crapthings
crapthings / rust-note.md
Created Apr 29, 2022
RUST 学习笔记
View rust-note.md
View 位置.js
module.exports = [
{
"x":1,
"y":7,
"d":7
},
{
"x":2,
"y":8,
"d":7
View _Self-Hosted-Kadira-APM-Docker-Compose -Ubuntu.md

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

View gist:59e3d0cc415c02d7afede490b160c2b6

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);
View NotificationsUtils.java
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 Aug 23, 2020
semantic web best answer