Skip to content

Instantly share code, notes, and snippets.

View adriasir123's full-sized avatar
👽

Adrián Jaramillo Rodríguez adriasir123

👽
View GitHub Profile
@adriasir123
adriasir123 / gist:ba84ee8bae04e280229cd45d584190b9
Created November 6, 2022 22:11
Output del script de virtualización cuando todo está creado
atlas@olympus  ~/script-virtualizacion   main  ./script.sh
+------------------------------------------+
| Sun 6 Nov 23:08:58 CET 2022 |
| 💀💀💀💀 |
| 👽👽👽 Script de Adrián Jaramillo 👽👽👽 |
+------------------------------------------+
+------------------------------------------+
| Sun 6 Nov 23:09:00 CET 2022 |
| 💀💀💀💀 |
| Ya existe el volumen maquina1.qcow2 |
@adriasir123
adriasir123 / gist:dc9d3330cf0b95600180f7c5148396bf
Created November 6, 2022 21:48
Output del script de virtualización cuando no tenemos nada creado
atlas@olympus  ~/script-virtualizacion   main  ./script.sh
+------------------------------------------+
| Sun 6 Nov 22:32:13 CET 2022 |
| 💀💀💀💀 |
| 👽👽👽 Script de Adrián Jaramillo 👽👽👽 |
+------------------------------------------+
+------------------------------------------+
| Sun 6 Nov 22:32:15 CET 2022 |
| 💀💀💀💀 |
| Creando volumen ligero maquina1.qcow2 |
atlas@olympus  ~  cat /proc/modules
xt_CHECKSUM 16384 1 - Live 0x0000000000000000
xt_MASQUERADE 20480 3 - Live 0x0000000000000000
xt_conntrack 16384 1 - Live 0x0000000000000000
ipt_REJECT 16384 2 - Live 0x0000000000000000
nf_reject_ipv4 16384 1 ipt_REJECT, Live 0x0000000000000000
xt_tcpudp 20480 9 - Live 0x0000000000000000
nft_compat 20480 16 - Live 0x0000000000000000
nft_chain_nat 16384 2 - Live 0x0000000000000000
nf_nat 57344 2 xt_MASQUERADE,nft_chain_nat, Live 0x0000000000000000
atlas@olympus  ~/script-virtualizacion   main ±  lsmod
Module Size Used by
vhost_net 36864 0
vhost 57344 1 vhost_net
vhost_iotlb 16384 1 vhost
tap 28672 1 vhost_net
tun 61440 1 vhost_net
xt_CHECKSUM 16384 3
xt_MASQUERADE 20480 9
xt_conntrack 16384 3
@adriasir123
adriasir123 / gist:bfd22429bf7da069b65b4d049119812c
Created October 31, 2022 02:08
sudo apt upgrade *openssh* SIN CONFIRMAR
vagrant@paqueteria:~$ sudo apt upgrade *openssh*
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'openssh-client' for glob '*openssh*'
Note, selecting 'lxqt-openssh-askpass-l10n' for glob '*openssh*'
Note, selecting 'openssh-known-hosts' for glob '*openssh*'
Note, selecting 'openssh-tests' for glob '*openssh*'
Note, selecting 'lxqt-openssh-askpass' for glob '*openssh*'
Note, selecting 'libnet-openssh-parallel-perl' for glob '*openssh*'
@adriasir123
adriasir123 / gist:9c3b7c4e356851dce9f0c6bcc942f04e
Created October 31, 2022 00:39
sudo apt update && sudo apt dist-upgrade -y
vagrant@paqueteria:~$ sudo apt update && sudo apt dist-upgrade -y
Get:1 https://security.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:2 https://deb.debian.org/debian bullseye InRelease [116 kB]
Get:3 https://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 https://deb.debian.org/debian bullseye-backports InRelease [49.0 kB]
Get:5 https://security.debian.org/debian-security bullseye-security/main Sources [167 kB]
Get:6 https://security.debian.org/debian-security bullseye-security/main amd64 Packages [193 kB]
Get:7 https://security.debian.org/debian-security bullseye-security/main Translation-en [122 kB]
Get:8 https://deb.debian.org/debian bullseye/main Sources [8633 kB]
Get:9 https://deb.debian.org/debian bullseye/main amd64 Packages [8184 kB]
@adriasir123
adriasir123 / gist:004ec6396a998c4edd9d57d3a2fdd8af
Created October 31, 2022 00:33
sudo apt update && sudo apt upgrade -y
vagrant@paqueteria:~$ sudo apt update && sudo apt upgrade -y
Get:1 https://security.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:2 https://deb.debian.org/debian bullseye InRelease [116 kB]
Get:3 https://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 https://deb.debian.org/debian bullseye-backports InRelease [49.0 kB]
Get:5 https://security.debian.org/debian-security bullseye-security/main Sources [167 kB]
Get:6 https://security.debian.org/debian-security bullseye-security/main amd64 Packages [193 kB]
Get:7 https://deb.debian.org/debian bullseye/main Sources [8633 kB]
Get:8 https://security.debian.org/debian-security bullseye-security/main Translation-en [122 kB]
Get:9 https://deb.debian.org/debian bullseye/main amd64 Packages [8184 kB]
@adriasir123
adriasir123 / gist:75467379823af48957506b11db3b0c16
Created October 30, 2022 19:41
apt-cache showpkg openssh-client OUTPUT
vagrant@paqueteria:~$ apt-cache showpkg openssh-client
Package: openssh-client
Versions:
1:8.4p1-5+deb11u1 (/var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_main_binary-amd64_Packages) (/var/lib/dpkg/status)
Description Language:
File: /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_main_binary-amd64_Packages
MD5: 8cde3280ebad71c16b3e8c661dae6c6d
Description Language: en
File: /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_main_i18n_Translation-en
MD5: 8cde3280ebad71c16b3e8c661dae6c6d
@adriasir123
adriasir123 / gist:5cd2ec8d56974b6ae0d283243f6d5f41
Created October 27, 2022 15:55
Output of BIBLIOFILOS_ADMIN privileges in Oracle
SQL> select * from dba_sys_privs where grantee = 'BIBLIOFILOS_ADMIN';
GRANTEE PRIVILEGE ADM COM INH
----------------- ---------------------------------------- --- --- ---
BIBLIOFILOS_ADMIN CREATE ANALYTIC VIEW NO YES NO
BIBLIOFILOS_ADMIN ALTER ANY CUBE BUILD PROCESS NO YES NO
BIBLIOFILOS_ADMIN CREATE LOCKDOWN PROFILE NO YES NO
BIBLIOFILOS_ADMIN EM EXPRESS CONNECT NO YES NO
BIBLIOFILOS_ADMIN DROP ANY SQL TRANSLATION PROFILE NO YES NO
BIBLIOFILOS_ADMIN UPDATE ANY CUBE DIMENSION NO YES NO
@adriasir123
adriasir123 / oracledb_ORCLCDB-19c
Created October 26, 2022 15:45
Config file modified needed to compile Oracle 19c on Debian 11
#!/bin/bash
#
# chkconfig: 2345 80 05
# Description: This script is responsible for taking care of configuring the Oracle Database and its associated services.
#
# processname: oracledb_ORCLCDB-19c
# Red Hat or SuSE config: /etc/sysconfig/oracledb_ORCLCDB-19c
#
# Set path if path not set