Skip to content

Instantly share code, notes, and snippets.

View oscargicast's full-sized avatar
🐍
To the infinity and beyond

Oscar oscargicast

🐍
To the infinity and beyond
View GitHub Profile
@oscargicast
oscargicast / init.md
Created March 15, 2014 08:06
Iniciando con django

mkdir tutorial-django cd tutorial-django

virtualenv venv source venv/bin/activate

mkdir src cd src

This document has now been incorporated into the uWSGI documentation:

http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html

Set up Django, nginx and uwsgi

Steps with explanations to set up a server using:

@oscargicast
oscargicast / vimrc.local
Last active August 29, 2015 14:02
local vim configuration using spf13
if $TERM == "xterm-256color"
set t_Co=256
endif
colorscheme jelleybeans
set guifont=Monaco:h12
let NERDTreeQuitOnOpen=0
map <C-J> <C-W>j
map <C-K> <C-W>k
#!/usr/bin/env python
import os
import shlex
import struct
import platform
import subprocess
def get_terminal_size():
""" getTerminalSize()
@oscargicast
oscargicast / example.py
Created June 9, 2014 09:55
simple example simplecv
import SimpleCV
camera = SimpleCV.Camera()
image = camera.getImage()
image.show()
@oscargicast
oscargicast / out
Created June 9, 2014 10:04
output when install SimpleCV, using a virtualenv called simplecv
running install
running bdist_egg
running egg_info
writing SimpleCV.egg-info/PKG-INFO
writing top-level names to SimpleCV.egg-info/top_level.txt
writing dependency_links to SimpleCV.egg-info/dependency_links.txt
writing entry points to SimpleCV.egg-info/entry_points.txt
reading manifest file 'SimpleCV.egg-info/SOURCES.txt'
writing manifest file 'SimpleCV.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@oscargicast
oscargicast / .zshrc
Last active August 29, 2015 14:04
zshrc
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="agnoster"
# Uncomment the following line to use case-sensitive completion.
@oscargicast
oscargicast / .zsh_profile.sh
Last active July 29, 2016 11:41
zsh_profile
# import aliases
if [ -f ~/.zsh_aliases ]; then
. ~/.zsh_aliases
fi
# set color
export TERM=xterm-256color
# print welcome message
python ~/.zsh/shascii/welcome.py
@oscargicast
oscargicast / .zsh_aliases.sh
Created November 17, 2014 17:55
.zsh_aliases
# play sound after command
alias s='aplay -q ~/.zsh/sounds/done.wav 2>/dev/null'
# virtualenv3
alias virtualenv3='virtualenv --python=python3'
# Django
alias pm='python manage.py'
alias pmr='python manage.py runserver'
alias pms='python manage.py shell'