Skip to content

Instantly share code, notes, and snippets.

Phill Pafford phillpafford

Block or report user

Report or block phillpafford

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am phillpafford on github.
  • I am phillpafford (https://keybase.io/phillpafford) on keybase.
  • I have a public key whose fingerprint is DF23 E529 F9B6 9327 3E01 1D82 FB9D EBB3 407A 1138

To claim this, I am signing this object:

@phillpafford
phillpafford / speedmail.command.line.scpt
Created Sep 15, 2014
Speed up Mail.app by vacuuming the Envelope Index
View speedmail.command.line.scpt
(*
Speed up Mail.app by vacuuming the Envelope Index
Code from: http://www.hawkwings.net/2007/03/03/scripts-to-automate-the-mailapp-envelope-speed-trick/
Originally by "pmbuko" with modifications by Romulo
Updated by Brett Terpstra 2012 <http://brettterpstra.com>
*)
tell application "Mail" to quit
set sizeBefore to do shell script "ls -lah ~/Library/Mail/V2/MailData | grep -E 'Envelope Index$' | awk {'print $5'}"
do shell script "/usr/bin/sqlite3 ~/Library/Mail/V2/MailData/Envelope\\ Index vacuum"
View stash_slack_integration.md

This is a short article on how we integrate stash and slack in openmind

First of all i assume you have:

  • a working stash installation
  • a repository you to notify slack on pushes
  • stash user with administration priviledges
  • full access to the server (linux) where stash is installed on
  • a team configured on slack
  • slack user with administration priviledges
View stash_slack.sh
#!/bin/bash
# $1 => Slack hook URL
# $2 => Channel name
# $3 => URL to web repo browser for base project
slack_url="$1"
channel="$2"
browser_url="$3"
# Debugging output in /tmp/stash_slack.txt
@phillpafford
phillpafford / gist:5126739
Last active Dec 14, 2015
Line by line input for how I got SiriProxy running on a fresh install of Ubuntu 12.10 server
View gist:5126739
# Must give props to Plamoni
https://gist.github.com/plamoni/1428474
# Additional props to Elvis as I'm pulling some steps from his installation process which you can find here:
https://gist.github.com/elvisimprsntr/3985559
# READ if you need
https://help.ubuntu.com/community/VimHowto ( This works for vi command as well )
# START HERE <------------------------------------------------------------
View install_mcrypt.sh
#!/usr/bin/sh
# NOTE: To execute this script: bash install_mcrypt.sh
# Pre Reqs, These are important!!!
# Install xCode
# Launch xCode and open Preferences
# Select the Downloads Tab in the Preference Panel
# Under Components install Command Line Tools
View gist:c2a3bdb296270f5b3e14
Verifying that +phillpafford is my blockchain ID. https://onename.com/phillpafford
@phillpafford
phillpafford / macs-on-active-directory.md
Created May 26, 2016 — forked from bzerangue/macs-on-active-directory.md
Binding and Unbinding to Active Directory from Mac OS via Command Line
View macs-on-active-directory.md

Binding and Unbinding to Active Directory from Mac OS via Command Line

  • Open the Terminal Application
  • Type in sudo -i and type in your Mac Administrator account password. sudo gives you root level or administrator level privileges.

To View current Active Directory Settings

dsconfigad -show

To Unbind a Computer from an Active Directory Domain

View gist:09ee6e4e176670fb66fa75e264a8de99
- https://cruise.phparch.com/
- https://tek.phparch.com/
- https://world.phparch.com/
- http://midwestphp.org/
- https://skiphp.com/
- http://lonestarphp.com/
- http://pnwphp.com/
- http://madisonphpconference.com/
- http://sunshinephp.com/
View logstash.mapping
{
"logstash-2018.11": {
"mappings": {
"doc": {
"_meta": {
"version": "6.4.2"
},
"dynamic_templates": [
{
"fields": {
You can’t perform that action at this time.