Skip to content

Instantly share code, notes, and snippets.

@halidaltuner
halidaltuner / get_latest_tag.sh
Created October 29, 2019 10:14
get git repository latest tag
git clone REPO_URL
cd REPO_DIR
git fetch --all --tags --prune
latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
git checkout $latestTag
root@manager:~/pcaps# time ndpiReader -i wrccdc2012.pcap
-----------------------------------------------------------
* NOTE: This is demo app to show *some* nDPI features.
* In this demo we have implemented only some basic features
* just to show you what you can do with the library. Feel
* free to extend it and send us the patches for inclusion
------------------------------------------------------------
Using nDPI (2.9.0-1539-53119e7) [1 thread(s)]
@halidaltuner
halidaltuner / goland64.vmoptions
Last active August 27, 2019 11:35
Performance tuning for Goland or other Jetbrains IDEs.
-server
-Xms2g
-Xmx2g
-Xss16m
-XX:NewSize=512m
-XX:MaxNewSize=512m
-XX:ParallelGCThreads=4
-XX:MaxTenuringThreshold=1
-XX:SurvivorRatio=8
-XX:+UseCodeCacheFlushing
@halidaltuner
halidaltuner / btc.py
Created July 21, 2017 08:50
btc_checker
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib2
import json
from bs4 import BeautifulSoup
import random
from termcolor import colored
import time
import requests
Verifying that +halidaltuner is my blockchain ID. https://onename.com/halidaltuner
@halidaltuner
halidaltuner / openvswitch-agent.log
Created September 15, 2015 10:05
openvswitch-agent.log
2015-02-19 18:03:40.453 6986 ERROR neutron.agent.linux.ovsdb_monitor [-] Error received from ovsdb monitor: ovsdb-client: unix:/var/run/openvswitch/db.sock: receive failed (End of file)
2015-02-19 18:03:40.538 6986 ERROR neutron.agent.linux.utils [-]
Command: ['ps', '--ppid', '7114', '-o', 'pid=']
Exit code: 1
Stdout: ''
Stderr: ''
2015-02-19 18:03:41.247 6986 CRITICAL neutron [req-41560fa8-8cda-4860-9d6f-e016963ec90e None] AssertionError: Trying to re-send() an already-triggered event.
2015-02-19 18:03:41.247 6986 TRACE neutron Traceback (most recent call last):
2015-02-19 18:03:41.247 6986 TRACE neutron File "/usr/bin/neutron-openvswitch-agent", line 10, in <module>
2015-02-19 18:03:41.247 6986 TRACE neutron sys.exit(main())
@halidaltuner
halidaltuner / default
Last active August 29, 2015 14:17 — forked from technopagan/default
# We only have one backend to define: NGINX
backend default {
.host = "127.0.0.1";
.port = "8080";
}
# Only allow purging from specific IPs
acl purge {
"localhost";
"127.0.0.1";
@halidaltuner
halidaltuner / gist:8fe138babedcb280c784
Last active August 29, 2017 08:35
glassfish + nginx + ssl
upstream glassfish_server {
server 127.0.0.1:8080 fail_timeout=0;
}
server {
listen 80;
server_name berat.com;
return 301 https://$server_name$request_uri;
}
server {
@halidaltuner
halidaltuner / gist:1af001b6ad9d4c95b395
Created February 3, 2015 08:10
iptables example ruleset
#!/bin/bash
## Iptables example ruleset
## James Stephens ([email protected])
## http://www.sns.ias.edu/~jns/
## ============================================================
#
# Load appropriate modules.
modprobe ip_tables
# for golang
# mkdir $HOME/go
# mkdir -p $GOPATH/src/github.com/user
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin