Skip to content

Instantly share code, notes, and snippets.

View abracu's full-sized avatar
🎯
Focusing

Alfredo Bravo Cuero abracu

🎯
Focusing
View GitHub Profile
-Instalacion
1- sudo apt-get update
2- gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
4- sudo apt-get install curl
5- \curl -L https://get.rvm.io | bash -s stable --ruby
6- source ~/.rvm/scripts/rvm
7- gem install rubygems-update
8- update_rubygems
9- gem install rails
10- sudo apt-get install nodejs
COMANDOS POSTGRESQL
- Instalar Postgresql en Ubuntu
sudo apt-get install postgresql
- Instalar una libreria para desarrollo
sudo apt-get install libpq-dev
- Ingresar con usuario a Postgres
psql -U username -W -h licalhost basename
@abracu
abracu / gist:ea373d6d01ce442fefa5
Last active February 24, 2023 02:49
Algoritmos Resueltos
ALGORITMOS RESUELTOS
--------------------------------------------------------------------------
T1.GIF TEMA 1
--------------------------------------------------------------------------
Bucles y tomas de decision
--------------------------------------------------------------------------
1.-Hacer un pseudocodigo que imprima los numeros del 1 al 100.
Hacer que la MAC Hable
-> say loque quieras que diga
Juegos Clasicos
ls /usr/share/emacs/22.1 /lisp/play
emacs
Presionamos (ESC) x y el nombre del juego que quieras
NOta: Para saber tu emacs escribe este codigo en la terminal cd /usr/share/emacs/ presionas enter, despues escribe ls
This is a super simple service for generating different HTTP codes.
It's useful for testing how your own scripts deal with varying responses.
Just add the status code you want to the URL, like this: httpstat.us/200
We'll return a response like this:
HTTP/1.1 {status code} {status description}
Content-Type: text/plain
Content-Length: {something}
Sitio web de Emmet: http://emmet.io/
Documentación de Emmet: http://docs.emmet.io/
1. html:5
2. header>nav>ul>li>*5>a:link
3. section.miClase#miId
4. a:link
5. section{Contenido del Section}
6. section[title="contenido del title"]{Contenido del Section}
7. header>nav>ul>li>*5>a:link[target="_blank"]{Menu #$}
@abracu
abracu / gist:b515b0e6cbb2d7b12e0953e533fbb665
Last active February 6, 2018 00:41
GENERADOR GROW-PHP FRAMEWORK
====================== AYUDA =======================
La siguiente lista representa las combinaciones posibles.
IMPORTANTE: Los campos entre [] para las tablas en la base de datos no pueden contener espacios.
Modelo:
- php gen.php m Nombre
Modelo y Tabla en Base de Datos:
@abracu
abracu / Operaciones-Git
Created December 28, 2017 03:14 — forked from jelcaf/Operaciones-Git
Git Tips - Mini-trucos de Git para facilitarme la tarea
#############################################
# Push de la rama actual
git push origin $rama_actual
#############################################
# Volver a un commit anterior, descartando los cambios
git reset --HARD $SHA1
#############################################
# Ver y descargar Ramas remotas
@abracu
abracu / gist:71b10a3c0d397f3c53d9ed44ba653b22
Last active May 11, 2018 18:59
Instalación Ubuntu 16.04
apt-get update && apt-get upgrade
apt-get install apache2
systemctl enable apache2
apt-get install mysql-server
mysql_secure_installation
systemctl enable mysql
apt-get install php7.0 libapache2-mod-php7.0 php7.0-mysql
sudo apt-get install php7.0-mcrypt php7.0-curl php7.0-gd php7.0-imap php7.0-mbstring php7.0-mcrypt
systemctl restart apache2
apt-get install leafpad
@abracu
abracu / Odoo
Last active July 6, 2022 19:35
Instalar para correr CLI
- sudo apt install mono-runtime
Ruta de Instalacion Ubuntu
- cd /usr/lib/python3/dist-packages/odoo
Modulos e Instalaciones
- /usr/lib/python3/dist-packages/odoo/addons
Crear Scaffold de Modulo Odoo