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 |
doracoin / 下载Bing壁纸-python2版本
0 likes
0 forks
1 files
Last active
| 1 | #!/usr/bin/env python |
| 2 | # -*- coding: utf-8 -*- |
| 3 | # Create By Doracoin |
| 4 | # Github: https://github.com/doracoin |
| 5 | |
| 6 | import json, urllib2, os, sys |
| 7 | |
| 8 | # 要查询的天数(尽量写大点, 反正最多只能查询到当天和过去7天的) |
| 9 | days = 30 |
| 10 | # 超时时间 |
doracoin / 当前目录下所有文件重命名
0 likes
0 forks
1 files
Last active
| 1 | import getopt |
| 2 | import os |
| 3 | import sys |
| 4 | |
| 5 | # 建议用`PyInstaller`打包成单个exe文件,方便使用 |
| 6 | # 执行 `pip3 install pyinstaller` |
| 7 | # 然后执行 `pyinstaller -F yourscript.py` 将程序打包成单个文件 |
| 8 | |
| 9 | version = '1.7' |
| 10 | release_date = '2019-01-07 14:17:49' |
doracoin / 下载必应壁纸-python3版本
0 likes
0 forks
2 files
Last active
| 1 | #!/usr/bin/env python |
| 2 | # -*- coding: utf-8 -*- |
| 3 | # Create By Doracoin |
| 4 | # Github: https://github.com/doracoin |
| 5 | |
| 6 | import json, os, sys |
| 7 | from urllib.request import Request, urlopen, URLError, HTTPError |
| 8 | |
| 9 | # 要查询的天数(尽量写大点, 反正最多只能查询到当天和过去7天的) |
| 10 | days = 30 |