Skip to content

Instantly share code, notes, and snippets.

View dkingofpa's full-sized avatar

David King dkingofpa

View GitHub Profile
@dkingofpa
dkingofpa / OSX-junos_pulse_listenToMe.sh
Last active August 29, 2015 14:17 — forked from Andrewpk/OSX-junos_pulse_listenToMe.sh
wtf juniper. Anyone else find it irritating that junos pulse services and pulse tray must always running in OS X regardless of whether or not you're currently connected? Yeah, me too. I added the following as aliases to my shell to fix this problem. Be sure to change your /Library/LaunchAgents/net.juniper.pulsetray.plist file to reflect the `Kee…
#################################################################################
# start and stop the vpn from the command line from now on with these two commands
# or rename the aliases as you see fit.
#################################################################################
alias startvpn="sudo launchctl load -w /Library/LaunchDaemons/net.juniper.AccessService.plist; open -a '/Applications/Junos Pulse.app/Contents/Plugins/JamUI/PulseTray.app/Contents/MacOS/PulseTray'"
alias quitvpn="osascript -e 'tell application \"PulseTray.app\" to quit';sudo launchctl unload -w /Library/LaunchDaemons/net.juniper.AccessService.plist"
; included in 7.x-1.14
; issue #1950498
projects[ckeditor][version] = "1.x-dev"
projects[ckeditor][type] = "module"
projects[ckeditor][subdir] = "contrib"
projects[ckeditor][download][type] = "git"
;projects[ckeditor][download][revision] = "57245a9"
;projects[ckeditor][download][branch] = "7.x-1.x"
; Needs applied to ckeditor before 2158741
@dkingofpa
dkingofpa / gist:4159026
Created November 28, 2012 04:31
librarian output
dking@dking-mbp ~/Projects/test ((no branch)) $ librarian/bin/librarian-chef install --verbose
[Librarian] Ruby Version: 1.9.2
[Librarian] Ruby Platform: x86_64-darwin11.4.0
[Librarian] Rubygems Version: 1.8.24
[Librarian] Librarian Version: 0.0.25
[Librarian] Librarian Adapter: chef
[Librarian] Project: /Users/dking/Projects/test
[Librarian] Specfile: Cheffile
[Librarian] Lockfile: Cheffile.lock
[Librarian] Git: /usr/local/bin/git
@dkingofpa
dkingofpa / gist:3417230
Created August 21, 2012 16:51
Librarian error
This file has been truncated, but you can view the full file.
[Librarian] Ruby Version: 1.9.2
[Librarian] Ruby Platform: x86_64-darwin11.4.0
[Librarian] Rubygems Version: 1.8.24
[Librarian] Librarian Version: 0.0.24
[Librarian] Librarian Adapter: chef
[Librarian] Project: /Users/dking/Projects/test
[Librarian] Specfile: Cheffile
[Librarian] Lockfile: Cheffile.lock
[Librarian] Git: /usr/local/bin/git
[Librarian] Git Version: git version 1.7.11.1
vagrant@drupal:~$ rvmsudo gem install chef
Fetching: chef-10.12.0.gem (100%)
Successfully installed chef-10.12.0
1 gem installed
vagrant@drupal:~$ sudo chef-solo -c /tmp/vagrant-chef-1/solo.rb -j /tmp/vagrant-chef-1/dna.json
/usr/local/rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find chef (>= 0) amongst [minitest-1.6.0, rake-0.8.7, rdoc-2.5.8] (Gem::LoadError)
from /usr/local/rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /usr/local/rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/rubygems.rb:1231:in `gem'
from /usr/local/rvm/gems/ruby-1.9.2-p320/bin/chef-solo:18:in `<main>'
vagrant@drupal:~$ gem list
@dkingofpa
dkingofpa / gist:2759171
Created May 20, 2012 19:09
ghost gem list
dking@desktop21 ~ $ gem list
*** LOCAL GEMS ***
ansi (1.3.0)
archive-tar-minitar (0.5.2)
builder (3.0.0)
bundler (1.1.3, 1.0.21 ruby)
bunny (0.7.9, 0.7.8)
@dkingofpa
dkingofpa / Gemfile
Created May 2, 2012 13:24 — forked from medlefsen/Gemfile
capistran-drush config example
source "http://rubygems.org"
gem 'capistrano-drush', :git => 'git://github.com/xforty/capistrano-drush.git'
@dkingofpa
dkingofpa / gist:1727534
Created February 3, 2012 03:40
apt update-notifier-common error
[Fri, 03 Feb 2012 03:33:58 +0000] DEBUG: Processing execute[apt-get-update] on ubuntu-11.10-server-amd64
[Fri, 03 Feb 2012 03:33:58 +0000] INFO: Processing execute[apt-get-update] action nothing (apt::default line 22)
[Fri, 03 Feb 2012 03:33:58 +0000] DEBUG: Doing nothing for execute[apt-get-update]
[Fri, 03 Feb 2012 03:33:58 +0000] DEBUG: Processing execute[apt-get update] on ubuntu-11.10-server-amd64
[Fri, 03 Feb 2012 03:33:58 +0000] INFO: Processing execute[apt-get update] action nothing (apt::default line 30)
[Fri, 03 Feb 2012 03:33:58 +0000] DEBUG: Doing nothing for execute[apt-get update]
[Fri, 03 Feb 2012 03:33:58 +0000] DEBUG: Processing package[update-notifier-common] on ubuntu-11.10-server-amd64
[Fri, 03 Feb 2012 03:33:58 +0000] INFO: Processing package[update-notifier-common] action install (apt::default line 37)
[Fri, 03 Feb 2012 03:33:58 +0000] DEBUG: package[update-notifier-common] checking package status for update-notifier-common
[Fri, 03 Feb 2012 03:33:58 +0000] DEBUG: sh(apt-cache policy upd
@dkingofpa
dkingofpa / gist:1690250
Created January 27, 2012 18:44
PHP and module API mismatch (centos 5.7, php from source 5.2.17)
PHP Warning: PHP Startup: curl: Unable to initialize module
Module compiled with module API=20090626, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: fileinfo: Unable to initialize module
Module compiled with module API=20090626, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
@dkingofpa
dkingofpa / gist:1688457
Created January 27, 2012 11:57
php-xml version conflict
[Thu, 26 Jan 2012 23:05:08 -0500] DEBUG: Processing package[php-xml] on localhost.localdomain
[Thu, 26 Jan 2012 23:05:08 -0500] INFO: Processing package[php-xml] action install (drupal::default line 34)
[Thu, 26 Jan 2012 23:05:08 -0500] DEBUG: package[php-xml] checking yum info for php-xml
[Thu, 26 Jan 2012 23:05:08 -0500] DEBUG: package[php-xml] installed version: (none) candidate version: 5.1.6-27.el5_7.4
[Thu, 26 Jan 2012 23:05:08 -0500] DEBUG: Executing yum -d0 -e0 -y install php-xml-5.1.6-27.el5_7.4
[Thu, 26 Jan 2012 23:05:12 -0500] DEBUG: ---- Begin output of yum -d0 -e0 -y install php-xml-5.1.6-27.el5_7.4 ----
[Thu, 26 Jan 2012 23:05:12 -0500] DEBUG: STDOUT: php53-common-5.3.3-1.el5_7.5.x86_64 from installed has depsolving problems
--> php53-common conflicts with php-common
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems