Skip to content

Instantly share code, notes, and snippets.

View Twor's full-sized avatar
:octocat:
(┛◉Д◉)┛彡┻━┻

Twor Twor

:octocat:
(┛◉Д◉)┛彡┻━┻
View GitHub Profile
@Twor
Twor / nginx.conf
Created July 23, 2020 14:28
nginx的pathinfo模式
server {
listen 80;
listen [::]:80;
server_name tp.com;
set $base /srv/http;
root $base/thinkphp/public;
# security
include nginxconfig.io/security.conf;
@Twor
Twor / nginx-service.xml
Created July 23, 2020 14:32
Windows ngixn php server https://twor.me/5.html
<service>
<id>nginxsvc</id>
<name>Nginx</name>
<description>Nginx Web Server service.</description>
<executable>c:\nginx\nginx.exe</executable>
<logpath>c:\nginx\logs\</logpath>
<logmode>roll</logmode>
<depend>phpsvc</depend>
<startargument>-p</startargument>
<startargument>c:\nginx</startargument>
@Twor
Twor / fix-google-translate-cn.sh
Created October 19, 2022 16:02 — forked from bookfere/fix-google-translate-cn.sh
Fix Google Translate CN for macOS
#!/bin/bash
# Copyright (c)2022 https://bookfere.com
# This is a batch script for fixing Google Translate and making it available
# in the Chinese mainland. If you experience any problem, visit the page below:
# https://bookfere.com/post/1020.html
SOURCE_DOMAIN=google.cn
TARGET_DOMAIN=translate.googleapis.com
HOSTS_FILE=/etc/hosts