Skip to content

Instantly share code, notes, and snippets.

View 5aaee9's full-sized avatar
🌏
Alive

5aaee9 5aaee9

🌏
Alive
View GitHub Profile
@5aaee9
5aaee9 / history.json
Last active August 26, 2021 14:25
XiaomiKernel
["README","alioth-r-oss","andromeda-p-oss","apollo-q-oss","ares-r-oss","armani-jb-oss","armani-kk-oss","begonia-p-oss","begonia-q-oss","begonia-r-oss","biloba-r-oss","bomb-q-oss","cactus-o-oss","cactus-p-oss","camellia-r-oss","cancro-kk-oss","cancro-m-oss","cannon-q-oss","cannon-r-oss","cappu-n-oss","cas-q-oss","cepheus-p-oss","cepheus-q-oss","cezanne-q-oss","cezanne-r-oss","chopin-r-oss","clover-o-oss","cmi-r-oss","courbet-r-oss","crux-p-oss"]
@5aaee9
5aaee9 / Plugin.php
Last active December 18, 2018 06:37
DisqusJs for Typecho
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Use disqus js as comment loader
*
* @package DisqusJs
* @author Indexyz
* @version 1.0.0
* @link https://blog.indexyz.me
@5aaee9
5aaee9 / trix-smms-image-upload.js
Created November 5, 2018 07:28
Upload images to sm.ms hosting via send XHR request with Trix Editor
(function() {
addEventListener("trix-attachment-add", function(event) {
if (event.attachment.file) {
uploadFileAttachment(event.attachment)
}
})
function uploadFileAttachment(attachment) {
uploadFile(attachment.file, setAttributes)
@5aaee9
5aaee9 / Analytics_Plugin.php
Created October 1, 2018 07:06
Add google analytics to page header
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Add google analytics to page header
*
* @package Analytics
* @author Indexyz
* @version 1.0.0
* @link https://blog.indexyz.me
@5aaee9
5aaee9 / keybase.md
Created March 9, 2018 06:58
Keybase

Keybase proof

I hereby claim:

  • I am indexyz on github.
  • I am indexyz (https://keybase.io/indexyz) on keybase.
  • I have a public key ASDqvRhSzx5-5qArZm_Yrd_Ltoc2Hzjze2-qYDkhgVWyuwo

To claim this, I am signing this object:

@5aaee9
5aaee9 / clean-docker-logs.sh
Created October 28, 2017 05:19
Utils Script
#!/bin/bash
rm $(docker inspect $1 | grep -G '"LogPath": "*"' | sed -e 's/.*"LogPath": "//g' | sed -e 's/",//g');
# Usage ./clean-docker-logs.sh ${container_id}
@5aaee9
5aaee9 / China-2017-Fire-Test.py
Created August 8, 2017 12:27
Indexyz-Scripts
# -*- coding: utf-8 -*-
from urllib import urlencode, quote_plus
import requests
import threading
import random
import time
import json
import sys
import re
@5aaee9
5aaee9 / HDHome-Free-RSS.py
Created July 7, 2017 00:40
Download Script
from bs4 import BeautifulSoup
from enum import Enum
import feedparser
import urlparse
import requests
import json
import time
import os
basic_url = 'http://hdhome.org/'