Skip to content

Instantly share code, notes, and snippets.

Just for fun

Mashiro mashirozx

Just for fun
Block or report user

Report or block mashirozx

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
mashirozx / gitstars.json
Created Feb 7, 2018
github stars manager for production
View gitstars.json
View index.html
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 /
Last active Jun 12, 2019
JSON API Crawler in Python
import requests
import pypyodbc
import json
import time
import random
import os
# Parameters #
url = ""
View nginx
server {
listen 443 ssl;
listen [::]:443;
ssl on;
root /var/www/html;
index index.php index.html index.htm index.nginx-debian.html;
mashirozx /
Created Dec 3, 2017 — forked from FormatFish/
import requests
import json
import mimetypes
from PIL import ImageGrab
import datetime
def upload(files):
format = "json"
View ajax.php
<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'); ?>
<div class="commentnav">
<?php paginate_comments_links(); ?>
mashirozx / calculator.js
Last active Oct 20, 2017
View calculator.js
// 定义数字0:
var zero = function (f) {
return function (x) {
return x;
// 定义数字1:
var one = function (f) {
return function (x) {
mashirozx / vultr-bandwidth-monitor-index.php
Last active Aug 24, 2019
A php page shows Vultr's VPS bandwidth usage.
View vultr-bandwidth-monitor-index.php
$request = "";
$serviceInfo = json_decode(file_get_contents($request));
$income = $serviceInfo->incoming_bytes;
$outgo = $serviceInfo->outgoing_bytes;
$sumin = 0;
$sumout = 0;
foreach ($income as $invalue) {
View hitokoto.html
<script src=""></script>
<p class="hitokoto"></p>
<p class="from"></p>
You can’t perform that action at this time.