Skip to content

Instantly share code, notes, and snippets.

View jagdishadusumalli's full-sized avatar

Jagdish Adusumalli jagdishadusumalli

View GitHub Profile
#!/bin/sh
CASKNAME="$1"
CASKROOM=$(brew --caskroom)
CASKDIR="$CASKROOM/$CASKNAME"
DATE=$(date +"%Y%m%d%H%M%S.000")
BACKUPDIR="$CASKDIR/.backup"
BLACK='\033[30m'
RED='\033[31m'
@JackDrogon
JackDrogon / office-thinner.rb
Last active November 4, 2023 13:43
Mac OS X Office thinner: All files are link by hard link, so you needn't to worry about apple code signature. All same files are backuped to Trash dir
#!/usr/bin/env ruby
# -*- coding:utf-8 -*-
# TODO: Check same file with soft link
# TODO: Trim same file by apfs clone
require 'set'
require 'find'
require 'digest'
require 'fileutils'
@deepak
deepak / homebrew segfault due to readline
Last active August 29, 2015 14:15
segfault with ruby's readline
➜ ~ brew upgrade wget
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/readline.bundle: [BUG] Segmentation fault
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin13]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/Library/Logs/DiagnosticReports