Skip to content

Instantly share code, notes, and snippets.

View paulpwo's full-sized avatar

Paul Osinga paulpwo

View GitHub Profile
@paulpwo
paulpwo / alacritty_nerd_font.sh
Last active February 19, 2023 20:10
Usando Alacritty en Mac M1 como sustituro de iTerm (https://alacritty.org/)
# INSTALL NERD FONT
# FROM : https://gist.github.com/davidteren/898f2dcccd42d9f8680ec69a3a5d350e
brew tap homebrew/cask-fonts && brew install --cask font-hack-nerd-font
brew install --cask alacritty
# CREATE CONFIGURATION YML
vim ~/.config/alacritty/alacritty.yml
@paulpwo
paulpwo / gist:e2f839a8736965d67af0bf8ca75511da
Last active June 13, 2021 20:14
Django | Migrar SQLite y postgres

**Step 1:

Make a backup of your project (It does not hurt to prevent any eventuality)

**Step 2:

Run a data export. Directly Django provides the mechanism. The method that did not give me problems was the following:

python manage.py dumpdata --natural-foreign --natural-primary --format = xml --indent = 2> fixture.xml
@paulpwo
paulpwo / posbox.sh
Created January 30, 2020 20:22
posbox.sh
#!/usr/bin/env bash
PKGS_TO_INSTALL="cups adduser postgresql-client python python-dateutil python-decorator python-docutils python-feedparser python-imaging python-jinja2 python-ldap python-libxslt1 python-lxml python-mako python-mock python-openid python-passlib python-psutil python-psycopg2 python-babel python-pychart python-pydot python-pyparsing python-pypdf2 python-reportlab python-requests python-tz python-vatnumber python-vobject python-werkzeug python-xlwt python-yaml postgresql python-gevent python-serial python-pip python-dev localepurge vim mc mg screen iw hostapd isc-dhcp-server git rsync console-data"
apt-get -y install ${PKGS_TO_INSTALL}
adduser pi -s /sbin/nologin -p 'raspberry'
cd /home/pi
git clone -b 12.0 --no-checkout --depth 1 https://github.com/odoo/odoo.git
cd odoo
@paulpwo
paulpwo / ubuntu-server-setup-16.04-LAMP.md
Created April 9, 2018 00:26 — forked from Otienoh/ubuntu-server-setup-16.04-LAMP.md
LAMP Server setup for Ubuntu 16.04 on Digital Ocean

Server setup for Ubuntu 16.04 on Digital Ocean

The setup installs the following software:

The setup installs the following software:

  • Apache
  • MySQL
  • PHP
  • Node
@paulpwo
paulpwo / slim3-skeleton-blade_.gitignore
Created April 7, 2016 18:19
Slim Framework 3 Skeleton Application with blade templates
/vendor/
.idea/
.idea_app-manager2.iml
.idea_misc.xml
.idea_workspace.xml
composer.lock
/logs/*
!/logs/README.md
# Created by https://www.gitignore.io/api/phpstorm
@paulpwo
paulpwo / slim3-skeleton-blade_.gitignore
Created April 7, 2016 18:17
Slim Framework 3 Skeleton Application with blade templates
/vendor/
.idea/
.idea_app-manager2.iml
.idea_misc.xml
.idea_workspace.xml
composer.lock
/logs/*
!/logs/README.md
# Created by https://www.gitignore.io/api/phpstorm
@paulpwo
paulpwo / slim3-skeleton-blade_.gitignore
Created April 7, 2016 18:15
Slim Framework 3 Skeleton Application with blade templates
/vendor/
.idea/
.idea_app-manager2.iml
.idea_misc.xml
.idea_workspace.xml
composer.lock
/logs/*
!/logs/README.md
@paulpwo
paulpwo / slim3-skeleton-blade_.gitignore
Created April 7, 2016 18:09
Slim Framework 3 Skeleton Application with blade templates
/vendor/
.idea/
.idea_app-manager2.iml
.idea_misc.xml
.idea_workspace.xml
composer.lock
/logs/*
!/logs/README.md
@paulpwo
paulpwo / slim3-skeleton-blade_.gitignore
Created April 7, 2016 18:02
Slim Framework 3 Skeleton Application with blade templates
/vendor/
.idea/
/logs/*
!/logs/README.md
@paulpwo
paulpwo / app-manager2_.gitignore
Created April 7, 2016 17:50
skeleton SlimFramework 3 with "slim/slim-skeleton" and "hiropeke/slim-blade-view" prepared for function blade templates
/vendor/
/logs/*
!/logs/README.md