Skip to content

Instantly share code, notes, and snippets.

View matthiasak's full-sized avatar
@hashicorp Terraform 💯 expression engine builds dep-trees of values

Matt Keas matthiasak

@hashicorp Terraform 💯 expression engine builds dep-trees of values
  • Google
  • Houston, TX
View GitHub Profile
matthiasak /
Created August 15, 2019 13:36 — forked from koenbok/
My Favorite Mac Tweaks

Skip verifying disk images

defaults write skip-verify true

Always hide the Desktop

defaults write CreateDesktop false; killall Finder

Make terminal logins fast

touch ~/.hushlogin

Disable most animations


First, if you are on Ubuntu Cosmic, you need to manually compile json-c because the version provided is 0.12.1, but sway requires at least version 0.13. It is pretty straight forward, so take a look here.

Then, we need to install common dependencies between wlroots and sway-1.0.

sudo apt install gcc pkgconf meson ninja-build libwayland-dev libinput-dev libcap-dev

Secondly, we need to install wlroots dependencies.

matthiasak /
Created June 11, 2018 11:43 — forked from mrkpatchaa/
Bulk delete github repos

Use this trick to bulk delete your old repos or old forks

(Inspired by

  1. Open in a new tab all to-be-deleted github repositores (Use the mouse’s middle click or Ctrl + Click)

  2. Use one tab to shorten them to a list.

  3. Save that list to some path

  4. The list should be in the form of “ur_username\repo_name” per line. Use regex search (Sublime text could help). Search for ' |.*' and replace by empty.

sorta'ish notes:
# talk notes
- Fanflow
- Preact, Typescript, Fusebox (vs. Webpack), GraphQL, PostCSS, immutable deployments, Docker, Responsive Web Design
- package.json (TOC)
- dependencies
- scripts
- services used (,, snyk, github, auth0,, browserstack)
matthiasak / ko.js
Created February 7, 2017 04:09
ko.js example
// copy and paste into
document.head.innerHTML += `<style> body { background: #efefef; } </style>`
document.body.innerHTML = `
<p>First name: <input data-bind="value: first" /></p>
<p>Last name: <input data-bind='value: last, valueUpdate: "afterkeydown"' /></p>
<h2>Hello, <span data-bind="text: full"> </span>!</h2>
matthiasak / inlineworker.js
Created January 16, 2017 01:19 — forked from SunboX/inlineworker.js
Create web workers without a separate worker JS files. Source:
function worker() {
setInterval(function() {
postMessage({foo: "bar"});
}, 1000);
var code = worker.toString();
code = code.substring(code.indexOf("{")+1, code.lastIndexOf("}"));
var blob = new Blob([code], {type: "application/javascript"});
module.exports = {
config: {
openDevToolsKey: 'CommandOrControl+I',
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
matthiasak / reclaimWindows10.ps1
Created January 9, 2017 03:10 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via (different defaults)
# Win10 Initial Setup Script
# Author: Disassembler <>
# Version: 1.7, 2016-08-15
# dasm's script:
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1
let items = [
{category: "Sporting Goods", price: "$49.99", stocked: true, name: "Football"},
{category: "Sporting Goods", price: "$9.99", stocked: true, name: "Baseball"},
{category: "Sporting Goods", price: "$29.99", stocked: false, name: "Basketball"},
{category: "Electronics", price: "$99.99", stocked: true, name: "iPod Touch"},
{category: "Electronics", price: "$399.99", stocked: false, name: "iPhone 5"},
{category: "Electronics", price: "$199.99", stocked: true, name: "Nexus 7"}
const app = () => {