Pruebas de imágenes
En el archivo /etc/inputrc
aparecen estas líneas comentadas:
# alternate mappings for "page up" and "page down" to search the history
# "\e[5~": history-search-backward
# "\e[6~": history-search-forward
Para descomentarlas basta con teclear:
sed -i -re 's/^# ?(.*: ?history-search-.*)$/\1/g' /etc/inputrc
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
# WARNING : This gist in the current form is a collection of command examples. Please exercise caution where mentioned. | |
# Docker | |
sudo apt-get update | |
sudo apt-get remove docker docker-engine docker.io | |
sudo apt install docker.io | |
sudo systemctl start docker | |
sudo systemctl enable docker | |
docker --version |
- Abajo
- Izquierda
- Arriba
- Arriba
- Derecha
- Diagonal arriba/izquierda
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
# Documentación: | |
# https://learn.microsoft.com/en-us/previous-versions/windows/desktop/legacy/aa394428(v=vs.85) | |
# Creamos la copia | |
$shadow = (Get-WmiObject -List Win32_ShadowCopy).Create("C:\\", "ClientAccessible") | |
$shadow2 = Get-WmiObject Win32_ShadowCopy | Where-Object { $_.ID -eq $shadow.ShadowID } | |
$dispositivo = $shadow2.DeviceObject + "\\" | |
cmd /c mklink /d C:\shadowcopy "$dispositivo" | |
# Acceso a los datos desde C:\shadowcopy |
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
# /etc/systemd/system/getty@tty1.service.d/autologin.conf | |
# Tested on Debian 11 | |
[Service] | |
ExecStart= | |
# Replace 'user' with the username of your choice to enable automatic login | |
ExecStart=-/sbin/agetty --noclear --autologin user %I $TERM |
Prueba en línea:
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
[ | |
{ | |
"id": 1, | |
"video": "video1.mp4", | |
"img": "imagen1.jpg", | |
"url": "pruebas1" | |
}, | |
{ | |
"id": 2, | |
"video": "video2.mp4", |
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
{ | |
"content": [ | |
{ | |
"type": "TYPE", | |
"availableHostnames": [ | |
"host1", | |
"host2", | |
"host3", | |
"host4" | |
] |
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
input { | |
stdin { | |
codec => multiline { | |
pattern => "^\[%{MONTHDAY}-%{MONTH}-%{YEAR} %{TIME} %{TZ}\]" | |
negate => true | |
what => "previous" | |
auto_flush_interval => 10 | |
} | |
type => "php-error" | |
} |
NewerOlder