exit when curl fails

I wanted curl to fail when it thorugh a request error above 400. but it was’nt. $? was not giving me a error code above 0. so the only way I can tell if a error was thrown is if I combed the string for a particular pattern. but then[…]

Read More »

Another way to write condition

https://stackoverflow.com/questions/11038590/a-way-to-do-multiple-statements-per-bash-test-statement Not recommended. ran into issue in terms of status being set to a value above 0

Read More »

Publishing a npm package

Not Found – PUT https://gitlab.selectiont.com/api/v4/packages/npm/@werm-bash%2fscripts-root – 404 Not Found create a package.json and this code this line references a gitlab project we access tokens so we don’t have to login to publish. we can create tokens at the project level or the instance level. Lets create one at the project[…]

Read More »

Give apache sudo rights

navigate to a php page and execute depending on what distro you have you might get “www-data” or “apache”, in my case I got “apache” go over to your terminal right above the line “root ALL-=(ALL) ALL” type in also comment out this line in same file save file and[…]

Read More »

Create IAM user to post to s3

now that you’ve created a policy lets keep going with creating a user in order for you to upload to bucket you must add permissions, the boundary only sets limitations but doesn’t actually set permissions

Read More »