#!/bin/bash
. ./env.txt
user="catab"
key="925cb5896280c6f132263336a5e90819"
curl --silent --header "Authorization: ${user} ${key}" \
--data "{\"cmd\": \"user_info\", \"user\": \"${user}\"}" \
-o api.out \
http://rg.embedromix.ro:9002/op/api
json_verify < api.out > /dev/null
if [ "${?}" != "0" ]; then
echo "JSON seems to not be ok!"
exit 1
fi
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"
Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/rocketgit
Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/rocketgit
You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a
pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master