domingo, 24 de enero de 2021

miércoles, 22 de enero de 2020

Convert Amp to Watts

Creditos: https://www.rapidtables.com/convert/electric/1-amp-to-watt.html

How to convert 1 amp to watts

How to convert electric current of 1 amp (A) to electric power in watts (W).
You can calculate (but not convert) the watts from amps and volts:

1A to watts calculation with voltage of 12V DC

For DC power supply, watts are equal to amps times volts.
watts = amps × volts
watts = 1A × 12V = 12W

1A to watts calculation with voltage of 120V AC

For AC power supply, watts are equal to the power factor times amps times volts.
watts = PF × amps × volts
For resistive load without inductors or capacitors, the power factor is equal to 1:
watts = 1 × 1A × 120V = 120W
For inductive load (like induction motor), the power factor can be approximately equal to 0.8:
watts = 0.8 × 1A × 120V = 96W

1A to watts calculation with voltage of 230V AC

For AC power supply, watts are equal to the power factor times amps times volts.
watts = PF × amps × volts
For resistive load without inductors or capacitors, the power factor is equal to 1:
watts = 1 × 1A × 230V = 230W
For inductive load (like induction motor), the power factor can be approximately equal to 0.8:
watts = 0.8 × 1A × 230V = 184W

viernes, 28 de junio de 2019

Asterisk SIP & IAX2 Reload CRONTAB


En consola del Linux entramos a:

# cd /etc/cron.daily

Creamos script para recargar SIP y IAX2

# nano sip_iax_reload y adicionamos lo siguiente:

#!/bin/bash
/usr/sbin/asterisk -rx "sip reload"
/usr/sbin/asterisk -rx "iax2 reload"
# you may need to change full path to the Asterisk binary

 
Asignamos permisos de Ejecución

# chmod 755 sip_iax_reload


Mikrotik Bandwidth Test

Fuente: https://forum.mikrotik.com/viewtopic.php?t=145303





En Consola de Mikrotik

/tool bandwidth-test 87.121.0.45 user=neterra password=neterra direction=both

q para terminar

lunes, 20 de junio de 2016

Captura de Paquetes


tethereal -a duration:10000 -i eth0 -f "host 192.168.10.10"

jueves, 5 de mayo de 2016

Mikrotik - Blockeo de Videos Youtube

Fuente: http://www.ryohnosuke.com/foros/index.php?threads/14042/


Limitar ancho de banda por contenido en Mikrotik

Ejemplo con Videos de Youtube


/ip firewall mangle

add action=mark-connection chain=prerouting comment="Block Youtube" content=\ youtube new-connection-mark=youkill passthrough=yes
add action=mark-packet chain=prerouting connection-mark=youkill \ new-packet-mark=youdown passthrough=no

/queue tree

add limit-at=1k max-limit=1k name=you_bad packet-mark=youdown parent=LAN03 queue=default




Esto limita la carga de videos " MUY LENTA "

lunes, 10 de agosto de 2015

Generar Claves SSH

Fuente: https://www.digitalocean.com/community/tutorials/how-to-use-ssh-keys-with-digitalocean-droplets

Create the RSA Key Pair

The first step is to create the key pair on the client machine (there is a good chance that this will just be your computer):


ssh-keygen -t rsa
 
 
 

Copy to Server

cat ~/.ssh/id_rsa.pub | ssh root@[your.ip.address.here] "cat >> ~/.ssh/authorized_keys"