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
exports = async function(payload, response){ | |
const { q } = payload.query; | |
let searchTerm = ""; | |
let query = {}; | |
let findResult; | |
if (typeof q !== 'undefined' && q !== "") { | |
searchTerm = q; |
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
exports = async function(payload, response){ | |
const { q } = payload.query; | |
const mongodb = context.services.get("mongodb-atlas"); | |
const serviciosCollection = mongodb.db("referencias").collection("Servicios"); | |
var findResult; | |
try { |
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
-- Inserción Datos en SQL Lite | |
INSERT INTO Ciudades VALUES | |
(76001, "Cali"), | |
(5001, "Medellin"), | |
(10001, "Bogota"), | |
(8001, "Barranquillas"), | |
(13001, "Cartagena") | |
; | |
INSERT INTO Clientes VALUES |
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
-- Código para Creación de Tablas en SQL Lite | |
CREATE TABLE "Ciudades" ( | |
"IdCiudad" INTEGER NOT NULL, | |
"Ciudad" TEXT, | |
PRIMARY KEY("IdCiudad") | |
);; | |
CREATE TABLE "Clientes" ( | |
"NIT_Cliente" INTEGER NOT NULL UNIQUE, | |
"Nombre" TEXT, |
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
Import-Csv .\Users.csv | foreach-object { | |
New-ADUser ` | |
-SamAccountName $_.SamAccountName ` | |
-UserPrincipalName $_.userPrincipalName ` | |
-Name $_.name ` | |
-DisplayName $_.name ` | |
-GivenName $_.GivenName ` | |
-Surname $_.SurName ` | |
-Company $_.Company ` | |
-Path $_.OU ` |
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
############################################################ | |
### ### | |
### Crear Unidades Organizativas ### | |
### ### | |
############################################################ | |
#Crear Unidad Organizativa en la raiz del Dominio | |
New-ADOrganizationalUnit -Name Hospital | |
#Crear Unidad Organizativa Remotos dentro de la OU Hospital |
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
############################################################ | |
### ### | |
### Instalar Rol de Active Directory Domain Services ### | |
### ### | |
############################################################ | |
Install-WindowsFeature AD-Domain-Services -IncludeAllSubFeature -IncludeManagementTools | |
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
######################################################## | |
### ### | |
### Prerrequisitos Instalacion Directorio Activo ### | |
### ### | |
######################################################## | |
### __ Identificar Tarjeta de Red Principal ___ ### | |
### _______________________________________________ ### | |
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
# Cambiar nombre del Servidor | |
$NewName = "SERVIDOR01" | |
Rename-Computer -ComputerName localhost -NewName $NewName -Restart |
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
'103108352', INSULINA GLARGINA 1000UI/10ML LANTUSS | |
'103108359', INSULINA GLARGINA 100UI/ML LANTUSS CADA UNIDAD | |
'10318351', INSULINA GLARGINA 300UI /3ML LANTUS LAPICERO | |
'103108353', INSULINA GLULISINA 1000UI/10ML APIDRA | |
'103108354', INSULINA GLULISINA 300UI/3ML APIDRA LAPICERO | |
'103108356', INSULINA GLUSINA 100UI/ML APIDRA CADA UNIDAD | |
'103108357', INSULINA HUMANA NPH 100 UI/ML HUMULIN LILLY CADA UNIDAD | |
'103108365', INSULINA HUMANA NPH 1000 UI/10ML | |
'103108385', INSULINA ZINC CRISTALINA O REGULAR 1000 UI/10ML | |
'103108358' INSULINA ZINC CRISTALINA O REGULAR CADA UNIDAD |