doracoin / 在浏览器控制台中快速创建MD5方法
0 likes
0 forks
1 files
Last active
https://www.cnblogs.com/xiaocai0923/p/10707297.html
| 1 | (function() { |
| 2 | // 创建一个新的script元素 |
| 3 | var script = document.createElement('script'); |
| 4 | script.type = 'text/javascript'; |
| 5 | |
| 6 | // 设置src属性为外部脚本的链接 |
| 7 | script.src = 'https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/crypto-js.min.js'; |
| 8 | |
| 9 | // 监听脚本加载完成事件 |
| 10 | script.onload = function() { |
doracoin / Git批量更改提交记录中的提交人和邮箱信息
0 likes
0 forks
1 files
Last active
以下命令直接在控制台执行即可,参考:https://stackoverflow.com/a/750182
| 1 | #!/bin/sh |
| 2 | |
| 3 | git filter-branch --env-filter ' |
| 4 | OLD_EMAIL="[email protected]" |
| 5 | CORRECT_NAME="Your Correct Name" |
| 6 | CORRECT_EMAIL="[email protected]" |
| 7 | if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ] |
| 8 | then |
| 9 | export GIT_COMMITTER_NAME="$CORRECT_NAME" |
| 10 | export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL" |
doracoin / Nginx反向代理配置
0 likes
0 forks
1 files
Last active
在相应的 server 节点下粘贴如下内容:
location / {
proxy_pass http://127.0.0.1:28080/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header REMOTE-HOST $remote_addr;doracoin / start-podman.bat
0 likes
0 forks
1 files
Last active
| 1 | @set podmanWaitTime=30 |
| 2 | @set podmanContainerWaitTime=3 |
| 3 | |
| 4 | @echo wait %podmanWaitTime% seconds for podman start |
| 5 | @ping 127.0.0.1 -n %podmanWaitTime% >nul |
| 6 | |
| 7 | @echo off |
| 8 | setlocal enabledelayedexpansion |
| 9 | |
| 10 | REM 检查 podman machine 是否已经启动 |
doracoin / update-certificates.py
0 likes
0 forks
1 files
Last active
| 1 | # Update Certificate from Server NginxProxyManager |
| 2 | import ctypes |
| 3 | import os |
| 4 | import sys |
| 5 | import time |
| 6 | import zipfile |
| 7 | |
| 8 | import requests |
| 9 | |
| 10 | server_url = 'https://yourdomain.com' |
doracoin / StartVBoxMachine
0 likes
0 forks
1 files
Last active
| 1 | @REM VM-02 |
| 2 | D:\Programs\VirtualBox\VBoxManage.exe startvm vm-02 |
| 3 | |
| 4 | @REM VM-03 |
| 5 | @echo wait a while |
| 6 | :: ping period is per second |
| 7 | ping 127.0.0.1 -n 5 > nul |
| 8 | D:\Programs\VirtualBox\VBoxManage.exe startvm vm-03 |
doracoin / EarthLiveSharp 清理cloudinary CDN缓存
0 likes
0 forks
3 files
Last active
| 1 | # -*- coding: utf-8 -*- |
| 2 | # Author: Creke |
| 3 | # HomePage: http://blog.creke.net |
| 4 | |
| 5 | import sys |
| 6 | import urllib, urllib2 |
| 7 | import base64 |
| 8 | import json |
| 9 | |
| 10 | URLLIB_DEBUG_LEVEL = 1 |