This file contains hidden or 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/local/bin/bash | |
# Make sure this runs on a modern bash with support for ;;& in case | |
shopt -s extglob | |
# Make sure we're in a git directory | |
if [ -d .git ] || git rev-parse --git-dir > /dev/null 2>&1; then | |
# Print a leading space to separate from the rest of the PS1 | |
echo -n " " | |
# Check our status relative to upstream |
This file contains hidden or 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 shouldStop(startTime) { | |
return new Date().getTime() - startTime.getTime() > 300000; // 5 minutes | |
} | |
function archive() { | |
var days = 7; // How old a message must be to be archived | |
var startTime = new Date(); | |
var date = new Date(); | |
date.setDate(date.getDate() - days); | |
var label = GmailApp.getUserLabelByName("[LABEL NAME]"); |
This file contains hidden or 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
# If you haven't already, download Conky Google Now from http://satya164.deviantart.com/art/Conky-Google-Now-366545753 and unzip it to your home folder; then copy this .conkyrc over the one you just extracted | |
# Requires lm-sensors and inxi (and conky) to be installed: | |
# sudo apt-get install lm-sensors inxi | |
# Adapted from these: | |
# http://satya164.deviantart.com/art/Conky-Google-Now-366545753 | |
# https://gist.github.com/anonymous/6666594 | |
# Conky Google Now style # |
This file contains hidden or 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/bash | |
# This script downlaods and builds the iOS and Mac openSSL libraries with Bitcode enabled | |
# Credits: | |
# https://github.com/st3fan/ios-openssl | |
# https://github.com/x2on/OpenSSL-for-iPhone/blob/master/build-libssl.sh | |
# Peter Steinberger, PSPDFKit GmbH, @steipete. | |
set -e |
NewerOlder