Skip to content

Instantly share code, notes, and snippets.

View antoniotorres's full-sized avatar
💭
I may be slow to respond.

Antonio Torres antoniotorres

💭
I may be slow to respond.
View GitHub Profile
@antoniotorres
antoniotorres / monitores.js
Last active February 23, 2024 00:27
Algunos doctores cuentan más de un monitor y además pueden ser de grado médico. Para agilizar su flujo de trabajo, con estos doctores contamos con la funcionalidad de apertura automática del estudio para que se abra en el monitor que el médico nos indique. Este procedimiento es manual y requiere que estemos conectados a la computadora del médico…
const API_URL = "https://api.evacenter.com/graphql/";
function getCookieValue(name) {
let matches = document.cookie.match(new RegExp(
"(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"
));
return matches ? decodeURIComponent(matches[1]) : undefined;
}
async function fetchAPI(url, headers, body) {
@antoniotorres
antoniotorres / setup.sh
Last active March 15, 2024 23:28
Server Setup
#!/bin/bash
# This script updates system configurations for a PACS DCM Sync application.
while true; do
echo -n "¿Deseas actualizar los paquetes del sistema? (y/n): "
read update_choice
# Validate the user's choice for updating system packages.
case $update_choice in
sudo bash -c "$(curl -fsSL https://teleport.aguacate.link/scripts/8c97c05fb34ca51bb3798ba2c0e50702/install-node.sh)"
@antoniotorres
antoniotorres / WindowsTimeFixUTC.reg
Created November 25, 2017 19:37
Windows Fix Time when dual-booting with Linux
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001
@antoniotorres
antoniotorres / Practica10_Ejercicio_01.asm
Last active November 29, 2017 01:23
TE2024 - Laboratorio de Microcontroladores - Practica 10
RADIX DEC ; SET DECIMAL AS DEFAULT BASE
PROCESSOR 18F45K50 ; SET PROCESSOR TYPE
#INCLUDE <P18F45K50.INC>
;
; *** ONLY NEEDED FOR SOFTWARE SIMULATION ***
;
ORG 0 ; RESET VECTOR
GOTO 0X1000
;
@antoniotorres
antoniotorres / Practica09_Ejercicio_01.asm
Last active November 17, 2017 15:07
TE2024 - Laboratorio de Microcontroladores - Practica 09
RADIX DEC ; SET DECIMAL AS DEFAULT BASE
PROCESSOR 18F45K50 ; SET PROCESSOR TYPE
#INCLUDE <P18F45K50.INC>
; *** ONLY NEEDED FOR SOFTWARE SIMULATION ***
;
ORG 0 ; RESET VECTOR
GOTO 0X1000
;
ORG 0X08 ; HIGH INTERRUPT VECTOR
GOTO 0X1008
@antoniotorres
antoniotorres / Practica08_Ejercicio_01.asm
Last active November 5, 2017 02:20
TE2024 - Laboratorio de Microcontroladores - Practica 08
RADIX DEC ; SET DECIMAL AS DEFAULT BASE
PROCESSOR 18F45K50 ; SET PROCESSOR TYPE
#INCLUDE <P18F45K50.INC>
;
;
; VARIABLE'S DEFINITION SECTION
;
;
; *** ONLY NEEDED FOR SOFTWARE SIMULATION ***
@antoniotorres
antoniotorres / Practica07_Ejercicio_01.asm
Created November 2, 2017 02:20
TE2024 - Laboratorio de Microcontroladores - Practica 07
RADIX DEC ; SET DECIMAL AS DEFAULT BASE
PROCESSOR 18F45K50 ; SET PROCESSOR TYPE
#INCLUDE <P18F45K50.INC>
;
;
; VARIABLE'S DEFINITION SECTION
;
VAR1 EQU 200
VAR2 EQU 60
VALUE3 EQU 50
@antoniotorres
antoniotorres / Vector.h
Created March 10, 2017 01:00
Dynamic Arrays - Data Structure - TC1018
class Vector{
private:
double *pArr;
int iN;
public:
/*
* Description: Constructor with size 2
* Inputs:
* Output:
*/
#!/bin/bash
####################################
#
# Backup to NFS mount script.
#
####################################
# What to backup.
backup_files="/var/www"