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
-- La cuenta A será cargada (se le quitará) y | |
-- la cuenta B será abonada (se le sumará) | |
-- Inicio de la transacción | |
BEGIN; | |
-- Cargando la cuenta A. | |
UPDATE cuentas SET saldo_cuenta = saldo_cuenta - monto WHERE nombre_cuenta = 'A'; | |
-- Abonando la cuenta B. |
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
chmod -R 700 /usr/local/pgsql/data | |
chown -R postgres /usr/local/pgsql/data |
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
#!/bin/bash | |
echo "deb http://httpredir.debian.org/debian/ stretch main contrib non-free" >> /etc/apt/sources.list | |
echo "deb http://http.debian.net/debian/ jessie main contrib non-free" >> /etc/apt/sources.list | |
apt-get update | |
apt-get install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms | |
sudo apt-get install broadcom-sta-dkms | |
apt-get upgrade | |
modprobe -r b44 b43 b43legacy ssb brcmsmac |
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
ip a a 193.144.44.78/24 dev eth0 | |
route add default gw 193.144.44.1 | |
# Already have cnx, but not DNS solving, so: | |
echo "nameserver 8.8.8.8" >> /etc/resolv.conf | |
echo "nameserver 8.8.4.4" >> /etc/resolv.conf | |
service network-manager restart |