- Documentação -> https://github.com/mperham/sidekiq/wiki/API
ps -ef | grep sidekiq | grep busy | grep -v grep | awk '{print $2}' > tmp/sidekiq.pid
cat tmp/sidekiq.pid
bundle exec sidekiqctl stop tmp/sidekiq.pidps -ef | grep sidekiq | grep busy | grep -v grep | awk '{print $2}' > tmp/sidekiq.pid
cat tmp/sidekiq.pid
bundle exec sidekiqctl stop tmp/sidekiq.pid| [ | |
| { | |
| "data": "05/08/2020", | |
| "mes": null, | |
| "ano": null, | |
| "inicio": "06/08/2020", | |
| "fim": "" | |
| }, | |
| { | |
| "data": "17/06/2020", |
| #!/usr/bin/env bash | |
| # Use this script to test if a given TCP host/port are available | |
| WAITFORIT_cmdname=${0##*/} | |
| echoerr() { if [[ $WAITFORIT_QUIET -ne 1 ]]; then echo "$@" 1>&2; fi } | |
| usage() | |
| { | |
| cat << USAGE >&2 |
I hereby claim:
To claim this, I am signing this object:
| # Create Swap | |
| sudo fallocate -l 2G /swapfile | |
| sudo chmod 600 /swapfile | |
| sudo mkswap /swapfile | |
| sudo swapon /swapfile | |
| # Make Swap permanent | |
| sudo cp /etc/fstab /etc/fstab.bak | |
| echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab |
| CREATE DATABASE mydatabase CHARACTER SET utf8 COLLATE utf8_general_ci; | |
| CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password'; | |
| #CREATE USER 'newuser'@'%' IDENTIFIED BY 'password'; | |
| GRANT ALL PRIVILEGES ON mydatabase . * TO 'newuser'@'localhost'; | |
| FLUSH PRIVILEGES; |
| # +10 = ten days | |
| find /var/log/* -mtime +10 -exec rm {} \; |
| const baseUrl = 'https://www.instagram.com/graphql/' | |
| let followers = [] | |
| function toQs(obj) { | |
| return Object.keys(obj).reduce(function(a,k){a.push(k+'='+encodeURIComponent(obj[k]));return a},[]).join('&') | |
| } | |
| function request (url, options) { | |
| options = options || {} | |
| options = { |