Here’s a comprehensive list of GitHub functionality, including many of the "hidden gems" that provide extra features
-
Repositories
Standard Git repositories hosted on GitHub.
| # Variables | |
| OWNER="owner" | |
| REPO="repo" | |
| # List all deployments | |
| DEPLOYMENTS=$(curl -s -H "Authorization: token $GITHUB_TOKEN" \ | |
| -H "Accept: application/vnd.github+json" \ | |
| https://api.github.com/repos/$OWNER/$REPO/deployments | jq -r '.[].id') | |
| # Check if any deployments were found |
| # Check disk names | |
| lsblk -o NAME,MODEL,SIZE,TYPE,MOUNTPOINT | |
| # Install required packages. nfs-common will be necessary on ALL clients | |
| sudo apt update | |
| sudo apt install -y mdadm nfs-kernel-server nfs-common | |
| # Create the RAID 1 array from /dev/sda and /dev/sdb | |
| sudo mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sda /dev/sdb <<EOF | |
| yes |
| # From shit-box | |
| # Need to modify the host doing the flashing | |
| sudo vi /etc/default/nfs-kernel-server | |
| RPCMOUNTDOPTS="--manage-gids --no-nfs-version 4" | |
| sudo reboot | |
| sudo apt install -y qemu-user-static make git-core build-essential bc flex bison ncurses-dev libssl-dev gcc-aarch64-linux-gnu | |
| export JETSON_VERSION=36.3 |
| package main | |
| import ( | |
| "net/http" | |
| "os" | |
| "os/signal" | |
| "syscall" | |
| "github.com/orbservability/io/pkg/server" | |
| pb "github.com/orbservability/schemas/v1" |
| #!/bin/bash | |
| # Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. | |
| # | |
| # Redistribution and use in source and binary forms, with or without | |
| # modification, are permitted provided that the following conditions | |
| # are met: | |
| # * Redistributions of source code must retain the above copyright | |
| # notice, this list of conditions and the following disclaimer. | |
| # * Redistributions in binary form must reproduce the above copyright |
| # Update appropriately to find your languages long term support release, or latest. | |
| FROM node:20 | |
| # Embrace linux standards. | |
| WORKDIR /usr/src/app | |
| # Embrace layers. Update to appropriate language/framework file(s). | |
| ADD package*.json ./ | |
| # Grab the rest of the local files. |
| REQUIRED_CONFIGS=( | |
| CONFIG_BPF | |
| CONFIG_BPF_SYSCALL | |
| CONFIG_NET_CLS_BPF | |
| CONFIG_BPF_JIT | |
| CONFIG_NET_CLS_ACT | |
| CONFIG_NET_SCH_INGRESS | |
| CONFIG_CRYPTO_SHA1 | |
| CONFIG_CRYPTO_USER_API_HASH | |
| CONFIG_CGROUPS |
| on: | |
| push: | |
| branches: | |
| - master | |
| name: Git Tag | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| jobs: | |
| check_version: | |
| name: Check Version |