Skip to content

Instantly share code, notes, and snippets.

View gcdd1993's full-sized avatar
🎯
Focusing

阿晨聊技术 gcdd1993

🎯
Focusing
View GitHub Profile
@gcdd1993
gcdd1993 / listen1_aha_playlist.md
Created May 18, 2022 08:16
updated by Listen1(https://listen1.github.io/listen1/) at 2022/5/18 16:16:36

本歌单由Listen1创建, 歌曲数:269,歌单数:2,点击查看更多

@gcdd1993
gcdd1993 / README.md
Created November 22, 2021 03:50 — forked from fzls/README.md
解决 青龙面板中存放的cookie数目过多(如超过45)时,会报 Argument list too long 而无法正常执行部分脚本的问题
@gcdd1993
gcdd1993 / .editorconfig
Last active November 9, 2021 10:23
适用于 Kotlin 的EditorConfig配置文件
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
max_line_length = 160
tab_width = 4
ij_continuation_indent_size = 8
@gcdd1993
gcdd1993 / selenium_browser.py
Created November 6, 2021 16:22
selenium封装
import os
import sys
from utils.config import get_file
from selenium import webdriver
from selenium.common.exceptions import WebDriverException
def get_browser(_config_, path_prefix=""):
"""
@gcdd1993
gcdd1993 / logger.py
Created November 6, 2021 16:22
输出日志到文件
import os
import time
import logging
from logging import handlers
# 单例
def singleton(cls):
_instance = {}
@gcdd1993
gcdd1993 / syncRepo.yml
Created November 2, 2021 06:28
Sync Repo with Github Action
name: Sync yml repo
on:
schedule:
- cron: '*/30 * * * *'
workflow_dispatch:
jobs:
sync-JDMemberCloseAccount:
env:
PAT: ${{ secrets.PAT }} #此处PAT需要申请,教程详见:https://www.jianshu.com/p/bb82b3ad1d11,需要repo和workflow权限
runs-on: ubuntu-latest
@gcdd1993
gcdd1993 / clash_parser.yml
Created November 1, 2021 08:18
Clash For Windows Parser配置
parsers:
- url: https://suo.yt/7O1trPp
yaml:
prepend-rules:
- DOMAIN-SUFFIX,wallhaven.cc,🔰 节点选择
- DOMAIN-SUFFIX,helm.sh,🔰 节点选择
- DOMAIN-SUFFIX,gradle.org,🔰 节点选择
- DOMAIN-SUFFIX,j.srl,🔰 节点选择
- DOMAIN-SUFFIX,github.com,🔰 节点选择
- DOMAIN-KEYWORD,evernote,🔰 节点选择
@gcdd1993
gcdd1993 / Md5Utils.kt
Created November 1, 2021 08:16
kotlin 中使用md5加盐算法
package com.reorigin.tabby.hivemq.util
import org.slf4j.LoggerFactory
import java.math.BigInteger
import java.security.MessageDigest
import java.security.NoSuchAlgorithmException
/**
* md5工具类
@gcdd1993
gcdd1993 / docker-compose.yml
Created July 29, 2021 17:26
postgres docker compose
version: '3.8'
services:
postgres:
container_name: postgres
image: "postgres:9.6.22"
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "1123lovewm"
PGDATA: "/data/postgres"
@gcdd1993
gcdd1993 / daemon.json
Created July 15, 2021 14:52
Docker Desktop Windows
{
"registry-mirrors": [
"https://hub-mirror.c.163.com",
"https://mirror.baidubce.com"
],
"insecure-registries": [],
"debug": false,
"experimental": false,
"features": {
"buildkit": true