I hereby claim:
- I am arsperger on github.
- I am arsperger (https://keybase.io/arsperger) on keybase.
- I have a public key whose fingerprint is 7134 49D2 08E4 33D4 B2B7 131E 1581 B6D8 AAB4 7E71
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
First I would suggest to use vanilla Debian8 for Homer installation on the host. In this case you can just execute following command:
bash <( curl -s https://cdn.rawgit.com/sipcapture/homer-installer/masterhomer_installer.sh
cat data.csv | awk -F',' '{print " SET \""$1"\" \""$2"\" \n"}' | redis-cli --pipe |
#!/bin/bash | |
iptables -N SIPDDOS | |
iptables -A INPUT -p all -m string --string "sundayddr" --algo bm --to 65535 -m comment --comment "deny sundayddr" -j SIPDDOS | |
iptables -A INPUT -p all -m string --string "sipsak" --algo bm --to 65535 -m comment --comment "deny sipsak" -j SIPDDOS | |
iptables -A INPUT -p all -m string --string "sipvicious" --algo bm --to 65535 -m comment --comment "deny sipvicious" -j SIPDDOS | |
iptables -A INPUT -p all -m string --string "friendly-scanner" --algo bm --to 65535 -m comment --comment "deny friendly-scanner" -j SIPDDOS | |
iptables -A INPUT -p all -m string --string "iWar" --algo bm --to 65535 -m comment --comment "deny iWar" -j SIPDDOS | |
iptables -A INPUT -p all -m string --string "sip-scan" --algo bm --to 65535 -m comment --comment "deny sip-scan" -j SIPDDOS |
# jsonclient.py | |
# A simple JSONRPC client library, created to work with Go servers | |
# Written by Stephen Day | |
# Modified by Bruce Eckel to work with both Python 2 & 3 | |
import json, socket, itertools, time | |
from datetime import datetime | |
class JSONClient(object): | |
def __init__(self, addr, codec=json): |
#!/bin/bash | |
IPT="/sbin/iptables" | |
# Server IP | |
SERVER_IP="$(ip addr show eth0 | grep 'inet ' | cut -f2 | awk '{ print $2}')" | |
# Your DNS servers you use: cat /etc/resolv.conf | |
DNS_SERVER="8.8.4.4 8.8.8.8" | |
# Allow connections to this package servers |
## 1 | |
# make git use SSH instead of HTTPS | |
git config --global url."git@gitlab.com:".insteadof="https://gitlab.com" | |
# or edit .gitconfig | |
[url "git@gitlab.com:"] insteadOf = https://gitlab.com | |
## 2 | |
# in gitlab repo and create access tocken |
As configured in my dotfiles.
start new:
tmux
start new with session name:
In the middle file (future merged file), you can navigate between conflicts with ]c
and [c
.
Choose which version you want to keep with :diffget //2
or :diffget //3
(the //2
and //3
are unique identifiers for the target/master copy and the merge/branch copy file names).
:diffupdate (to remove leftover spacing issues)
:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)