All processes in ZSH/Bash under job control are in 3 states: foregrounded, backgrounded and suspended.
# run command in the foreground
command
# run commend in the background
$.ajax({ | |
url: "https://api.yoursite.com", | |
type: 'GET', | |
data: data, | |
}).done(function(res){ | |
var a = document.createElement('a'); | |
a.href = 'data:application/pdf;base64,' + res; | |
a.download = 'documents.pdf'; | |
document.body.append(a); | |
a.click(); |
#!/usr/bin/env python | |
import argparse | |
import redis | |
def connect_redis(conn_dict): | |
conn = redis.StrictRedis(host=conn_dict['host'], | |
port=conn_dict['port'], | |
db=conn_dict['db'], | |
password=conn_dict['passw']) |