Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
people:sevcik [2019/02/06 12:51]
admin
people:sevcik [2020/06/08 23:09]
admin [Curl requests format]
Line 4: Line 4:
  
  
-ahoj555ahoj 
-Ui8zFhFF8rXuqXfJ 
  
 <code bash> <code bash>
Line 88: Line 86:
 \\ \\
  
-Heslo do virsh console testing: ​ahoj555ahoj, login root+Heslo do virsh console testing: ​ahoj......, login root
  
  
Line 208: Line 206:
 for x in `virsh list | tr -s ' ' | cut -d' ' -f3`; do virsh domblklist $x; done for x in `virsh list | tr -s ' ' | cut -d' ' -f3`; do virsh domblklist $x; done
  
 +WEBHOSTING PASSWD: Born2runIneptus
 +
 +Formatovanie JSON: 
 +json pretty print (google)
 </​code>​ </​code>​
 +
 +
 +====== Fail2ban ======
 +<​code>​
 +fail2ban-client set sshd unbanip 88.198.64.144
 +supervisorctl restart ...
 +virsh -c qemu:///​system list
 +</​code>​
 +
 +
 +=====Curl requests format=====
 +curl --header "​Content-Type:​ application/​json"​ --request POST --data '{ "​amount":​ "​512",​ "​ico":​ null,"​dic":​ "","​account_no":​ "​666","​bank_no":​ "​4200",​ "​invoice_items":​ []}' --user uziv:​aho...... http://​127.0.0.1:​8000/​api/​out_invoice/​
 +
 +
 +curl -X POST -F '​amount=1024'​ -F '​invoice_items=[]'​ -F '​note=Curl test-form'​ -F '​picture_pro_forma=@/​srv/​fakturace2/​fakturace2/​invoice_pictures/​2019-61667812_5cO24If.pdf'​ --user uziv:​aho...... http://​127.0.0.1:​8000/​api/​incoming_invoices/​
 +
 +GET /​api/​incoming_invoices/?​company_id=4bd3f127-9700-46d4-868a-a467e2e34042
  
 
people/sevcik.txt · Last modified: 2020/06/08 23:10 by admin