This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/awk -f | |
# | |
# goal-calc | |
# | |
# Returns a weekly budget amount given the date of your next | |
# paycheck, a target date, and a target amount. | |
# | |
# USAGE | |
# | |
# If you're next paycheck will be arriving on 2011/08/29 and you have |
I hereby claim:
- I am nuex on github.
- I am nuex (https://keybase.io/nuex) on keybase.
- I have a public key whose fingerprint is 2F0C E0A6 5AED D09C 0819 0B30 1F90 A3C0 A420 BEBD
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Run this in your current directory to chmod files and directories with | |
# default permissions to allow group access. | |
find . -type f -perm 644 -print -exec chmod 664 {} \; | |
find . -type d -perm 744 -print -exec chmod 774 {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Say something in a slack channel. | |
# | |
# Usage: | |
# | |
# standup 't: doing a thing' | |
# | |
# Finding Values: | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dir = '/var/www/html'; | |
if (getenv('WORDPRESS_PATH')) { | |
$dir = getenv('WORDPRESS_PATH'); | |
} | |
require_once($dir . '/wp-load.php'); | |
class PageSync | |
{ | |
public static function export() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getEmails() { | |
// set spreadsheet and retrieve labels | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var name = "LABEL"; | |
// create sheets and clear content | |
var label = GmailApp.getUserLabelByName(name); | |
var sh = ss.getSheetByName(label.getName()) || | |
ss.insertSheet(label.getName(), ss.getSheets().length); | |
sh.clear(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
outname="$1"; shift | |
target="${outname}.tif" | |
scanimage --format tiff --resolution 300 --mode Gray > "$target" && \ | |
convert "$target" -colorspace gray -level 10%,90%,1 -blur 2 +dither -monochrome "${outname}_bw.tif" && \ | |
tiff2pdf -o "${outname}.pdf" "${outname}_bw.tif" |
OlderNewer