Skip to content

Instantly share code, notes, and snippets.

View CharlesB2's full-sized avatar

Charles Brossollet CharlesB2

View GitHub Profile
abi.vsyscall32 = 1
debug.exception-trace = 1
debug.kprobes-optimization = 1
dev.cdrom.autoclose = 1
dev.cdrom.autoeject = 0
dev.cdrom.check_media = 0
dev.cdrom.debug = 0
dev.cdrom.info = CD-ROM information, Id: cdrom.c 3.20 2003/12/17
dev.cdrom.info =
dev.cdrom.info = drive name:
@CharlesB2
CharlesB2 / clion
Created June 21, 2019 13:34
CLion launcher
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
import struct
import sys
import os
import time
# see com.intellij.idea.SocketLock for the server side of this interface
@CharlesB2
CharlesB2 / shrink-git-repo.sh
Last active January 5, 2018 07:23 — 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)
#!/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
#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 September 12, 2012 14:06
GitX crash report
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
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
@CharlesB2
CharlesB2 / CMakeCache.txt
Created May 23, 2011 13:53
issue with CMake
# 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!.