Skip to content

Instantly share code, notes, and snippets.

@3l3n01
3l3n01 / http-benchmark.md
Created September 29, 2020 07:28 — forked from denji/http-benchmark.md
HTTP(S) Benchmark Tools / Toolkit for testing/debugging HTTP(S) and restAPI (RESTful)
from datetime import datetime, date
formato_fecha = "%Y-%m-%d %H:%M:%S"
fecha = datetime.today()
fecha_actual= fecha.strftime(formato_fecha)
fecha_inicial = datetime.strptime("2017-10-10 03:12:50",formato_fecha)
fecha_final = datetime.strptime(fecha_actual, formato_fecha)
diferencia = fecha_final - fecha_inicial
@3l3n01
3l3n01 / doPut.go
Created October 9, 2018 20:43 — forked from slav123/doPut.go
PUT request GO LANG
func doPut(url string) {
client := &http.Client{}
request, err := http.NewRequest("PUT", url, strings.NewReader("<golang>really</golang>"))
request.SetBasicAuth("admin", "admin")
request.ContentLength = 23
response, err := client.Do(request)
if err != nil {
log.Fatal(err)
} else {
defer response.Body.Close()
@3l3n01
3l3n01 / progress.py
Created May 12, 2018 19:56 — forked from vladignatyev/progress.py
Python command line progress bar in less than 10 lines of code.
# The MIT License (MIT)
# Copyright (c) 2016 Vladimir Ignatev
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the Software
# is furnished to do so, subject to the following conditions:
#
@3l3n01
3l3n01 / postman_installation.sh
Created May 7, 2018 02:12
Postman installation for Ubuntu 17.10
#Installing libgconf2-4 library in case it is not installed
sudo apt install libgconf2-4
#Getting latest postman for 64bit operation system
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
#Extraction the file in /opt folder
sudo tar -xzf postman.tar.gz -C /opt
#Creating symlink
@3l3n01
3l3n01 / pm_install.sh
Created April 23, 2018 07:20 — forked from punkdata/pm_install.sh
Postman Install Ubuntu 17.10
#!/usr/bash
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
sudo tar -xzf postman.tar.gz -C /opt
sudo ln -s /opt/Postman/Postman /usr/bin/postman
#Create a Desktop Entry
cat > ~/.local/share/applications/postman.desktop <<EOL
[Desktop Entry]
Encoding=UTF-8
Name=Postman
<source>
type tail
path /var/log/containers/*.log
pos_file /var/log/containers.log.pos
time_format %Y-%m-%dT%H:%M:%S.%NZ
tag kubernetes.*
format json
read_from_head true
</source>
@3l3n01
3l3n01 / gox.text
Created May 31, 2017 05:34 — forked from achun/gox.text
go get golang.org/x
go get -u golang.org/x/crypto/bcrypt
go get -u golang.org/x/crypto/blowfish
go get -u golang.org/x/crypto/bn256
go get -u golang.org/x/crypto/cast5
go get -u golang.org/x/crypto/curve25519
go get -u golang.org/x/crypto/hkdf
go get -u golang.org/x/crypto/md4
go get -u golang.org/x/crypto/nacl/box
go get -u golang.org/x/crypto/nacl/secretbox
go get -u golang.org/x/crypto/ocsp
@3l3n01
3l3n01 / sonar.conf
Created May 24, 2017 05:03 — forked from cescoffier/sonar.conf
nginx server proxy for Sonar
server {
server_name sonar.dynamis-technologies.com;
location / {
proxy_pass http://localhost:12356;
proxy_set_header Host $host;
proxy_buffering off;
}
}
@3l3n01
3l3n01 / angularjs-providers-explained.md
Created January 25, 2017 19:08 — forked from demisx/angularjs-providers-explained.md
AngularJS Providers: Constant/Value/Service/Factory/Decorator/Provider
Provider Singleton Instantiable Configurable
Constant Yes No No
Value Yes No No
Service Yes No No
Factory Yes Yes No
Decorator Yes No? No
Provider Yes Yes Yes

Constant