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
Homebrew build logs for tdsmith/ham/chirp on macOS 10.14 | |
Build date: 2019-01-13 00:42:15 |
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
http://192.168.2.129:2900 |
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/python | |
import datetime | |
import json | |
import urllib2 | |
import re | |
import pytz | |
# django utilites for parsing datetime | |
class FixedOffset(datetime.tzinfo): | |
""" |
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
-- Adapted from these sources: | |
-- http://peterdowns.com/posts/open-iterm-finder-service.html | |
-- https://gist.github.com/cowboy/905546 | |
-- | |
-- Modified to work with files as well, cd-ing to their container folder | |
-- Modified to work with iTerm 2 night builds https://iterm2.com/applescript.html | |
on run {input, parameters} | |
tell application "Finder" | |
set my_file to first item of input | |
set filetype to (kind of (info for my_file)) |
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
var Agent = {}; | |
Agent.check = function() { | |
var events = JSON.parse(this.memory('events') || '[]'); | |
this.log('memory is: (' + typeof events + '):' + JSON.stringify(events)); | |
var len = events.length; | |
var tags = (this.options('tags') || '').split(','); | |
var count = parseInt(this.options('count'), 10) || tags.length; | |
var delimeter = this.options('delimeter') || ','; | |
var tagPrefix = this.options('tagPrefix') || this.options('tagprefix') || ''; | |
if (len === 0) { |
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
Oauth2 Scope: | |
https://www.googleapis.com/auth/googlevoice | |
+https://www.googleapis.com/auth/contacts | |
+https://www.googleapis.com/auth/userinfo.email | |
+https://www.googleapis.com/auth/userinfo.profile | |
+https://www.googleapis.com/auth/googletalk | |
++++ Folder/Label counts | |
POST /rpc?prettyprint=false HTTP/1.1 | |
Host: www.googleapis.com |
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 unhash(hash, str="") { //default parameter values currently only supported by Firefox | |
var base = 7; | |
var multiplier = 37; | |
var letters = "acdegilmnoprstuw"; | |
var index = hash % multiplier; | |
str = letters[index] + str; | |
hash = Math.trunc(hash / multiplier); | |
//Math.trunc is a dumb Math.floor - splits by the decimal point | |
//so works for negative numbers also | |
//(obviously doesn't make a difference here, |
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
//full credit for this to https://github.com/andrewbredow using his Library-Detector-for-Chrome | |
(function() { | |
function callback() { | |
var tests = d41d8cd98f00b204e9800998ecf8427e_LibraryDetectorTests; | |
var libraries = []; | |
for (var i in tests) { | |
try { | |
var result = tests[i].test(window); | |
if (result === false) continue; | |
libraries.push({ |
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
//helpers/newline-br.js | |
import Ember from 'ember'; | |
export function newlineBr(text) { | |
var breakTag = '<br />'; | |
return new Ember.Handlebars.SafeString((text + '') | |
.replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1' + breakTag + '$2')); | |
} | |
export default Ember.Handlebars.helper('newLineBr',newlineBr); |
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/sh | |
page_count=`pdfinfo $1 | grep Pages: | cut -d':' -f2 | tr -d ' '` | |
pages_per=10 | |
i=1 | |
while [[ $i -le $page_count ]]; do | |
echo $(( $i + 10 )) | |
gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER -dFirstPage=$i -dLastPage=$(( $i + $pages_per )) -sOutputFile=output2$i.pdf $1 | |
i=$(( $i + $pages_per )) | |
done |
NewerOlder