1) Filter Table
Filter is default table for iptables. So, if you don’t define you own table, you’ll be using filter table. Iptables’s filter table has the following built-in chains.
#!/usr/bin/env bash | |
# This script prints out all of your Redis keys and their size in a human readable format | |
# Copyright 2013 Brent O'Connor | |
# License: http://www.apache.org/licenses/LICENSE-2.0 | |
human_size() { | |
awk -v sum="$1" ' BEGIN {hum[1024^3]="Gb"; hum[1024^2]="Mb"; hum[1024]="Kb"; for (x=1024^3; x>=1024; x/=1024) { if (sum>=x) { printf "%.2f %s\n",sum/x,hum[x]; break; } } if (sum<1024) print "1kb"; } ' | |
} |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
##################### ElasticSearch Configuration Example ##################### | |
# This file contains an overview of various configuration settings, | |
# targeted at operations staff. Application developers should | |
# consult the guide at <http://elasticsearch.org/guide>. | |
# | |
# The installation procedure is covered at | |
# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html>. | |
# | |
# ElasticSearch comes with reasonable defaults for most settings, |
/* | |
Author: Gary Clayburg | |
This file allows IntelliJ IDEA to perform basic syntax checking and code completion for | |
Jenkins workflow groovy scripts. https://github.com/jenkinsci/workflow-plugin | |
These methods are supported | |
sh | |
readFile | |
node | |
echo |
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
import sys | |
import logging | |
import datetime | |
import requests | |
import BeautifulSoup | |
from requests.adapters import HTTPAdapter |
# mirrors in China | |
## rubygems mirror(ruby.taobao.org) | |
use ruby.taobao.org as mirror on local machine(https://ruby-china.org/topics/15534) | |
`bundle config mirror.https://rubygems.org http://ruby.taobao.org` | |
`less ~/.bundle/config` | |
## npm mirror(npm.taobao.org) | |
https://cnodejs.org/topic/4f9904f9407edba21468f31e | |
http://riny.net/2014/cnpm/ |
1) Filter Table
Filter is default table for iptables. So, if you don’t define you own table, you’ll be using filter table. Iptables’s filter table has the following built-in chains.
#!groovy | |
# Best of Jenkinsfile | |
# `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins | |
node { | |
} |
# From https://coderwall.com/p/-wbo5q/pip-install-a-specific-github-repo-tag-or-branch | |
pip install -e git://github.com/{ username }/{ reponame }.git@{ tag name }#egg={ desired egg name } |