Skip to content

Instantly share code, notes, and snippets.

Avatar
🤖
Building robots

Jordan Miller dracco1993

🤖
Building robots
View GitHub Profile
View TriviaCrack Notes
URLs:
Answers: (called after a correct answer)
https://api.preguntados.com/api/users/XXXX/games/XXXX/answers
Games: (called after end of game, and possibly on initial load?)
https://api.preguntados.com/api/users/XXXX/games
https://api.preguntados.com/api/users/XXXX/games/XXXX
Answer JSON key:
spins_data.spins["0"].questions["0"].question.correct_answer
@dracco1993
dracco1993 / clone_all_repos.sh
Last active Apr 15, 2019
Close all repos using a personal access token
View clone_all_repos.sh
#!/bin/bash
ORG=organization;
ACCESS_KEY=0000000000000000000000000000;
for i in $(curl "https://api.github.com/orgs/$ORG/repos?access_token=$ACCESS_KEY&per_page=1000" | sed '/[ ]*"clone_url":/!d;s/[^:]*: "//;s/",$//'); do
echo git clone $i
done
You can’t perform that action at this time.