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
from browsermobproxy import Server | |
import psutil | |
import time | |
import json | |
for proc in psutil.process_iter(): | |
# check whether the process name matches | |
if proc.name() == "browsermob-proxy": | |
proc.kill() |
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
#/bin/sh | |
image=$(find -name "*.jpg") | |
export image | |
varCurl=$(curl -b --include "https://api.pixhost.to/images" \ | |
-H 'Content-Type: multipart/form-data; charset=utf-8' \ | |
-H 'Accept: application/json' \ | |
-F "img=@$image" \ | |
-F 'content_type=1' \ |