Skip to content

Instantly share code, notes, and snippets.

View hwdsl2's full-sized avatar

Lin Song hwdsl2

View GitHub Profile
@hwdsl2
hwdsl2 / .MOVED.md
Last active April 18, 2024 01:37
IPsec VPN Server Auto Setup Script for CentOS and RHEL
@hwdsl2
hwdsl2 / .MOVED.md
Last active April 18, 2024 01:37
IPsec VPN Server Auto Setup Script for Ubuntu and Debian
@hwdsl2
hwdsl2 / nginx.conf
Last active July 25, 2023 09:18
Example nginx.conf for Ghost blog with Nginx and ModSecurity - https://blog.ls20.com/install-ghost-0-3-3-with-nginx-and-modsecurity/
user nginx;
worker_processes 2; # Set this equal to the number of CPU cores
events { worker_connections 1024; }
http {
server_names_hash_bucket_size 64;
types_hash_max_size 2048;
server_tokens off;
include mime.types;
default_type application/octet-stream;
sendfile on;
@hwdsl2
hwdsl2 / README.md
Last active March 17, 2023 00:57
My IPTables rules for securing the Asterisk VoIP server
@hwdsl2
hwdsl2 / nginx.conf
Last active November 3, 2022 05:37
Example nginx.conf for Ghost blog with Nginx and Naxsi - https://blog.ls20.com/install-ghost-0-4-with-nginx-and-naxsi-on-ubuntu/
user nginx;
worker_processes 2; # Set this equal to the number of CPU cores
events { worker_connections 1024; }
http {
server_names_hash_bucket_size 64;
types_hash_max_size 2048;
server_tokens off;
include mime.types;
default_type application/octet-stream;
sendfile on;
@hwdsl2
hwdsl2 / nginx.conf
Last active June 10, 2021 23:05
Actual nginx.conf for Lin's Tech Blog (http://blog.ls20.com - click for tutorial). Published with Ghost, Nginx and ModSecurity
user nginx;
# Set this to match the number of CPU cores
worker_processes 2;
events { worker_connections 1024; }
http {
server_names_hash_bucket_size 64;
types_hash_max_size 2048;
server_tokens off;
include mime.types;
default_type application/octet-stream;
@hwdsl2
hwdsl2 / README.md
Last active May 22, 2020 07:50
List of malware collected in my Kippo SSH Honeypot
@hwdsl2
hwdsl2 / README.md
Last active April 21, 2020 21:29
Bash script for generating your detailed Google Voice call history
@hwdsl2
hwdsl2 / ip_update_amazon_ec2.sh
Last active January 26, 2018 19:42
Auto IP Update Script for Amazon EC2 Classic AND VPC instances
#!/bin/bash
#
# Auto IP Update Script for Amazon EC2 Classic AND VPC instances
#
# For detailed instructions, please see:
# https://blog.ls20.com/bash-script-for-automatic-ip-updates-on-amazon-ec2-or-digitalocean/
#
# Copyright (C) 2013 Lin Song
#
# This program is free software: you can redistribute it and/or modify it under
@hwdsl2
hwdsl2 / .MOVED.md
Last active December 28, 2016 07:16
Ghost Blog Auto Setup Script with Nginx and Naxsi