Skip to content

Instantly share code, notes, and snippets.

View gpressutto5's full-sized avatar

Guilherme Pressutto gpressutto5

  • Curitiba, Brazil
View GitHub Profile
@gpressutto5
gpressutto5 / impbcopy.m
Last active April 12, 2019 20:13
impbcopy.m mirror
/////////////////////////////////////////////////////////
// Copied from http://www.alecjacobson.com/weblog/?p=3816
/////////////////////////////////////////////////////////
#import <Foundation/Foundation.h>
#import <Cocoa/Cocoa.h>
#import <unistd.h>
BOOL copy_to_clipboard(NSString *path)
{
// http://stackoverflow.com/questions/2681630/how-to-read-png-image-to-nsimage
NSImage * image;
[user]
name = Guilherme Pressutto
email = gpressutto5@gmail.com
[core]
pager = diff-so-fancy | less --tabs=4 -R
excludesFile = ~/.gitignore
[color]
ui = true
[color "diff-highlight"]
oldNormal = red bold
@gpressutto5
gpressutto5 / git-bisect-phpunit.sh
Last active December 9, 2021 18:26 — forked from havvg/git-bisect-phpunit.sh
git bisect phpunit wrapper
#!/bin/bash
lcd artisan migrate
lcd phpunit --testsuite=VMS --filter=testGetPossibleTimeSegmentsForOldestDraftInvoiceWithCrossoverHandlingEnd
EXIT_CODE="$?"
lcd artisan migrate:rollback