# clone
cd ~/Downloads
git clone https://gist.github.com/d76520b1bfa66713a5e27ead5e2c4e93.git archive
# create local bin directory
mkdir -p ~/.local/bin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # code: language=ansible | |
| --- | |
| - hosts: localhost | |
| connection: local | |
| gather_facts: true | |
| any_errors_fatal: true | |
| vars: | |
| base_dir: "{{ home_dir }}/git/nerd-fonts" | |
| repo_url: https://github.com/ryanoasis/nerd-fonts.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3.11 | |
| import sys | |
| """ | |
| Convert Imperial Credits to US Dollars and vice versa. | |
| Based on the exchange rate of 4.50 Imperial Credits to 1 US Dollar. | |
| cf: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # shellcheck disable=SC2046,SC2086,SC2164 | |
| cat << 'DESCRIPTION' >/dev/null | |
| compile_python.sh compiles and installs a specific version of Python from source. | |
| USAGE | |
| ./compile_python.sh "<version>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # SOURCE: https://github.com/pythoninthegrass/m3u_prsr | |
| import sys | |
| class track(): | |
| def __init__(self, length, title, path): | |
| self.length = length |
- Navigate to mistaken git commit of
.envfile here - Log into docker instance of admin dashboard (e.g., http://challenge.ctf.games:30715/dashboard)
- Enter creds
- Find the flag and output contents instead of resetting the server
find / -maxdepth 10 -iname "flag.txt" -exec cat {} \; 2>/dev/null
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import argparse | |
| import base64 | |
| import datetime | |
| import requests | |
| from colorama import Fore | |
| """ | |
| SOURCE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # shellcheck disable=SC2143,SC2317 | |
| # TODO: debug ctrl-d | |
| # trap ctrl-c, ctrl-d, and ctrl-z | |
| trap_card() { | |
| echo -e "\nGoodbye!"; exit 0 | |
| } | |
| trap trap_card SIGINT SIGQUIT SIGTSTP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import json | |
| from decouple import config | |
| from gql import gql, Client | |
| from gql.transport.requests import RequestsHTTPTransport | |
| from gql.transport.exceptions import TransportServerError, TransportQueryError | |
| api_key = config('OMNIVORE_API_KEY') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # shellcheck disable=all | |
| # pass a password to this script and it will return the hash | |
| if [ -z "$1" ]; then | |
| echo "Usage: $0 <password> <salt>" | |
| exit 1 | |
| fi |