Skip to content

Instantly share code, notes, and snippets.

View hatsuyuki280's full-sized avatar
🎀
绿色瓷砖采购计划

初雪 hatsuyuki280

🎀
绿色瓷砖采购计划
View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

# -*- coding:utf-8 -*-
# !/usr/bin/env python3
'''
Author: ayasakinagi
Email: [email protected]
环境: Python3
依赖: deluge_client
使用: 修改host, port, username, password, limitSize, dataPath变量
@hatsuyuki280
hatsuyuki280 / generate_directory_index_caddystyle_for_Chinese.py
Last active November 26, 2020 06:41 — forked from glowinthedark/generate_directory_index_caddystyle.py
Generate directory index (recurse subfolders with `-r` or `--recursive`). Use `-h` or `--help` for all options
#!/usr/bin/env python3
# ---
# Copyright 2020 glowinthedark
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
@hatsuyuki280
hatsuyuki280 / cf_uni_cert_switcher.py
Last active October 16, 2024 15:28
Cloudflare Universal SSL switch to Google CA
#!/bin/env python3
# Written by @hatsuyuki280
# with The Unlicense
# for more? refer to <https://unlicense.org>
# Use it and have fun!
from requests import get,patch
## Please make sure this token is valid to operate zone/ssl&cert (edit)
[Unit]
Description=Just eating some mem for keep Always Free Avalible
[Service]
Type=oneshot
ExecStart=/usr/bin/dd if=/dev/random bs=20M count=100 of=/dev/shm/Just-eating-some-mem.bin
RemainAfterExit=true
ExecStop=/usr/bin/rm /dev/shm/Just-eating-some-mem.bin
StandardOutput=journal
@hatsuyuki280
hatsuyuki280 / 01.bash_shortcuts_v2.md
Created February 6, 2023 08:00 — forked from tuxfight3r/01.bash_shortcuts_v2.md
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line
@hatsuyuki280
hatsuyuki280 / cf-ddns.service
Last active June 9, 2024 18:11
cf-ddns script but with systemd.timer
[Unit]
Description=Update ddns
After=network.target
[Service]
ExecStart=/bin/bash /opt/path/to/cf-ddns.sh