Skip to content

Instantly share code, notes, and snippets.

View tygor's full-sized avatar

Tyler Gordon tygor

View GitHub Profile
@tygor
tygor / .gitconfig
Last active August 14, 2019 01:23
Just a place to store my git config
# This is Git's per-user configuration file.
[user]
name = {{ YOUR NAME }}
email = {{ YOUR EMAIL }}
[alias]
au = add -u
ca = commit --amend --no-edit
cm = commit -m
co = checkout
@tygor
tygor / Deploy-SquirrelApp.ps1
Last active June 10, 2020 22:19
Squirrel.Windows Powershell Releasify script
<#
.Synopsis
Packs and deploys a Squirrel.Windows app
.DESCRIPTION
Nuget Pack and Squirrel.Windows Releasify. The parameters taken will then run the --signWithParams flag which signs your executables with the given certificate.
.EXAMPLE
Deploy-SquirrelApp -NuSpec C:\Temp\MyApp.nuspec -OutputDir .\bin\Release\ -ReleaseDir C:\Network\Folder\ -CertificatePath .\Certificate.pfx
#>
function Deploy-SquirrelApp {
[CmdletBinding()]
@tygor
tygor / binary-to-text.js
Last active August 14, 2021 15:20
Convert Binary to Text in JS
function BinaryToText(inputString) {
return inputString
.replace(/\s/g,'')
.match(/.{1,8}/g)
.map(
function(byte) {
return String.fromCharCode(parseInt(byte,2));
}
)
.join('');
@tygor
tygor / SassMeister-input.scss
Last active September 30, 2015 19:20
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
/**
* Responsive widths
* @namespace u- Utility
* @url http://csswizardry.com/2015/03/more-transparent-ui-code-with-namespaces/
*/
@tygor
tygor / SassMeister-input.scss
Last active August 29, 2015 14:26
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.3)
// ----
$width-numerator: one, two, three, four, five, six, seven, eight, nine, ten, eleven, twelve, thriteen, fourteen, fifteen, sixteen;
$width-denominator: whole, half, third, quarter, fifth, sixth, seventh, eighth, ninth, tenth, eleventh, twelfth, thirtheenth, fourteenth, fifteenth, sixteenth;
$width-denominators: whole, halfs, thirds, quarters, fifths, sixths, sevenths, eighths, ninths, tenths, elevenths, twelfths, thirtheenths, fourteenths, fifteenths, sixteenths;
$screen-breakpoint-labels: xs, sm, md, lg, xl !default;
@tygor
tygor / deleteMacFiles.sh
Created December 18, 2013 01:46
I like a clean file system. Especially when I publish folders to the web. I found this nice little trick to remove all Mac hidden files recursively. Put it in the parent folder and it will remove all .DS_Store and ._some-file-name.ext files.
#!/bin/bash
echo
echo Deleting all .DS_Store and ._* files that Mac puts all over your system
echo
find . -name ".DS_Store" -print0 | xargs -0 rm -rf
find . -name "._*" -print0 | xargs -0 rm -rf
echo
echo " _ _ _ ____ _ "
echo " / \ | | | | _ \ ___ _ __ ___| |"
@tygor
tygor / makeMore.sh
Last active December 10, 2015 06:08 — forked from anonymous/makeThumbs.sh
#!/bin/bash
# modify these two variables to be the width and height of your desired alternates
thumbbox=250
thumbwidth=250
thumbheight=250
coverbox=750
coverwidth=750
coverheight=300