Skip to content

Instantly share code, notes, and snippets.

View hilliao's full-sized avatar

Hil Liao hilliao

View GitHub Profile
@hilliao
hilliao / create-logging-buckets.sh
Created October 10, 2023 14:20
Create a new logging bucket and set the retention to 7 days
# Make sure your `gcloud config list` shows the desirable project ID
# Create a new logging bucket close to the user's region
gcloud logging buckets create doit-ticket-151728-a --location=europe-west9
# Verify it's created
gcloud logging buckets list
# update the retention days to 7
gcloud logging buckets update doit-ticket-151728-a --location=europe-west9 --retention-days=7
hil@hil-gateway:~$ sudo apt-get install make gcc linux-headers-$(uname -r) build-essential git
[sudo] password for hil:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linux-headers-5.15.0-52-generic is already the newest version (5.15.0-52.58).
linux-headers-5.15.0-52-generic set to manually installed.
The following packages were automatically installed and are no longer required:
chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi i965-va-driver
intel-media-va-driver libaacs0 libaom3 libass9 libavcodec58 libavformat58