Skip to content

Instantly share code, notes, and snippets.

View ErichDonGubler's full-sized avatar

Erich Gubler ErichDonGubler

View GitHub Profile
@ErichDonGubler
ErichDonGubler / loadAllDifferentialPatchFiles.js
Created February 28, 2025 02:51
Load all files in a Differential revision (Phabricator)
document.querySelectorAll('[data-sigil="differential-load"]').forEach(el => el.click())
@ErichDonGubler
ErichDonGubler / .gitignore
Last active April 9, 2025 22:19
Analysis of `webgpu-apps`' current blockers
cache/
@ErichDonGubler
ErichDonGubler / CopyGitHubPROrIssueTitleAsMarkdownLink.user.js
Last active March 26, 2025 21:10
User scripts for various things Erich uses for his work on Firefox's WebGPU implementation
This file has been truncated, but you can view the full file.
[
"https://www.example.com/",
"http://www.example.com/basket.php",
"http://www.example.org/airport?account=branch&account=alarm",
"http://example.com/?bottle=arch&birth=art",
"https://www.example.com/adjustment/bee.html",
"http://www.example.com/",
"http://example.com/bomb/bear?bone=behavior&arm=ball",
"http://www.example.com/",
"https://example.com/bubble",
@ErichDonGubler
ErichDonGubler / git_svn_shallow_clone.sh
Last active August 10, 2022 14:28
Shallow-cloning an SVN repository in Git
function git_svn_shallow_clone() {
# Shallowly clones an SVN repository using `git svn`.
#
# Example: Clone directly into the CWD.
# Note: if your connection fails midway through the cloning, you can pick up from
# where you left off by simply invoking the clone function again. Neat, right?
# $ git_svn_shallow_clone <url> .
#
# You may need to run this in your cloned folder if you need to resume cloning from
# an interrupted connection.

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

This gist documents Erich's endeavors to get QML working with Rust on his machines, since there's not much in the way of a helpful tutorial.

Windows

WARNING: Work in progress. Definitely not complete!

To get gcc/make/cmake, we'll need to...what? Building qml-rust with the Win-builds version of GCC seems to make the build report gcc as broken (see here).

Install Qt with the open-source license for versions 5.6-5.8 here.

@ErichDonGubler
ErichDonGubler / duckConstraints.d
Last active January 23, 2018 19:13
Response to "Methods and UFCS"'s constraints point againt D at @MaikKlein's https://maikklein.github.io/post/cmp-rust-d/
/**
* Demo: duckConstraints.d
* Purpose: Demonstrate duck-typed constraints in D (in response to https://maikklein.github.io/2016-03-01-metaprogramming-typeobject/)
* Authors: Erich Gubler (Github: @erichdongubler)
* Date: 6/25/2016
*
* @maikklein: "Constrains" ( ;) ) in D similar to the Rust block you have shown:
*
* impl<T> Bar<T>
* where: T: Copy
@ErichDonGubler
ErichDonGubler / clone-dotfiles.sh
Last active May 19, 2017 01:22
A Bash script that sets up erichdongubler's dotfiles repo locally and deploys immediately
# Shamelessly copied and adapted from https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/
pushd "$HOME" > /dev/null
git clone --bare https://github.com/ErichDonGubler/.dotfiles.git ~/.dotfiles.git
function .git() {
git --git-dir="$HOME/.dotfiles.git/" --work-tree="$HOME" $*
}
.git checkout
if [ $? = 0 ]; then
echo "Checked out dotfiles.";
else
@ErichDonGubler
ErichDonGubler / platforms.makefile
Created May 17, 2015 00:04
Starter makefile for cross-platform projects
# This script assumes you're using a GNU-compliant Make implementation.
# It is required that the following in your path:
# - bash
# Otherwise, this script attempts to use native commands.
# Help from [here](http://stackoverflow.com/questions/4555120/obtaining-directory-makefile-resides-in)
THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
POSIX_DIR="$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd)"
UNAME=$(shell uname -o)
ifeq ($(OS),Windows_NT)