This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Search Hack. | |
$search = $('#search-block-form', context) | |
$search | |
.removeAttr('id') | |
$first = $search.find('div:first-child') | |
$($first.html()).appendTo($search) | |
$first.remove() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd public/sitio | |
drush dl drupal | |
# Descargará una carpeta algo asi drupal-7.42 | |
cp -pax drupal-7.42/. web | |
cd web | |
drush updb -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create user 'user'@'localhost' IDENTIFIED BY 'pass'; | |
GRANT ALL PRIVILEGES ON db.* TO 'user'@'localhost'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo npm cache clean -f | |
sudo npm install -g n | |
sudo n 6.11.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
um gt 139 | |
prd gt 247810 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.shortcuts import render | |
from django.http import HttpResponseRedirect | |
from rest_framework.decorators import api_view | |
from rest_framework.response import Response | |
from rest_framework import status | |
from datetime import datetime | |
from tramite.models import Expediente, DestinoDocumento, EstadoDestinoDocumento |
OlderNewer