Advertisement
widhisec

[Bash] github-info

Apr 13th, 2019
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.92 KB | None | 0 0
  1. #!/bin/bash
  2. # JANGAN RECOD GAN GW CAPEK BUAT NYA HARGAI PEMBUATNYA !
  3. MERAH="\e[91m"
  4. BL='\033[94m' # blue
  5. BANNER() {
  6. curl -s http://rec.widhitools.ga/api/pesan 2>/dev/null
  7. }
  8.  
  9. function Dat() {
  10. read -p "Masukkan Username => " url;
  11. if [[ $url == "Not Found" ]];
  12. then
  13. printf "tidak ketemu\n"
  14. else
  15. url="curl -s https://api.github.com/users/$url"
  16. log=$($url | grep 'login')
  17. Id=$($url | jq -r .id)
  18. node_id=$($url | jq -r .node_id)
  19. avat=$($url | jq -r .avatar_url)
  20. grav=$($url | jq -r .gravatar_id)
  21. gists_url=$($url | jq -r .gists_url)
  22. starred_url=$($url | jq -r .starred_url)
  23. repos_url=$($url | jq -r .repos_url)
  24. type=$($url | jq -r .type)
  25. site_admin=$($url | jq -r .site_admin)
  26. company=$($url | jq -r .company)
  27. blog=$($url | jq -r .blog)
  28. location=$($url | jq -r .location)
  29. email=$($url | jq -r .email)
  30. bio=$($url | jq -r .bio)
  31. followers=$($url | jq -r .followers)
  32. following=$($url | jq -r .following)
  33. starred_url=$($url | jq -r .starred_url)
  34. organizations_url=$($url | jq .organizations_url)
  35. clear;
  36. printf "$MERAH"
  37. cat << 'BANNER'
  38.    ____ _ _   _           _
  39.   / ___(_) |_| |__  _   _| |__
  40.  | |  _| | __| '_ \| | | | '_ \
  41.  | |_| | | |_| | | | |_| | |_) |
  42.   \____|_|\__|_| |_|\__,_|_.__/
  43.         CREATE BY WIDHI
  44.         VERSION BASH
  45. BANNER
  46. printf "$BL"
  47. printf "LOGIN USER => $log \n"
  48. printf "ID USERS => $Id \n"
  49. printf "NODE ID => $node_id \n"
  50. printf "AVATAR LINK => $avat \n"
  51. printf "GRAVATAR ID => $gravatar_id \n"
  52. printf "GITSTS_URL => $gists_url \n"
  53. printf "STARRED => $starred_url \n"
  54. printf "REPO => $repos_url \n"
  55. printf "TIPE => $type \n"
  56. printf "Site Admin => $site_admin \n"
  57. printf "COMPANY => $company \n"
  58. printf "BLOG => $blog \n"
  59. printf "LOkASI => $location \n"
  60. printf "EMAIL NYA => $email \n"
  61. printf "BIO NYA => $bio \n"
  62. printf "FOLLOWERS => $followers \n"
  63. printf "FOLLOWING => $following \n"
  64. printf "STARRED => $starred_url \n"
  65. printf "ORANIZATIONS => $organizations_url \n"
  66. fi
  67. }
  68. BANNER
  69. Dat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement