This file contains hidden or 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 encryptdecrypt; | |
import java.io.IOException; | |
import java.io.PrintStream; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
public final class Main { | |
private Main() {} |
This file contains hidden or 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
from urllib.request import urlopen | |
from urllib.parse import unquote | |
import base64 | |
import re | |
n3ro_rss_link = input("N3RO SIP002 URIs: ").strip() | |
data = urlopen(n3ro_rss_link).read() | |
links = base64.b64decode(data).decode() | |
for link in links.splitlines(): |
This file contains hidden or 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 | |
# CA文件夹目录 | |
CA_HOME=${CA_HOME:?} | |
# CA配置文件 | |
CA_CFG=${CA_CFG:?} | |
# CA证书路径 | |
CA_CERT=${CA_CERT:?} | |
IDENTITY=${IDENTITY:?} |
This file contains hidden or 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 bash | |
DISKNAME=${1-RAM} | |
IMAGE_LOCATION=${2-"/Users/enihsyou/Library/RAM.dmg"} | |
DISK_LOCATION=/Volumes/${DISKNAME} | |
sudo hdiutil create -srcfolder $DISK_LOCATION $IMAGE_LOCATION -ov | |
sudo chown enihsyou $IMAGE_LOCATION |
This file contains hidden or 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
{ | |
"nodes": [ | |
{ | |
"name": "1 WEEK", | |
"color": "#AAAAAA" | |
}, { | |
"name": "1 MONTH", | |
"color": "#AAAAAA" | |
}, { | |
"name": "3 MONTHS", |
This file contains hidden or 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 bash | |
SIZE=2048 | |
DISKNAME=RAM | |
DISK_ID=`hdiutil attach -nomount ram://$(( ${SIZE} * 1024 * 1024 / 512 ))` | |
diskutil partitionDisk $DISK_ID GPT APFS "$DISKNAME" 0 | |
# Oneline version | |
#diskutil partitionDisk `hdiutil attach -nomount ram://8388608` GPT APFS "RAM" 0 | |
cd /Volumes/$DISKNAME |
This file contains hidden or 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
<!doctype html> | |
<html lang='en'> | |
<head> | |
<meta charset='UTF-8'> | |
<meta name='viewport' content='width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0'> | |
<meta http-equiv='X-UA-Compatible' content='ie=edge'> | |
<title>Blur background CSS</title> | |
<style> | |
body { | |
margin: 0; |
This file contains hidden or 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
; reference https://blog.csdn.net/qq_28612673/article/details/78851579 | |
; 注意在中文Windows下 需要用GB10830(中文编码)保存文件 | |
; beware to use appropriate character encoding | |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Switch Power Plan] | |
"Icon"="powercpl.dll" | |
"MUIVerb"="切换电源计划" |
This file contains hidden or 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 -*- | |
from typing import List | |
def check(array: List[str]): | |
assert len(array) == 18 # 身份证有18位 | |
id_characters = "0123456789X" | |
sum_array = [2 ** (17 - i) % 11 * int(d) for (i, d) in enumerate(array[:17])] |
This file contains hidden or 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 json | |
import re | |
from typing import List, TextIO | |
def debug(*args): | |
if DEBUG: | |
print(*args) |