Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

mojotv mojocn

🎯
Focusing
Block or report user

Report or block mojocn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mojocn
mojocn / stop.sh
Created Mar 5, 2018
how to add process by name in bash
View stop.sh
#!/bin/bash
ps -efww|grep -w './start.sh'|grep -v grep|cut -c 9-15|xargs kill -9
ps -efww|grep -w 'manage.py Mqtt_msg_process'|grep -v grep|cut -c 9-15|xargs kill -9
ps -efww|grep -w 'manage.py Rds_msg_process'|grep -v grep|cut -c 9-15|xargs kill -9
ps -efww|grep -w 'manage.py Event_notice_process'|grep -v grep|cut -c 9-15|xargs kill -9
ps -efww|grep -w 'manage.py Offline'|grep -v grep|cut -c 9-15|xargs kill -9
ps -efww|grep -w 'manage.py dahua'|grep -v grep|cut -c 9-15|xargs kill -9
@mojocn
mojocn / main.go
Last active Feb 10, 2018
钉钉机器人订阅百度新闻v2
View main.go
package main
import (
"bytes"
"fmt"
"github.com/PuerkitoBio/goquery"
"github.com/astaxie/beego/toolbox"
"github.com/go-redis/redis"
"log"
"net/http"
@mojocn
mojocn / main.go
Created Feb 9, 2018
ding-group-bot-webhook main.go
View main.go
package main
import (
"fmt"
"log"
"github.com/PuerkitoBio/goquery"
"github.com/go-redis/redis"
"net/http"
"bytes"
"github.com/astaxie/beego/toolbox"
You can’t perform that action at this time.