Skip to content

Instantly share code, notes, and snippets.

@githubutilities
githubutilities / Uninstall-pkg.md
Last active May 6, 2024 01:55
Uninstall pkg manually in OS X

Mac Uninstall pkg Manually

  • using pkgutil
# list all your installed packages
pkgutil --pkgs

# show your package info
pkgutil --pkg-info 
@seancoyne
seancoyne / fix-google-drive-menu-bar-icons.sh
Created October 21, 2014 15:34
Fix Google Drive Yosemite Dark Mode Menu Bar Icons
#!/usr/bin/env bash
# change to proper directory
cd /Applications/Google\ Drive.app/Contents/Resources/
# back up the files
sudo mkdir icon-backups
sudo cp mac-animate*.png icon-backups/
sudo cp mac-error*.png icon-backups/
sudo cp mac-inactive*.png icon-backups/
@dtex
dtex / gist:4337176
Created December 19, 2012 14:49
Onion skinning plugin for jQuery
(function( $ ){
var methods = {
init : function( options ) {
return this.each(function(){
oSkin = $('<div class="onionSkin" style="width:100%;text-align:center;position:absolute;opacity:.5;display:none;" />');
oImg = $('<img src="'+options.src+'" />');
oImg.css(options.imgStyles);
anonymous
anonymous / gist:1592925
Created January 11, 2012 03:55
-rwxr-xr-x 1 xose staff 91152 11 ene 04:39 atos
-rwxr-xr-x 1 xose staff 47520 11 ene 04:39 filtercalltree
-rwxr-xr-x 1 xose staff 102992 11 ene 04:39 heap
-rwxr-xr-x 1 xose staff 1078 11 ene 04:39 ibtool
-rwxr-xr-x 1 xose staff 1088 11 ene 04:39 instruments
-rwxr-xr-x 1 xose staff 1330 11 ene 04:39 iprofiler
-rwxr-xr-x 1 xose staff 86304 11 ene 04:39 leaks
-rwxr-xr-x 1 xose staff 112976 11 ene 04:39 malloc_history
-rwxr-xr-x 1 xose staff 1082 11 ene 04:39 opendiff
-rwxr-xr-x 1 xose staff 44160 11 ene 04:39 rvictl
@Victa
Victa / gist:1539485
Created December 30, 2011 11:50
jQuery .nextOrFirst()
$.fn.nextOrFirst = function(selector){
var next = this.next(selector);
return (next.length) ? next : this.prevAll(selector).last();
};
$.fn.prevOrLast = function(selector){
var prev = this.prev(selector);
return (prev.length) ? prev : this.nextAll(selector).last();
};