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 python3 | |
import os | |
import xattr | |
APP_DIR = "/Applications" | |
ATTR = "com.apple.quarantine" | |
def remove_r(path: str): | |
if ATTR in xattr.listxattr(path): |
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 python3 | |
import requests | |
import json | |
import os | |
""""""""""""""""""""""""""""""""""""""" | |
Please enter your cookies below | |
after login in https://i.qq.com | |
""" |
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 python3 | |
""" | |
Copyright (c) 2020 Hao Guan | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
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 Bilibili New Live Cleaner | |
// @namespace https://hguandl.com | |
// @version 0.1 | |
// @description 删除哔哩哔哩直播中的新版直播间相关内容 | |
// @author hguandl | |
// @match *://link.bilibili.com/p/center/index* | |
// @icon https://www.bilibili.com/favicon.ico | |
// @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
// | |
// main.swift | |
// NetworkChangeDetector | |
// | |
// Created by Hao Guan on 2021/8/30. | |
// | |
import Foundation | |
import Network | |
import CoreWLAN |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// | |
// ContentView.swift | |
// Shared | |
// | |
// Created by hguandl on 28/8/2022. | |
// | |
import AVFoundation | |
import SwiftUI |
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
use lazy_static::lazy_static; | |
use reqwest::Client; | |
use tokio::sync::{Mutex, MutexGuard}; | |
pub struct ClientProvider { | |
client: Mutex<Client>, | |
} | |
impl ClientProvider { | |
pub fn new() -> Self { |