Skip to content

Instantly share code, notes, and snippets.

Avatar
🐕
Just for fun

Mashiro mashirozx

🐕
Just for fun
View GitHub Profile
@mashirozx
mashirozx / main.go
Created Jul 13, 2020 — forked from yukimochi/main.go
Check All subscriber in Activity-Relay
View main.go
package main
import (
"encoding/json"
"fmt"
"os"
"strings"
"time"
"github.com/go-redis/redis"
View git submodule update.md
root@ubuntu-shanghai:~/mtb#  git clone git@github.com:wecodebolivia/adamsubmoduleupdate.git -b staging --recursive
Cloning into 'adamsubmoduleupdate'...
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 7 (delta 0), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (7/7), done.
Submodule 'mashirozx/odoo_mrp_sale_info' (git@github.com:mashirozx/odoo_mrp_sale_info.git) registered for path 'mashirozx/odoo_mrp_sale_info'
Cloning into '/root/mtb/adamsubmoduleupdate/mashirozx/odoo_mrp_sale_info'...
View keybase.md

Keybase proof

I hereby claim:

  • I am mashirozx on github.
  • I am mashirozx (https://keybase.io/mashirozx) on keybase.
  • I have a public key ASAJsnzD292NJQweJt4lH2wLwCDnkfIrE5rk1I5NcfDzngo

To claim this, I am signing this object:

View 内存溢出
10/25 13:36:14: Launching 'app' on Xiaomi MI NOTE LTE.
$ adb shell am start -n "ceui.lisa/ceui.lisa.activities.CoverActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Connecting to ceui.lisa
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
W/ActivityThread: Application ceui.lisa is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
I/art: Debugger is active
I/System.out: Debugger has connected
waiting for debugger to settle...
@mashirozx
mashirozx / gitstars.json
Created Feb 7, 2018
github stars manager for production
View gitstars.json
{"tags":[],"lastModified":1518004271313}
View index.html
<style>
body {
background: #FFAFBD;
/* fallback for old browsers */
background: -webkit-linear-gradient(to right, #ffc3a0, #FFAFBD);
/* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #ffc3a0, #FFAFBD);
/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
@mashirozx
mashirozx / json-api-crawler.py
Last active Jun 12, 2019
JSON API Crawler in Python
View json-api-crawler.py
import requests
import pypyodbc
import json
import time
import random
import os
##############
# Parameters #
url = "https://example.com"
View nginx
server {
listen 443 ssl;
listen [::]:443;
server_name cdn.xxx.xxx;
ssl on;
root /var/www/html;
index index.php index.html index.htm index.nginx-debian.html;
@mashirozx
mashirozx / upload.py
Created Dec 3, 2017 — forked from FormatFish/upload.py
针对sm.ms的图床
View upload.py
#coding=utf-8
import requests
import json
import mimetypes
from PIL import ImageGrab
import datetime
def upload(files):
APIKey = "YOUR API KEY"
format = "json"
View ajax.php
<!--蜜汁Ajax-->
<div class="commentshow" id="commentshow">
<div id="loading-comments"><span>Loading...</span></div>
<ol class="comments-list">
<?php wp_list_comments('type=comment&callback=weisay_comment&reverse_top_level=1'); ?>
</ol>
<div class="commentnav">
<?php paginate_comments_links(); ?>
<script>
//Ajax评论,待优化。。
You can’t perform that action at this time.