Skip to content

Instantly share code, notes, and snippets.

View PhotonQuantum's full-sized avatar

LightQuantum PhotonQuantum

View GitHub Profile

Keybase proof

I hereby claim:

  • I am PhotonQuantum on github.
  • I am lightquantum (https://keybase.io/lightquantum) on keybase.
  • I have a public key whose fingerprint is 5676 005D B2E5 3AA9 7702 6A28 EB97 4228 6A02 659C

To claim this, I am signing this object:

#!/bin/bash
while true; do
echo "sub topic.live_lyric"|nc localhost 23334
echo
sleep 1
done
@PhotonQuantum
PhotonQuantum / fuo-helper.py
Last active January 11, 2022 16:32
A simple feeluown tui. [WIP]
#!/bin/python
from blessed import Terminal
from concurrent.futures import ThreadPoolExecutor
from queue import SimpleQueue
from threading import Lock
import re
import socket
import subprocess
import time
from bottle import route, run, request
from requests_futures.sessions import FuturesSession
import requests
import json
client_id = "your_id_here"
client_secret = "your_secret_here"
username = "your_username_here"
password = "your_pass_here"
hostname = "your_url_here"
#!/usr/bin/python
import sys
import os
import subprocess
from lxml import objectify, etree
if os.path.exists('/var/lock/boinccpu.lock'):
print("Masked")
sys.exit()
#!/usr/bin/python
from subprocess import run
import sys
import json
def main():
print('\033[92m?\033[0m Master Password: ', end='', flush=True)
rtn = run(['bw', 'unlock', '--response'], capture_output=True)
auth = json.loads(rtn.stdout)
#!/usr/bin/python
import requests
import sys
import os
import json
from itertools import cycle
import base64
from multiprocessing.dummy import Pool
@PhotonQuantum
PhotonQuantum / compton.conf
Created June 3, 2019 12:16
my compton config (forked compton)
# AUR: https://aur.archlinux.org/packages/compton-tryone-git/
# GITHUB: https://github.com/tryone144/compton
# Shadow
shadow = true;
no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true;
shadow-opacity = 0.6;
shadow-exclude = [
"class_g = 'Firefox' && argb",
{
"status": 1,
"info": "成绩返回结果",
"data": {
"exam_id": 0,
"group_id": "27",
"student_id": "72299",
"answer": [
{
"topicId": "2165",
import json
class Model:
pass
class DummyArtist(Model):
name: str
uri: str