How to download GitHub Release from private repo using command line

To download release file from private repo, you can use Personal access token which can be generated at settings/tokens with Full control of private repositories scope. Then download the asset with curl command (change with appropriate values): curl -vLJO -H ‘Authorization: token my_access_token’ ‘https://api.github.com/repos/:owner/:repo/releases/assets/:id’ or if you’re using an OAuth app, use: curl -u my_client_id:my_client_secret … Read more

Ansible playbook shell output

The debug module could really use some love, but at the moment the best you can do is use this: – hosts: all gather_facts: no tasks: – shell: ps -eo pcpu,user,args | sort -r -k1 | head -n5 register: ps – debug: var=ps.stdout_lines It gives an output like this: ok: [host1] => { “ps.stdout_lines”: [ … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)