Skip to content

Instantly share code, notes, and snippets.

View eddievlagea's full-sized avatar

Eddie Vlagea eddievlagea

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<link href='https://fonts.googleapis.com/css?family=Manrope' rel='stylesheet'>
<link rel="shortcut icon" type="image/png"
href="https://yt3.ggpht.com/ej3kSN0C9GiHS5wa2zNQ3Pd59UcnpFeYjnGGBJEub1Nagwl6vpoe21oIJKWjBjzqvHDYtUONCw=s68-c-k-c0x00ffffff-no-rj" />
{%- auth0:head -%}
<style>
@eddievlagea
eddievlagea / README.md
Created June 8, 2022 18:40 — forked from palewire/README.md
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

@eddievlagea
eddievlagea / unblur_quora.user.js
Created August 7, 2012 19:56 — forked from swanson/unblur_quora.user.js
Chrome user script to unblur Quora answers without signing up
// ==UserScript==
// @match http://*.quora.com/*
// ==/UserScript==
// a function that loads jQuery and calls a callback function when jQuery has finished loading
function addJQuery(callback) {
var script = document.createElement("script");
script.setAttribute("src", "//code.jquery.com/jquery-latest.min.js");
script.addEventListener('load', function() {
var script = document.createElement("script");
@eddievlagea
eddievlagea / sc-dl.js
Created March 5, 2012 21:34 — forked from pheuter/sc-dl.js
Bookmarklet that generates download link for a Soundcloud upload
(function(d) {
var dl = d.createElement('a');
dl.innerText = 'Download MP3';
dl.href = "http://media.soundcloud.com/stream/"+d.querySelector('#main-content-inner img[class=waveform]').src.match(/\.com\/(.+)\_/)[1];
dl.download = d.querySelector('em').innerText+".mp3";
d.querySelector('.primary').appendChild(dl);
dl.style.marginLeft = '10px';
dl.style.color = 'red';
dl.style.fontWeight = 700;
})(document);
@eddievlagea
eddievlagea / .htaccess
Created October 1, 2011 10:36 — forked from nathansmith/.htaccess
Route extension-less files to HTML.
# Route extension-less URLs to the equivalent *.html file.
# For instance: example.com/about = example.com/about.html
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]
</IfModule>
@eddievlagea
eddievlagea / LICENSE.txt
Created September 28, 2011 11:58 — forked from p01/LICENSE.txt
Sudoku Solver in 140bytes
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Mathieu 'p01' Henri <http://www.p01.org/releases/>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE