Skip to content

Instantly share code, notes, and snippets.

View soncco's full-sized avatar
🏠
Working from home

Braulio Soncco soncco

🏠
Working from home
View GitHub Profile
@soncco
soncco / hack.coffee
Created February 4, 2016 13:44
Bootstrap Drupal hardcode hack for search
# Search Hack.
$search = $('#search-block-form', context)
$search
.removeAttr('id')
$first = $search.find('div:first-child')
$($first.html()).appendTo($search)
$first.remove()
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
create user 'user'@'localhost' IDENTIFIED BY 'pass';
GRANT ALL PRIVILEGES ON db.* TO 'user'@'localhost';
sudo npm cache clean -f
sudo npm install -g n
sudo n 6.11.0
um gt 139
prd gt 247810
@soncco
soncco / views.py
Created May 17, 2024 21:13
Crear expediente
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