$input =~ /^(?:(25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?1)$/;
grep -P '^(?:(25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?1)$' <<<"$input"
#!/bin/bash | |
# | |
# Generate Random MAC-address | |
# | |
# Locally administered: | |
# X2-XX-XX-XX-XX-XX | |
# X6-XX-XX-XX-XX-XX | |
# XA-XX-XX-XX-XX-XX | |
# XE-XX-XX-XX-XX-XX | |
# |
/* HTMLDocumentEditor.java | |
* @author: Charles Bell | |
* @version: May 27, 2002 | |
*/ | |
import java.awt.*; | |
import java.awt.event.*; | |
import java.io.*; | |
import javax.swing.*; |
Logueate en tu cuenta de Telegram desde https://my.telegram.org/
Ve a API Development tools
y de allí a Create new application
, crea una con cualquier cosa, y modifica en el script API ID
y API Hash
pip3 install telethon
All screen commands are prefixed by an escape key, by default Ctrl-a (that's Control-a, sometimes written ^a). To send a literal Ctrl-a to the programs in screen, use Ctrl-a a. This is useful when when working with screen within screen. For example Ctrl-a a n will move screen to a new window on the screen within screen.
Description | Command |
---|---|
Basic | |
Start a new session with session name | screen -S |
Action | tmux | screen |
---|---|---|
start a new session | tmux tmux new tmux new-session |
screen |
start a new session with a name | tmux new -s name | screen -S name |
re-attach a detached session | tmux attach tmux attach-session |
screen -r |
re-attach a detached session with a name | tmux attach -t name tmux a -t name |
screen -r name |
re-attach an attached session (detaching it from elsewhere) | tmux attach -dtmux attach-session -d | screen -dr |
#!/usr/bin/env python3 | |
# | |
# Decompressor/compressor for files in Mozilla's "mozLz4" format. Firefox uses this file format to | |
# compress e. g. bookmark backups (*.jsonlz4). | |
# | |
# This file format is in fact just plain LZ4 data with a custom header (magic number [8 bytes] and | |
# uncompressed file size [4 bytes, little endian]). | |
# | |
# This Python 3 script requires the LZ4 bindings for Python, see: https://pypi.python.org/pypi/lz4 | |
# |
To disable Web Push Notifications in Firefox, the following about:config must be set to false:
dom.webnotifications.enabled
dom.webnotifications.serviceworker.enabled
dom.push.connection.enabled
dom.push.enabled
Test Web Notifications:
#!/bin/bash | |
# Original Source: | |
# https://gist.github.com/ggrandes/72c2c1f41d28664cff2d73a5ad5c5d05 | |
# | |
# Sample Execution: | |
# nohup ./backup.sh vg1 root "--delete" 1>backup.log 2>&1 & tail -f backup.log | |
# Sample Params: | |
# vg1 root "--delete" | |
# vg1 kvm | |
LVM_VG="$1" |