Skip to content

Instantly share code, notes, and snippets.

View zerodahero's full-sized avatar

Zack Teska zerodahero

View GitHub Profile
@zerodahero
zerodahero / keybase.md
Created August 16, 2019 14:31
keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@zerodahero
zerodahero / restic_backup.sh
Last active March 31, 2021 07:52
Restic backup with .gitignore style excludes
#!/bin/bash
TEMPFILE='/tmp/restic_ignores.txt'
BACKUPDIR=$HOME
# Note: Not sure which way is better, echo nothing into the file, or remove if exists
# if [ -f $TEMPFILE ]; then
# rm $TEMPFILE
# fi
# touch $TEMPFILE
@zerodahero
zerodahero / EmailRequest.php
Created December 20, 2017 15:23
Laravel 5.4 Comma Separated Email Validation (Transforming Data)
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class EmailRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
@zerodahero
zerodahero / page.vue
Last active October 30, 2017 19:22
Vue-Loader Full Template
<template>
<div> <!-- Must have a root element (doesn't have to be div) -->
</div>
</template>
<script>
import AwesomeComponent from './AwesomeComponent.vue'
export default {
components: {
@zerodahero
zerodahero / app.js
Created June 16, 2016 13:03
Foundation 6 Sites Time Tooltip
// Most likely in app.js
$('time').each(function(){
new Foundation.Tooltip($(this), {tipText: $(this).attr('datetime')});
});