This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import socket | |
import binascii | |
import threading | |
import time | |
import json | |
reconnect_flag = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#coding:utf-8 | |
# Author: Sg4Dylan --<sg4dylan#gmail.com> | |
# Purpose: A simple script to download video from Bilibili | |
# Created: 08/07/2016 | |
import sys | |
from subprocess import call | |
def check_and_go(args): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#coding:utf-8 | |
# Author: Sg4Dylan --<sg4dylan#gmail.com> | |
# Purpose: A simple script to complete srun's webauth | |
# Created: 03/01/2017 | |
# 配合 crontab 使用 | |
# */5 6-22 * * * /usr/bin/python3 /pathtoyourscript/LoginSrunWebAuth.py | |
import requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#coding:utf-8 | |
# Author: Sg4Dylan -- <sg4dylan#gmail.com> | |
# Update: 10/13/2017 | |
''' | |
透过 Chrome Debug Protocol 读取网易云音乐当前播放状态 | |
启动播放器时附带启动参数 | |
--remote-debugging-port=8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#coding:utf-8 | |
# Author: Sg4Dylan --<sg4dylan#gmail.com> | |
# Created: 7/14/2017 | |
from PIL import Image,ImageFont,ImageDraw | |
import render_config as config | |
def auto_poster(text: dict, param: dict): | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name NginxAutoindexExporter | |
// @namespace http://tampermonkey.net/ | |
// @version 20180915(0.2) | |
// @description Export link from nginx autoindex to aria2 | |
// @author SgDylan | |
// @match https://example.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Open Source Software Licenses | |
PUBLUS | |
Copyright(c) 2013-2014 ACCESS CO., LTD. All rights reserved. | |
This software includes all or part of the following open source software which is available under each license terms and conditions as follows: | |
* LAB.js (LABjs :: Loading And Blocking JavaScript) | |
v2.0.3 (c) Kyle Simpson |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Open Source Software Licenses | |
PUBLUS | |
Copyright(c) 2013-2014 ACCESS CO., LTD. All rights reserved. | |
This software includes all or part of the following open source software which is available under each license terms and conditions as follows: | |
* Backbone.js 0.9.2 | |
(c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#coding:utf-8 | |
# Author: Sg4Dylan --<sg4dylan#gmail.com> | |
# Update: 9/5/2017 | |
import requests | |
import ast | |
def sessionPool(pool_connections=2, pool_maxsize=5, max_retries=5): | |
session = requests.Session() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Raspberry broadcast fm shell | |
# - A believing heart is your magic - | |
# Dependency: | |
# FFmpeg: pacman -S ffmpeg | |
# PiFmRds: https://github.com/ChristopheJacquet/PiFmRds | |
# BBC Radio | |
# livelink="http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p" |
OlderNewer