Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
import subprocess | |
import os | |
import re | |
def search(string:str, pattern:str) -> bool: | |
x = re.search(pattern, string) | |
if x: | |
return True | |
return False |
#include "linked_list.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
list_t* new_list() { | |
list_t* ret = (list_t*) calloc(1, sizeof(list_t)); | |
if (!ret) { |
NeoMutt is an amazing TUI-based email client that can run
from within your terminal. It's lightweight, configurable and easily extendable. This
example is shown and configured for a basic Gmail
account that
requires 2-step authentication and can send encrypted messages with GnuPG.
The software listed and how it is installed is exemplified for an arch-based linux system.
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
If needed, set the keyboard layout with setxkbmap us
beforehand. Adjust the country to your device's configuration.
lsblk
to know what's the disk path to be partitioned.# Launches parted
sudo parted /dev/sda
ip link
to find the name of your wifi interface. Common names include wlan0
, wlp2s0
, wlx00e04c361e2
, etc.1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff