Skip to content

Instantly share code, notes, and snippets.

View 3l3n01's full-sized avatar

Enoi Barrera Guzman 3l3n01

View GitHub Profile
@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 / 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 / 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()
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 / 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)