This file contains 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
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# User specific environment | |
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]] | |
then |
This file contains 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
$script = <<SCRIPT | |
# Refresh the packages and install the necessary ones | |
dnf config-manager --set-enabled crb | |
dnf install -y epel-release && dnf update --refresh -y | |
dnf install -y dkms kernel-devel kernel-headers gcc make bzip2 perl elfutils-libelf-devel vim-enhanced git clang jq telnet | |
dnf groupinstall -y 'Development Tools' | |
# Install a modern version of the go programming language | |
curl -LO https://go.dev/dl/go1.21.9.linux-amd64.tar.gz && tar -C /usr/local -xzf go1.21.9.linux-amd64.tar.gz |
This file contains 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
#!/bin/bash | |
# Define the containers you want to mirror from Docker Hub to ECR | |
containers=(\ | |
"confluentinc/cp-zookeeper:6.1.11"\ | |
"confluentinc/cp-kafka:6.1.11"\ | |
"minio/mc:RELEASE.2023-04-12T02-21-51Z" \ | |
"hashicorp/vault:1.13" \ | |
"postgres:11-alpine" \ | |
"alpine:3.16" \ |
This file contains 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
#!/bin/bash | |
GH_USER=${1-$USER} | |
REPOS=`curl -s https://api.github.com/users/$GH_USER/starred |grep full_name | cut -f 4 -d\" |xargs` | |
for REPO in $REPOS; do | |
VERSION=`curl -s https://api.github.com/repos/$REPO/releases |grep tag_name |grep -v rc | head -1 |cut -f4 -d\"` | |
echo "$REPO : $VERSION" | |
done |
This file contains 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
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event.request)) | |
}) | |
var wordlist = ["acrobat", "africa", "alaska", "albert", "albino", "album", | |
"alcohol", "alex", "alpha", "amadeus", "amanda", "amazon", | |
"america", "analog", "animal", "antenna", "antonio", "apollo", | |
"april", "aroma", "artist", "aspirin", "athlete", "atlas", | |
"banana", "bandit", "banjo", "bikini", "bingo", "bonus", | |
"camera", "canada", "carbon", "casino", "catalog", "cinema", |
This file contains 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
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: nuc-light-control | |
spec: | |
selector: | |
matchLabels: | |
name: nuc-light-control | |
template: | |
metadata: |
This file contains 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
from debian:stretch-slim as builder | |
RUN apt-get -y update | |
RUN apt-get -y install build-essential linux-headers-$(uname -r) | |
RUN apt-get -y install debhelper dkms kmod unzip | |
RUN curl -LO https://github.com/milesp20/intel_nuc_led/archive/master.zip && unzip master.zip | |
RUN cd intel_nuc_led-master && make clean && make dkms-install | |
from alpine as base | |
RUN apk update --no-cache && apk add kmod --no-cache |
This file contains 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
#!/bin/bash | |
echo "Bash version ${BASH_VERSION}..." | |
FIRECRACKER_BIN=/usr/bin/firecracker | |
JAILER_BIN=/usr/bin/jailer | |
echo -n "Jailer version " | |
$JAILER_BIN -V | |
echo -n "Firecracker version " |
This file contains 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 | |
import sys | |
if __name__ == "__main__": | |
program_name = sys.argv[0] | |
arguments = sys.argv[1:] | |
count = len(arguments) |
This file contains 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/bash | |
set -e | |
PROJECT_SUFFIX=$(cat /dev/random | LC_CTYPE=C tr -dc "a-z0-9" | head -c 5) | |
PROJECT_NAME=temp-project-$PROJECT_SUFFIX | |
PROJECT_BUCKET=data_export_bucket-$PROJECT_SUFFIX | |
# Update gcloud |
NewerOlder