Skip to content

Instantly share code, notes, and snippets.

View mvastola's full-sized avatar

Mike Vastola mvastola

View GitHub Profile
@mvastola
mvastola / apt-install-key
Created July 24, 2022 02:13
A shell script replacement for the (deprecated) `apt-key adv ...` that's even easier to use.
#!/bin/bash
set -e
# Need to be root for this
[ $(/usr/bin/id -ur) -eq 0 ] || exec /usr/bin/sudo -u root -g root -- "$(realpath "$0")" "$@"
KEYS_ROOT=/etc/apt/trusted.gpg.d
KEYSERVERS=( hkp://keys.gnupg.net hkp://pgp.mit.edu hkp://keyserver.ubuntu.com hkp://keyserver.ubuntu.com:80 )
#!/usr/bin/env ruby
ENV['RAILS_ENV'] = 'development'
require 'rubygems'
require 'bundler/inline'
gemfile(false) do
source 'https://rubygems.org'
#!/usr/bin/env ruby
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'thin'
gem 'rack'
gem 'rack-timeout'
#!/usr/bin/env ruby
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'thin'
gem 'rack'
gem 'rack-timeout'
#!/usr/bin/env ruby
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'thin'
gem 'rack'
gem 'rack-timeout'
#!/usr/bin/env rvm-shebang-ruby
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'zeitwerk'
gem 'byebug'
end
require 'pp'
@mvastola
mvastola / main.es
Last active August 31, 2021 06:24
Refactored KDE Plasma Comic Addon For XKCD (based on https://store.kde.org/p/1080452)
/*
* Copyright (C) 2007 Tobias Koenig <[email protected]>
* Copyright (C) 2009 - 2017 Matthias Fuchs <[email protected]>
* Copyright (C) 2019 Hans-Peter Jansen <[email protected]>
* Copyright (C) 2021 Mike Vastola <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License version 2 as
* published by the Free Software Foundation
*

Keybase proof

I hereby claim:

  • I am mvastola on github.
  • I am mvastola (https://keybase.io/mvastola) on keybase.
  • I have a public key ASCNA7H4Ylu3LqM4rbjgdDxNJivXMwsNCjQcxnO5NQ1RUQo

To claim this, I am signing this object:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="robots" content="noindex">
<title>Decentraleyes Issue Proof of Concept</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.2.0/normalize.css" crossorigin="anonymous" />
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js" crossorigin="anonymous"></script>
<style type="text/css">
@mvastola
mvastola / rack2.diff
Created September 10, 2016 17:53
Changes in Rack 2
diff --git a/HISTORY.md b/HISTORY.md
index 2635c60..406d175 100644
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -1,14 +1,162 @@
-Fri Jun 19 07:14:50 2015 Matthew Draper <[email protected]>
+Sun Dec 4 18:48:03 2015 Jeremy Daer <[email protected]>
- * Work around a Rails incompatibility in our private API
+ * First-party "SameSite" cookies. Browsers omit SameSite cookies