Skip to content

Instantly share code, notes, and snippets.

View BytesPirate's full-sized avatar
🎯
Focusing

B1t BytesPirate

🎯
Focusing
View GitHub Profile
@BytesPirate
BytesPirate / errorlog-monitor.sh
Last active April 7, 2024 09:01
[Zabbix 脚本文件] Zabbix 脚本文件 #Devops #Zabbix
#!/bin/bash
# set -x
@BytesPirate
BytesPirate / nmap.xsl
Created April 7, 2024 07:34
[NMAP XSL] NMAP 美化模板 #NMAP
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8" indent="yes" doctype-system="about:legacy-compat"/>
<xsl:template match="/">
<html lang="en">
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" />
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap.min.css"/>
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
@BytesPirate
BytesPirate / clean_old_build.sh
Last active April 7, 2024 07:12
[Jenkins 发布脚本] Jenkins 发布脚本 #Jenkins #Devops #Devops #Jenkins
#!/bin/bash -ilex
@BytesPirate
BytesPirate / my.cnf
Last active April 7, 2024 09:19
[Mysql 配置文件] Mysql 配置文件 #Devops #Mysql
# mysql 8.0 配置文件
[mysqld]
# Specifies the server ID
server_id=1
# 只能用IP地址检查客户端的登录
skip_name_resolve=On
# 日志内记录时间使用系统时间(the local system time zone)
log_timestamps=SYSTEM
@BytesPirate
BytesPirate / cors.conf
Last active April 8, 2024 07:29
[Nginx 基本配置] Nginx 基本配置文件 #Nginx #Devops
# Nginx 跨域请求配置文件
# 跨域请求的预检请求
if ($request_method = 'OPTIONS') {
# * 允许所有来源的请求访问资源
add_header Access-Control-Allow-Origin * always;
# 允许跨域请求的方法
add_header Access-Control-Allow-Methods GET,POST,OPTIONS always;
# 允许跨域请求包含的头部信息
add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,X-Auth-Token,auth,authtoken,x-authtoken,Cache-Control,Content-Type,access-control-allow-origin,Authorization,X-Authorization,dept_id,deptid,x-terminal,x-preview-token,x-appid,x-nonce,X-signature,x-terminal,x-timestamp,ignorecanceltoken,x-debug-token,x-token' always;