Skip to content

Instantly share code, notes, and snippets.

View jaderfeijo's full-sized avatar

Jader Feijo jaderfeijo

View GitHub Profile
@jaderfeijo
jaderfeijo / sshpd
Last active March 1, 2016 16:40
sshpd
usage() {
echo "Usage: sshpd [start|stop] [username@server_address]"
}
if [ "$1" == "start" ]; then
if [ "$2" != "" ]; then
ssh -D 8080 -f -C -q -N $2
echo "[sshpd] service started!"
echo "[sshpd] listening for incoming connections on port 8080..."
else
@jaderfeijo
jaderfeijo / NSNumber+Random.h
Last active March 1, 2016 16:39
NSNumber+Random
//
// Created by Jader Feijo on 06/02/2014.
// Copyright (c) 2014 Jader Feijo. All rights reserved.
//
// @license MIT
//
#import <Foundation/Foundation.h>
@interface NSNumber (Random)
@jaderfeijo
jaderfeijo / NSArray+Random.h
Last active March 1, 2016 16:39
NSArray+Random
//
// Created by Jader Feijo on 03/12/2014.
// Copyright (c) 2014 Movinpixel. All rights reserved.
//
// @license MIT
#import <Foundation/Foundation.h>
@interface NSArray (Random)
@jaderfeijo
jaderfeijo / NSString+MD5.h
Last active March 1, 2016 16:38
NSString+MD5
//
// NSString+MD5.h
//
// Created by Jader Feijo on 03/06/2011.
// Copyright 2011 movinpixel. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CommonCrypto/CommonDigest.h>
@jaderfeijo
jaderfeijo / build
Last active March 1, 2016 16:38
build
#!/usr/bin/ruby
require 'plist'
command = ARGV[0]
file_path = "Info.plist"
supported_parameters = "Supported parameters: increment, decrement, print"
if !File.file?(file_path)
print "File '#{file_path}' not found.\n\n"
@jaderfeijo
jaderfeijo / version
Last active March 1, 2016 16:38
version
#!/usr/bin/ruby
require 'plist'
command = ARGV[0]
file_path = "Info.plist"
supported_parameters = "Supported parameters: increment, decrement, print"
if !File.file?(file_path)
print "File '#{file_path}' not found.\n\n"
@jaderfeijo
jaderfeijo / git-rm-tag
Last active March 1, 2016 16:38
git-rm-tag
#!/bin/bash
git tag -d $1 & git push $2 :refs/tags/$1
@jaderfeijo
jaderfeijo / trinity
Last active March 1, 2016 16:37
trinity
ssh $1@$2 "osascript -e 'tell application \"Terminal\" to activate' -e 'tell application \"Terminal\" to do script \"nc -l 1234\"' >> /dev/null"
sleep 3
telnet $2 1234
@jaderfeijo
jaderfeijo / .vimrc
Last active May 23, 2019 15:19
.vimrc
let g:python_host_prog = '/Users/jaderfeijo/.pyenv/versions/neovim2/bin/python'
let g:python3_host_prog = '/Users/jaderfeijo/.pyenv/versions/neovim3/bin/python'
call plug#begin('~/.vim/plugged')
Plug 'https://github.com/keith/swift.vim.git'
Plug 'https://github.com/scrooloose/syntastic.git'
Plug 'https://github.com/mitsuse/autocomplete-swift.git'
Plug 'https://github.com/wincent/command-t.git'
Plug 'https://github.com/shime/vim-livedown.git'
@jaderfeijo
jaderfeijo / launch
Last active March 13, 2018 10:46
launch
#!/usr/bin/ruby
require 'json'
require 'plist'
def archive_build(solution, project, configuration)
return system("/Applications/Xamarin\\ Studio.app/Contents/MacOS/mdtool -v archive -c:\"#{configuration}|iPhone\" -p:\"#{project}\" \"#{solution}\"");
end
def export_archive(export_options, archive_path, project_name)