Skip to content

Instantly share code, notes, and snippets.

View peterfortuin's full-sized avatar

Peter Fortuin peterfortuin

  • Eindhoven, the Netherlands
  • X @p33rke
View GitHub Profile
@palewire
palewire / README.md
Last active May 19, 2024 23:31
How to push tagged Docker releases to Google Artifact Registry with a GitHub Action

How to push tagged Docker releases to Google Artifact Registry with a GitHub Action

Here's how I configured a GitHub Action so that a new version issued by GitHub's release interface will build a Dockerfile, tag it with the version number and upload it to Google Artifact Registry.

Before you attempt the steps below, you need the following:

  • A GitHub repository that contains a working Dockerfile
  • The Google Cloud SDK tool gcloud installed and authenticated

Create a Workload Identity Federation

@mick88
mick88 / url.sh
Created August 15, 2016 10:11
Open url in Android throughy adb
#!/bin/bash
adb shell am start -a android.intent.action.VIEW -d https://www.google.com/
#!/bin/sh
# btsync service
# Replace with linux users you want to run BTSync clients for
BTSYNC_USERS="mendel"
DAEMON=/usr/bin/btsync
start() {
for btsuser in $BTSYNC_USERS; do
HOMEDIR=`getent passwd $btsuser | cut -d: -f6`
config=$HOMEDIR/.sync/config.json