Skip to content

Instantly share code, notes, and snippets.

View macecchi's full-sized avatar

Mario Cecchi macecchi

  • Sao Paulo, Brazil
View GitHub Profile
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
set -g mouse on
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'jimeh/tmux-themepack'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set-option -g status-interval 5
set-option -g automatic-rename on
@macecchi
macecchi / keybase.md
Created September 11, 2017 21:40
keybase.md

Keybase proof

I hereby claim:

  • I am macecchi on github.
  • I am meriw (https://keybase.io/meriw) on keybase.
  • I have a public key ASCIxOhzNioq6__SSolWp0fMz8uxiovJTAG2iq1ExDz94go

To claim this, I am signing this object:

@macecchi
macecchi / sign_nwbuilder_mac.sh
Last active March 5, 2016 04:28
Signs an app generated using nw-builder.js for distribution outside the Mac App Store
app="$1"
identity="" # SHA1 Hash of your Developer ID certificate
echo "### signing frameworks"
codesign --force --verify --verbose --sign "$identity" "$app/Contents/Frameworks/nwjs Framework.framework/nwjs Framework"
codesign --force --verify --verbose --sign "$identity" "$app/Contents/Frameworks/nwjs Helper EH.app/"
codesign --force --verify --verbose --sign "$identity" "$app/Contents/Frameworks/nwjs Helper NP.app/"
codesign --force --verify --verbose --sign "$identity" "$app/Contents/Frameworks/nwjs Helper.app/"
codesign --force --verify --verbose --sign "$identity" "$app/Contents/Frameworks/crash_inspector"
@macecchi
macecchi / boca_convert.c
Last active February 11, 2016 03:46
Converter planilha CSV pro input do BOCA
#include <stdio.h>
#include <stdlib.h>
#define LINE_SIZE 500
#define USER_NUMBER 2100
int main(void) {
FILE* f = NULL;
FILE* fexit = NULL;
char line[LINE_SIZE];
@macecchi
macecchi / NSDate+nextHour.h
Last active November 26, 2015 03:11
NSDate+nextHour category (next round hour)
#import <Foundation/Foundation.h>
@interface NSDate(nextHour)
/**
* Gets the next full hour from current date. For example, if now is 16:16:45, returns 17:00:00.
*
* @return NSDate with next full hour (current hour + 1), 0 minutes and 0 seconds.
*/
+ (NSDate *)nextHour;
@macecchi
macecchi / PSTAlertController+okAlert.h
Created August 20, 2015 13:01
Category with simple static method to present an alert with an "OK" button using iOS lib PSTAlertController
#import <PSTAlertController.h>
@interface PSTAlertController (okAlert)
+ (PSTAlertController *)presentOkAlertWithTitle:(NSString *)title andMessage:(NSString *)message;
+ (PSTAlertController *)presentOkAlertWithTitle:(NSString *)title andMessage:(NSString *)message andHandler:(void (^)(PSTAlertAction *action))handler;
@end