This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \[\s{0,1}([^\s\.]*\.){0,1}Torrent9\.([^\s\]]*)\s{0,1}\]\s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function weightedRandomA(corpus){ | |
| // https://stackoverflow.com/questions/12672765/elegant-way-to-generate-a-random-value-regarding-percentage | |
| var totalWeight=0; | |
| var sortedCorpus=[]; | |
| var n,k; | |
| for (k in corpus){ | |
| totalWeight+=corpus[k]; | |
| sortedCorpus.push({'k':k,'v':corpus[k]}); | |
| } | |
| sortedCorpus.sort(function(a,b){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var gulp = require('gulp'); | |
| var watch = require("gulp-watch"); | |
| var less = require('gulp-less'); | |
| var path = require('path'); | |
| var rename = require('gulp-rename'); | |
| var plumber = require('gulp-plumber'); | |
| var color = require('gulp-color'); | |
| var gutil = require('gulp-util'); | |
| var rootPath = './aa/'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git add . && git commit -m '0.8.1' && git tag -a v0.8.1 -m '0.8.1' && git push origin v0.8.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| #sudo pip install lxml | |
| from collections import defaultdict | |
| from errno import ENOENT | |
| from stat import S_IFDIR, S_IFLNK, S_IFREG | |
| from sys import argv, exit,_getframe | |
| from time import time | |
| from datetime import datetime, timedelta |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 443; | |
| server_name xxx.toto.com; | |
| add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload"; | |
| ssl on; | |
| ssl_certificate /etc/nginx/ssl.key/cacert-toto.com.chained.crt; | |
| ssl_certificate_key /etc/nginx/ssl.key/cacert-toto.com.key; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sipp -sd uac | sed "s/\[service\]/\[field0\]/g" > uac.xml | |
| sipp -sd uac_pcap | sed "s/\[service\]/\[field0\]/g" > uac_pcap.xml | |
| echo "SEQUENTIAL" > uac.csv | |
| echo "6000" >> uac.csv | |
| echo "6001" >> uac.csv | |
| sudo sipp -sf uac_pcap.xml -d 4000 -l 5 192.168.1.226 -inf uac.csv |
NewerOlder