This file contains hidden or 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
# mkdir /root/github_tvh | |
# cd github_tvh | |
# git clone https://github.com/tvheadend/tvheadend.git | |
# cd tvheadend | |
# pwd | |
/root/github_tvh/tvheadend | |
# ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info \ | |
--datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --prefix=/usr --datadir=/usr/share --enable-qsv | |
Checking support/features | |
checking for cc execinfo.h ... ok |
This file contains hidden or 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
# yum install -y openssl openssl-devel uriparser-devel dbus dbus-devel | |
# yum -y install epel-release | |
# yum -y install htop | |
# yum install -y intel-gpu-tools | |
# cd | |
# git clone https://github.com/tvheadend/tvheadend.git | |
# cd tvheadend | |
# ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --prefix=/usr --datadir=/usr/share --enable-qsv |
This file contains hidden or 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
// How to use: | |
// 1. Open "Script Editor" (requires OS X 10.10 Yosemite) | |
// 2. Change the language from "AppleScript" to "JavaScript" | |
// 3. Paste the code below and replace the safari example. | |
// | |
// More info: | |
// https://developer.apple.com/library/mac/releasenotes/InterapplicationCommunication/RN-JavaScriptForAutomation/index.html | |
var sys_events = Application("System Events"); |
This file contains hidden or 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 | |
# | |
# By Luispa (2022) | |
# | |
# Script para ser usado desde un cliente Telegraf, que permite averiguar el tamaño de los | |
# buckets (bases de datos) de InfluxDB. El típico caso de uso es cuando tenemos un servidor | |
# linux con e instalamos el cliente Telegraf para moniorizar precisamente cuanto ocupan | |
# dichos buckets en el disco duro. | |
# | |
# Este script debe mostrar los datos que monitoriza por su standard output y la |
This file contains hidden or 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 | |
# | |
# By Luispa (2022) | |
# | |
# Script para ser usado desde un cliente Telegraf en un HOST KVM para informar a influxdb | |
# del tamaño de sus discos de sus GUESTS. El caso de uso es en un linux Host con QEMU/KVM | |
# donde nos gustaría ver cuanto ocupa cada QCOW2 | |
# | |
# - capacity --> Tamaño máximo del disco del GUEST. Indica el tamaño máximo al que | |
# puede crecer el disco. Se estableción durante la creación de la VM. |
This file contains hidden or 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
## | |
## Fichero /etc/nanorc o ~/.nanorc de LuisPa | |
## Crear los directorios /root/.nano y /home/<tu usuario>/.nano | |
## | |
## Referencias: | |
## https://www.nano-editor.org | |
## | |
## Salvar el fichero al salir, equivale a ^S (Salvar) + ^Q (salir) | |
## Al pulsar ^Q salvará y saldrá !! |
This file contains hidden or 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
// LUISPA Versión con INTs | |
package Clusters; | |
public class Clusters { | |
private static final int LINEAS = 10; | |
private static final int COLUMNAS = 10; | |
public static void main(String[] args) { |
This file contains hidden or 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 | |
# | |
# Script "/usr/bin/e" que simplemente llama al editor nano | |
# escribiendo menos caracteres :-) | |
# | |
/usr/bin/nano "${*}" |
This file contains hidden or 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 | |
# By LuisPa 1998 | |
# confcat: quita las lineas con comentarios, muy util como sustituto | |
# a "cat" para ver contenido sin los comentarios. | |
# | |
grep -vh '^[[:space:]]*#' "$@" | grep -v '^//' | grep -v '^;' | grep -v '^$' | grep -v '^!' | grep -v '^--' |
This file contains hidden or 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 | |
# | |
# Script /usr/bin/s para cambiar al usuario root de forma rápida | |
# escribiendo menos caracteres :-) | |
# | |
/usr/bin/sudo -i | |