Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am cydonia7 on github.
* I am cydonia7 (https://keybase.io/cydonia7) on keybase.
* I have a public key ASDhtuBhKkgtVxANPF9Nozib-IcuLCa16ccj9ZuiiNRV3Qo
To claim this, I am signing this object:
buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
jcenter()
mavenCentral()
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:3.+'
}
}
@Cydonia7
Cydonia7 / flowkey.js
Created December 16, 2020 17:00 — forked from amcolash/flowkey.js
Noteflight auto transcribe
// Find the sheet music images on the page
const elements = document.getElementsByClassName('split-image');
// Check that there are actually images on the page
if (elements.length === 0) {
console.error('No images found');
} else {
// If images were found, extract the base url from the 1st one
const imageUrl = elements[0].src;
const imageIdMatch = /\/sheets\/([\w\d]+)\//;
// ==UserScript==
// @name Exercism completed in green
// @namespace http://tampermonkey.net/
// @version 0.1
// @author You
// @match https://exercism.io/my/tracks/*
// @grant none
// ==/UserScript==
(function() {
@Cydonia7
Cydonia7 / post-checkout
Created February 1, 2019 16:07 — forked from flesler/post-checkout
git hook to run a command after `git pull` and `git checkout` if a specified file was change for example, package.json or bower.json
#!/usr/bin/env bash
# fork from https://gist.github.com/jakemhiller/d342ad51505addf78ec628a16fd3280f
changed_files="$(git diff-tree -r --name-only --no-commit-id $1 $2)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"
}
check_run package.json "npm prune && npm install"
@Cydonia7
Cydonia7 / improve_fonts.txt
Created October 25, 2018 06:10 — forked from j1cs/improve_fonts.md
Improve fonts archlinux
### Update
Make your Arch fonts beautiful easily!
This is what I do when I install Arch Linux to improve the fonts.
You may consider the following settings to improve your fonts for system-wide usage without installing a patched font library packages (eg. Infinality):
Install some fonts, for example:
sudo pacman -S ttf-dejavu ttf-liberation noto-fonts
Enable font presets by creating symbolic links:
@Cydonia7
Cydonia7 / SnapshotTrait.php
Last active February 14, 2017 10:43
Snapshot testing in Symfony
<?php
namespace Tests;
use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
trait SnapshotTrait
{
use VarDumperTestTrait;