Skip to content

Instantly share code, notes, and snippets.

View dehuszar's full-sized avatar

Samuel Allen dehuszar

  • Ann Arbor, MI
  • 22:11 (UTC -04:00)
  • X @dehuszar
View GitHub Profile
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
router: Ember.computed(function() {
return Ember.getOwner(this).lookup('router:main');
}),
zeCurrentRoute: Ember.computed.alias('router.currentRouteName')
@dehuszar
dehuszar / detokenize
Created November 8, 2016 15:44
Use to extract extra values from your token
/* Usage
* {{detokenize 'extraValue'}} */
import Ember from 'ember';
const { get, inject } = Ember;
export default Ember.Helper.extend({
session: inject.service(),
compute(params) {
@dehuszar
dehuszar / conver.pe
Last active May 29, 2018 20:13 — forked from endel/conver.pe
FontForge script to convert .ttf file to its webfont variations (.otf, .svg, .woff, .woff2)
#!/usr/local/bin/fontforge
Open($1)
Generate($1:r + ".otf")
Generate($1:r + ".ttf")
Generate($1:r + ".svg")
Generate($1:r + ".woff")
Generate($1:r + ".woff2")
@dehuszar
dehuszar / terraform-bashrc-aliases
Created September 3, 2019 17:19
Place these in yer .bashrc to do some basic terraforming
# TF aliases
alias tf=/usr/bin/terraform
alias tfi="tf init -backend-config=backend.tfvars"
alias tfp="tf plan"
alias tfa="tf apply"
@dehuszar
dehuszar / .gitignore
Created February 25, 2020 20:43
default gitignore file; place in home folder
[user]
name = Your Name
email = [email protected]
[push]
default = current
[alias]
# pretty git log
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
@dehuszar
dehuszar / pulse-record-player-loopback.sh
Created June 22, 2020 17:00
This Pulse-Audio focused script sets up a null-sink and loopback that makes adding USB audio devices pass their stream into your primary output. Personally, I use it to listen to records on my AT-LP120-USB in Ubuntu. Best routed in pavucontrol
pactl load-module module-null-sink sink_name=RecordPlayer
pactl load-module module-loopback sink=RecordPlayer
@dehuszar
dehuszar / redpanda-cluster.nomad
Last active February 14, 2023 03:29
A Nomad job template for running a redpanda-cluster with a kafka-connect cluster that shares the same nodes (TODO), and a Redpanda Console process for management (TODO)
variable "datacenters" {
type = list(string)
}
variable "image_tag" {
default = "v22.3.11-arm64"
type = string
}
job "redpanda" {