Replace tgram://bottoken/ChatID
to your tg bot.
Test on:
- Linux
- macOS
Linux dependencies:
- xsel
~/.local/bin/kitty_emacs_pager
复制 App ID 和 App Key 填入 backup.py 的 client_id
和 client_secret
rye pin 3.11
rye add requests
rye sync
cp ddns.service /etc/systemd/system/ddns.service
sudo systemctl enable ddns.service
sudo systemctl start ddns.service
Ref: https://github.com/fire1ce/DDNS-Cloudflare-Bash#requirements
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
PROMPT="$fg[cyan]%}$USER@%{$fg[green]%}%m " | |
PROMPT+="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )" | |
PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" |
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
# -*- coding: utf-8 -*- | |
import encodings.utf_8 | |
import math | |
import urllib, urllib2 | |
import random | |
import re | |
from xml.dom import minidom | |
from LevenshteinDistance import LevenshteinDistance | |
from grabber import LyricProviderBase |
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
Classfile ./com/company/LambdaTest.class | |
Last modified 2017-10-11; size 1296 bytes | |
MD5 checksum 7ac0bf40633d31a57673577fde0a699d | |
Compiled from "LambdaTest.java" | |
public class com.company.LambdaTest | |
minor version: 0 | |
major version: 52 | |
flags: ACC_PUBLIC, ACC_SUPER | |
Constant pool: | |
#1 = Methodref #8.#25 // java/lang/Object."<init>":()V |
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
package info.dourok.androidx.databinding | |
import androidx.databinding.ViewDataBinding | |
import androidx.lifecycle.GenericLifecycleObserver | |
import androidx.lifecycle.Lifecycle.Event.ON_START | |
import androidx.lifecycle.LifecycleObserver | |
import androidx.lifecycle.LifecycleOwner | |
import java.lang.ref.WeakReference | |
import java.util.WeakHashMap |
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
module ChineseId | |
WEIGHT = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2] | |
CODE = ["1", "0", "X", "9", "8", "7", "6", "5", "4", "3", "2"] | |
#S = Sum(Ai * Wi) | |
#Y = mod(S, 11) | |
#C = Cy | |
def self.checksum id | |
NewerOlder