Skip to content

Instantly share code, notes, and snippets.

View maxthinkthink-tech's full-sized avatar
🎯
Focusing

maxthinkthink maxthinkthink-tech

🎯
Focusing
  • 蚂蚁金服
  • 杭州
View GitHub Profile
@maxthinkthink-tech
maxthinkthink-tech / iptables_rules.sh
Created December 5, 2016 02:09 — forked from virtualstaticvoid/iptables_rules.sh
25 Most Frequently Used Linux IPTables Rules Examples
# Modify this file accordingly for your specific requirement.
# http://www.thegeekstuff.com
# 1. Delete all existing rules
iptables -F
# 2. Set default chain policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
@maxthinkthink-tech
maxthinkthink-tech / threadpool.cpp
Created May 23, 2016 10:22 — forked from jl2/threadpool.cpp
Simple thread pool in C++.
#include <stdio.h>
#include <queue>
#include <unistd.h>
#include <pthread.h>
#include <stdlib.h>
// Base task for Tasks