Skip to content

Instantly share code, notes, and snippets.

Charles Brossollet CharlesB2

View GitHub Profile
@CharlesB2
CharlesB2 / shrink-git-repo.sh
Last active Jan 5, 2018 — forked from aaronzirbes/shrink-git-repo.sh
This script will help you remove large files from your git repo history and shrink the size of your repository. (fixed for files having space)
View shrink-git-repo.sh
#!/bin/bash
echo "Finding and Purging Big Files From Git History"
echo "=============================================="
echo ""
echo "http://naleid.com/blog/2012/01/17/finding-and-purging-big-files-from-git-history/"
echo ""
pushd "$(git rev-parse --show-toplevel)" > /dev/null
View gist:5404653
#Using Start-Process you can get the correct encoding of your program output.
#However you have to use a temp. filename because it's the only thing Start-Process allows to.
#I wrote this function, taking program path and arguments, and returns stdout decoded from
#program output as UTF8 Function
Start-ProcessClean
{
Param( [Parameter(Mandatory=$True, Position=1)][string]$FilePath,
[Parameter(Mandatory=$False,Position=2)][string[]]$ArgumentList )
@CharlesB2
CharlesB2 / gist:3706832
Created Sep 12, 2012
GitX crash report
View gist:3706832
Process: GitX [53998]
Path: /Users/USER/*/GitX.app/Contents/MacOS/GitX
Identifier: net.phere.GitX
Version: 0.14.50 development (0.14.50)
Code Type: X86-64 (Native)
Parent Process: launchd [639]
Date/Time: 2012-09-12 16:04:19.842 +0200
OS Version: Mac OS X 10.7.4 (11E2617)
Report Version: 9
View log zimbra-ne01 LLTech.txt
CONNECTED May 27 10:51:52.435 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:zimbra-ne01.network-studio.com -- port:993 -- socket:0x11dcc1cf0 -- thread:0x1153476b0
CONNECTED May 27 10:52:41.442 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:zimbra-ne01.network-studio.com -- port:993 -- socket:0x116a87b80 -- thread:0x1134f7380
CONNECTED May 27 10:52:41.443 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:zimbra-ne01.network-studio.com -- port:465 -- socket:0x11fcdad60 -- thread:0x11fc22fd0
READ May 27 10:52:41.522 [kCFStreamSocketSecurityLevelNegotiatedSSL] -- host:zimbra-ne01.network-studio.com -- port:465 -- socket:0x11fcdad60 -- thread:0x11fc22fd0
220 zimbra-ne01.network-studio.com ESMTP Postfix
View CMakeCache.txt
# This is the CMakeCache file.
# For build in directory: /Users/charles2/Library/Caches/Homebrew/cmake-2.8.4
# It was generated by CMake: /Users/charles2/Library/Caches/Homebrew/cmake-2.8.4/Bootstrap.cmk/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!.
You can’t perform that action at this time.