- Melhorias no ambiente
- Volocidade Magic Mouse
defaults write -g com.apple.mouse.scaling 2
| # Gunicorn | |
| # | |
| upstream my_app_name { | |
| server 127.0.0.1:9001; | |
| } | |
| # WWW redirect to non-www | |
| # | |
| server { |
| import os | |
| import pprint | |
| from subprocess import call | |
| try: | |
| from bitbucket.bitbucket import Bitbucket | |
| except: | |
| raise Exception('You need installl bitbucket api: $ pip install bitbucket-api') |
| { | |
| "cmd" : ["gcc $file -o ${file_base_name} && osascript -e 'tell application \"Terminal\" to activate' -e 'tell application \"Terminal\" to do script \"${file_path}/${file_base_name}\"'"], | |
| "selector" : "source.c", | |
| "shell":true, | |
| "working_dir" : "$file_path" | |
| } |
| # | |
| # My new theme :D | |
| # | |
| PROMPT='%~ %(!.#.$) ' |
| from datetime import datetime | |
| t1 = "09:30:00" | |
| t2 = "13:45:00" | |
| start_dt = datetime.strptime(t1, '%H:%M:%S') | |
| end_dt = datetime.strptime(t2, '%H:%M:%S') | |
| diff = (end_dt - start_dt) |
| #!/bin/env bash | |
| # Update packages | |
| apt-get update | |
| # Installing services | |
| echo "==============================" | |
| echo "Install web services" | |
| echo "==============================" | |
| apt-get -y install nginx supervisor |
| [ | |
| { | |
| "tema": "Desenvolvimento mobile por onde começar?", | |
| "autor": "Nonilton", | |
| "objetivo": "" | |
| }, | |
| { | |
| "tema" : "(RWD) Responsive Web Design: Por uma interface na medida", | |
| "autor": "Emmanuel", | |
| "objetivo": "O objetivo seria conscientizar os novos desenvolvedores da importância do desenvolvimento responsivo e tornar claro aos que pretendem iniciar na programação web que o RWD é um caminho sem volta." |
| #!/bin/sh | |
| git clone git://github.com/ry/node.git | |
| cd node | |
| ./configure --prefix=~/.local/usr | |
| make | |
| make install | |
| export npm_config_prefix=~/.local/usr && curl https://npmjs.org/install.sh | sh |