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 |
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
#!/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
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
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
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
\[\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
sudo apt-get install apt-transport-https lsb-release ca-certificates | |
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg | |
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list | |
sudo apt-get update | |
sudo apt-get install -y php7.2-cli php7.2-curl php7.2-dom php7.2-zip php7.2-mbstring php7.2-xml php7.2-gd php7.2-simplexml php7.2-intl php7.2-opcache php7.2-zip | |
sudo wget http://getcomposer.org/composer.phar -O /usr/local/bin/composer | |
sudo chmod a+x /usr/local/bin/composer |
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
ENTRYPOINT ["/bin/sh"] | |
CMD ["-c","while true; do sleep 2; date; done"] | |
# --entrypoint "/bin/bash" imagename:latest -c "while true; do sleep 2; date; done" |
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
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"html/template" | |
"io/ioutil" | |
"log" | |
"os/exec" |
OlderNewer