Install portaudio using homebrew (or method of your choice)
brew install portaudio
create $HOME/.pydistutils.cfg using the include
and lib
directories of your portaudio install:
[build_ext]
Mac OSX Issue | |
When the Iterm throws the following error: | |
/usr/local/libexec/git-core/git-pull: line 11: git-sh-setup: No such file or directory | |
Do this: | |
/usr/bin/login -f <your user name> |
#!/bin/bash | |
git branch <new-branch> <origin-branch> | |
git checkout <new-branch> | |
echo "my new changes from <new-branch>" >> hello_world.txt | |
git add . | |
git commit -m "first commit for my new feature" |
<?php | |
// Importamos la clase PHPExcel | |
App::import('Vendor', 'Classes/PHPExcel'); | |
$locale = 'es'; | |
$validLocale = PHPExcel_Settings::setLocale($locale); | |
if (!$validLocale) { | |
echo 'Unable to set locale to '.$locale." - reverting to en_us<br />\n"; | |
} |
public function readExcel(){ | |
// Include PHPExcel_IOFactory | |
App::import('Vendor', 'Classes/PHPExcel'); | |
$inputFileName = "../Vendor/phpExcel/docs/vacas-empleados.xlsx"; | |
// Read your Excel workbook |
server { | |
listen 80; | |
server_name server_name; | |
location / { | |
proxy_set_header Host $host; | |
proxy_set_header X-REAL-IP $remote_addr; | |
proxy_pass http://host:port/; | |
proxy_buffering off; | |
} |
1.- ssh into the vps | |
2.- create a new virtualenv | |
3.- clone the repository | |
4.- install the needed dependencies (through the requeriments file) | |
5.- check the database connection and then migrate the models | |
6.- config static folder and collectstatic | |
6.- configure gunicorn/supervisord | |
7.- configure nginx reverse proxy |
After install postgresql on mac os x, generally you need to do the following things: | |
you need to replace the /usr/lib/libpq.5.dylib library because its version is too old. | |
Here's my solution to this problem: | |
$ sudo mv /usr/lib/libpq.5.dylib /usr/lib/libpq.5.dylib.old | |
$ sudo ln -s /Library/PostgreSQL/9.4/lib/libpq.5.dylib /usr/lib |
server { | |
listen 443; | |
ssl on; | |
ssl_certificate /etc/nginx/ssl/server.crt; | |
ssl_certificate_key /etc/nginx/ssl/server.key; | |
server_name phpmyadmin.example.loc; | |
root /var/www/vhosts/pma/; | |
index index.php; |
brew install autoconf | |
brew install automake | |
brew install libtool | |
brew install apple-gcc42 | |
brew install libyaml | |
brew install libxslt | |
brew install libksba | |
brew install openssl |
Install portaudio using homebrew (or method of your choice)
brew install portaudio
create $HOME/.pydistutils.cfg using the include
and lib
directories of your portaudio install:
[build_ext]