These are the secret codes our adepts should learn, so they and talk to The Raspberry. The codes includes navigation, files, networking, services, storage, packages, and logs. E titkos kódokat kell tanoncainknak elsajátítaniuk, hogy szólhassanak A Málnához. A kódok tartalmazzák a navigációt, aktákat, hálózatokat, szolgáltatásokat, csomagokat és a naplót.
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
| ## Based on https://www.freecodecamp.org/news/run-python-gui-in-github-codespaces/ | |
| #!/usr/bin/env bash | |
| set -e | |
| SCRIPT_NAME="pygame-codespaces" | |
| VNC_PORT=5900 | |
| NOVNC_PORT=6080 | |
| DISPLAY_NUM=1 | |
| LOG_DIR="/tmp/${SCRIPT_NAME}-logs" |
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
| // this is the Golang version of | |
| // Davide Della Casa's de-obfuscated version https://github.com/davidedc/Ascii-fluid-simulation-deobfuscated | |
| // original obfuscated version by Yusuke Endoh | |
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "io" |
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
| pico-8 cartridge // http://www.pico-8.com | |
| version 41 | |
| __lua__ | |
| -- finite state machine for about 240 tokens | |
| function state_machine(params) | |
| local machine = { | |
| state = params.initial or "none", | |
| events = {}, | |
| -- helper to safely call a handler function if it exists |
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 argh | |
| from PIL import Image | |
| import argh | |
| def convert(source_filename: str, destination_filename: str = "output.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
| [alias] | |
| # git jm "commit message" | |
| # will add the Jira ticket ID (e.g.: PROJ-123) to your commit message | |
| jm = "!f() { [[ $(git branch --show-current) =~ [A-Z]{2,}-[0-9]+ ]]; git commit -m \"${BASH_REMATCH[0]} ${1}\"; }; f" |
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
| # Based on https://stackoverflow.com/a/31392574/14711510 | |
| from pathlib import Path | |
| import email | |
| import email.utils as email_utils | |
| import json | |
| class EmailInfo: | |
| def __init__(self, email_file: str) -> None: | |
| email_file_path = Path(email_file) |
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 | |
| RADIO_PATH="${HOME}/pyradio" | |
| PLAYLIST=${RADIO_PATH}/playlist | |
| mkdir -p ${RADIO_PATH} | |
| curl -s https://gist.githubusercontent.com/DonBattery/78e21751ee5540984d6baca4a36eef2b/raw/playlist > ${PLAYLIST} | |
| while true |
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
| http://stream.klubradio.hu:8080/bpstream | |
| https://stream.klubradio.hu:8443/bpstream |
NewerOlder