Skip to content

Instantly share code, notes, and snippets.

View erickdsama's full-sized avatar
🕳️

Erick Samaniego erickdsama

🕳️
View GitHub Profile
@erickdsama
erickdsama / restore.py
Last active February 28, 2025 15:03
Restore database with the last backup in develop
import math
import os
import subprocess
import sys
import time
import boto3
BUCKET = 'erpnext-backups-zeb'
import requests
import json
banks = ["ABC CAPITAL, S.A. INSTITUCISN DE BANCA MULTIPLE",
"AMERICAN EXPRESS",
"BANAMEX",
"BANCA AFIRME, S.A.",
"BANCA CREMI, S.A.",
"BANCA MIFEL, S.A.",
"BANCA SERFIN, S.A.",
[
{
"name": "ACC-SINV-2022-a9640090",
"order_types": "D2C Carga inicial",
"uuid": "49A6C075-C363-4B6E-8AD1-BE94472155D4",
"status": "Vigente",
"issuing_rfc": "KCA150708KVA",
"customer_rfc": "XAXX010101000",
"emitted_date": "2022-04-21T15:41:10",
"amount": 22901,
from pokemon.application.model import TourData
from pokemon.domain.exceptions import WrongKantoLocation
from pokemon.domain.model import AreaData, LocationData, TourResponse
from pokemon.domain.repository import AbstractPokemonAdapter
class PokemonTourService:
def __init__(self, adapter: AbstractPokemonAdapter):
self.adapter = adapter
import json
import os
from bs4 import BeautifulSoup
from requests import Session
session = Session()
from requests import post
(function(Bo){typeof define=="function"&&define.amd?define(Bo):Bo()})(function(){"use strict";var Tz=Object.defineProperty;var kz=(Bo,Vo,Ru)=>Vo in Bo?Tz(Bo,Vo,{enumerable:!0,configurable:!0,writable:!0,value:Ru}):Bo[Vo]=Ru;var wn=(Bo,Vo,Ru)=>kz(Bo,typeof Vo!="symbol"?Vo+"":Vo,Ru);function Bo(c,u){for(var d=0;d<u.length;d++){const h=u[d];if(typeof h!="string"&&!Array.isArray(h)){for(const g in h)if(g!=="default"&&!(g in c)){const E=Object.getOwnPropertyDescriptor(h,g);E&&Object.defineProperty(c,g,E.get?E:{enumerable:!0,get:()=>h[g]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}function Vo(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var Ru={exports:{}},Od={},av={exports:{}},Rt={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var _1;functio