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 | |
| # This is to set up what I need in a new LXC container on Crostini. | |
| # Step 1 | |
| # In termina, create the container and jump into it like this: | |
| # lxc launch images:debian/12 mycontainer && lxc exec mycontainer bash | |
| # Step 2 | |
| # Generate a Tailscale auth key at |
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
| // ----------------------------------------------------- | |
| // Globals, contants | |
| // ----------------------------------------------------- | |
| TASKLIST = "DJ's list"; | |
| LABEL_PENDING = "newtask"; | |
| LABEL_DONE = "newtaskdone"; | |
| // ----------------------------------------------------- | |
| // getTasklistId_(tasklistName) | |
| // Returns the id of the tasklist specified |
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 | |
| set -eo pipefail | |
| # Tester options (empty by default), possible values: nolog | |
| declare TESTER_OPTIONS="${TESTER_OPTIONS:-}" | |
| # Tester service is <tester-service-base>/tester | |
| declare TESTER_SERVICE_BASE="${TESTER_SERVICE_BASE:-https://developer-challenge-2024-07.cfapps.eu10.hana.ondemand.com}" | |
| declare TESTER_SERVICE="$TESTER_SERVICE_BASE/tester" |
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
| *&---------------------------------------------------------------------* | |
| *& Report UI5_REPOSITORY_LOAD | |
| *& | |
| *&---------------------------------------------------------------------* | |
| *& | |
| *& This report implements the up- and download of a SAPUI5 application | |
| *& into an UI5 Repository. | |
| *& | |
| *& Furthermore it is possible to delete a UI5 Repository | |
| *& |
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 | |
| set -eo pipefail | |
| # CLIENT_ID and CLIENT_SECRET should be in .env | |
| set -a; test -f .env && source .env; set +a | |
| declare REDIRECT_URI="http://127.0.0.1" | |
| declare SCOPE="${SCOPE:-https://www.googleapis.com/auth/spreadsheets}" | |
| declare OAUTH_BASE_URL="https://accounts.google.com/o/oauth2" |
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
| # syntax=docker/dockerfile:1 | |
| # Definition of 'false': 'does nothing, unsuccessfully' (i.e. emits an error exit code) | |
| FROM alpine as old-way | |
| RUN \ | |
| echo hello && \ | |
| false && \ | |
| echo goodbye |
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 jq | |
| # Run with: | |
| # -R (read raw strings, not JSON texts) | |
| # -s (slurp all inputs into an array) | |
| # i.e. jq -f solution.jq -R -s input.dat | |
| # When initially read in, the input will look like this: | |
| # "1000\n2000\n3000\n\n4000\n\n5000\n6000\n\n7000\n8000\n9000\n\n10000\n" |
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
| # Output fields in a nicely arranged columnar format. | |
| # Takes two optional variables: | |
| # COLS: comma-separated list of column nrs (fields) to output (default: all) | |
| # GAP: gap required between each column (default: 1) | |
| # Take care of the GAP default | |
| BEGIN { | |
| if (GAP == "") GAP=1 | |
| } |
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
| # Insert a new task into the user's default task list | |
| # Based upon the sample urlshortener.py code for the | |
| # Google API Python Client library | |
| # http://code.google.com/p/google-api-python-client/source/browse/samples/urlshortener/urlshortener.py | |
| # Note that the response to the task insert is a 200, rather than a 201 | |
| # If you want to run this, get your own client_id and client_secret using the | |
| # Google API Console https://code.google.com/apis/console/ |
NewerOlder