Skip to content

Instantly share code, notes, and snippets.

🤺
Programming

José Aguirre josejaguirre

🤺
Programming
Block or report user

Report or block josejaguirre

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ReverseString.m
// Cadena original
NSString *cadena = @"El DevF rockea";
// Cadena invertida
NSMutableString *reverse = [[NSMutableString alloc] init];
int time = 0;
for (int i = (int)([cadena length] - 1); i >= 0; i--) {
NSRange subString = NSMakeRange(i, 1);
View virtualenv-prompt.plugin.zsh
export VIRTUAL_ENV_DISABLE_PROMPT=1
ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX="💩"
ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX="💩"
function virtualenv_prompt_info() {
if [ -n "$VIRTUAL_ENV" ]; then
if [ -f "$VIRTUAL_ENV/__name__" ]; then
local name=`cat $VIRTUAL_ENV/__name__`
elif [ `basename $VIRTUAL_ENV` = "__" ]; then
View miloshadzic.zsh-theme
# Yay! High voltage and arrows!
ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[green]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}⚡%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN=""
# 🍔 %{$fg[magenta]%}░▒▓▚▐%{$reset_color%}
PROMPT='$(virtualenv_prompt_info)%{$fg[green]%}⬢%{$reset_color%} %{$fg[cyan]%}%1~%{$reset_color%}%{$fg[red]%}|%{$reset_color%}$(git_prompt_info)%{$fg[cyan]%}⇒%{$reset_color%} '
@josejaguirre
josejaguirre / vimrc
Created May 25, 2017
Configuración customizable de vim
View vimrc
set t_Co=256
filetype plugin indent on
syntax enable
set splitbelow
set splitright
set showcmd
set showmatch
@josejaguirre
josejaguirre / README.md
Created May 25, 2017
Configuración de colores para xcode 6 y posteriores
View README.md

Solarized Dark para Xcode 6

Manual de instalación

Copia el archivo .dvtcolortheme dentro del siguiente directorio:

~/Library/Developer/Xcode/UserData/FontAndColorThemes
View README.md

oh-my-zsh::plugin::virtualenv-prompt

This is a fork of the virtualenv plugin from upstream. It support to customize the virtualenv prompt in oh-my-zsh themes.

Installation

You can install this plugin quickly via curl:

View gist:a1f7ca37b76d182a14b78554166d151d
2.2.x
Name : Sam
Serial : eJzzzU/OLi0odswsqglOzK0xsjQzNzI2NjA1q3GuMQQAnJAJjw==
3.3.x
Username: personal
eJzzzU/OLi0odswsqilILSrOz0vMqbFEAjXONYY1fu6ufgA/CA4X
@josejaguirre
josejaguirre / gist:c813fa6d3317cb33d6583627920f706b
Created Jul 14, 2017 — forked from jimbojsb/gist:1630790
Code highlighting for Keynote presentations
View gist:c813fa6d3317cb33d6583627920f706b

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@josejaguirre
josejaguirre / gist:840a89376ab71257ff224042c7c4f469
Created Aug 23, 2017 — forked from mtigas/gist:952344
Mini tutorial for configuring client-side SSL certificates.
View gist:840a89376ab71257ff224042c7c4f469

Client-side SSL

For excessively paranoid client authentication.

Using self-signed certificate.

Create a Certificate Authority root (which represents this server)

Organization & Common Name: Some human identifier for this server CA.

openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
@josejaguirre
josejaguirre / gist:792ba3782277ef7f22320a9b8a5a90ad
Last active Aug 23, 2017 — forked from mtigas/gist:952344
Mini tutorial for configuring client-side SSL certificates.
View gist:792ba3782277ef7f22320a9b8a5a90ad

Client-side SSL

For excessively paranoid client authentication.

Using self-signed certificate. (Crea el certificado para usar en el servidor: ca.crt)

Create a Certificate Authority root (which represents this server)

Organization & Common Name: Some human identifier for this server CA.

openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
You can’t perform that action at this time.