https://github.com/driftyco/ionic-conference-app/tree/typescript
best easy know
1、auth != null – only auth pass user ( login success user)
2、$uid === auth.uid – usually only data owner can read or modify
$userId === auth.uid
==========
1、only admins group can wirte data
a. Database data
add admins -> add uid:true (uid -> user in admins group)
b. Database rule
add
{
“rules”: {
“admins”:{
“.read” : “auth != null && root.child(‘admins’).hasChild(auth.uid)”,
“.write” : “auth != null && root.
https://forum.ionicframework.com/t/push-notifications-with-ionic-2/63851/4
https://github.com/fechanique/cordova-plugin-fcm
=====
https://www.youtube.com/watch?v=7yXtzhqT1uk
https://medium.com/@ankushaggarwal/push-notifications-in-ionic-2-658461108c59#.ff6hz41ot
.sender_id who is sender or This guy is send message.
.FCM_token (api_key) it’s right to use FMC, who get token, then can send
.Device token this device (which device)
Where is come from?
.sender_id 、 FCM_token from FCM (firebase)
.Device_token from device
How to get?
.sender_id 、 FCM_token : login firebase console -> settings -> colud messageing
.Device_token : If ionic2, when you use
Push @ionic/cloud-angular push.
1、crate virtualbox vm, install ubuntu 16
This step have many tech, just find on google
ps: start Virtual Box in background
make link, link content is
vboxheadless -startvm “your vm’s name”
check internet is ok~~
2、Use account that when you install ubuntu, create user account. Now example username is “Ubuntu”.
Login Ubuntu use “Ubuntu” account.
see https://www.apachefriends.org/download.html
choese 7.0.13 / PHP 7.0.13
wget https://www.apachefriends.org/xampp-files/7.0.13/xampp-linux-x64-7.0.13-1-installer.run
chmod +x xampp-linux-x64-7.
http://grapesjs.com/
http://www.freebuf.com/sectool/123907.html
http://www.freebuf.com/sectool/104524.html
在这个例子中,我直接在一个临时的容器上运行“remnux/metasploit”,退出的时候会消失(“rm”功能类似)。“-it”让你能够通过shell与容器进行交互。
为了保存容器的相关数据,我使用“-v”参数来将容器目录映射到我主机的目录上。我将使用”~/.msf4”目录来存放Metasploit Framework的配置文件。主机上的“/tmp/msf”目录将会存储其他数据,比如你可能从目标系统获取的数据。
参数“-p”对容器内部的端口进行映射。上面的例子用443端口来接收反弹shell的https连接。
http://openattic.org/home.html