Skip to content

Instantly share code, notes, and snippets.

View JeromeLi's full-sized avatar

Jerome JeromeLi

  • Earth
  • 18:51 (UTC +08:00)
View GitHub Profile
@gryan11
gryan11 / gs65stealth_linux_setup.md
Last active February 9, 2025 06:05
Notes on setting up MSI GS65 Stealth as dual boot Linux Laptop

Linux Setup on MSI GS65 Laptop

Preliminary Setup

Make the following usb sticks and drives on windows:

  1. Ubuntu install usb stick
  2. System recovery usb stick
  3. System backup image on usb hard drive

windows setup

@JeromeLi
JeromeLi / ip_blacklist.lua
Created December 5, 2017 06:29 — forked from chrisboulton/ip_blacklist.lua
Redis based IP blacklist for Nginx (LUA)
-- 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 ip_blacklist 10.1.1.1
-- remove an ip: