Add new data
This commit is contained in:
@@ -23,6 +23,4 @@
|
||||
### | |--------| 0-23 часы
|
||||
### | |
|
||||
### |----------| 0-59 минуты
|
||||
|
||||
```
|
||||
|
||||
|
12
docs/progs/ffmpeg.md
Normal file
12
docs/progs/ffmpeg.md
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
# FFmpeg
|
||||
|
||||
## Crop video to 720x520 begin from 0:280
|
||||
```bash
|
||||
ffi in.mov -vf "crop=720:520:0:280" -c:v libx264 -c:a copy -b:v 1200k out.mp4
|
||||
```
|
||||
|
||||
## Grab video from screen
|
||||
```bash
|
||||
ffmpeg -s 1920x1080 -framerate 10 -f x11grab -i :0 -qscale 6 out.mkv
|
||||
```
|
26
docs/progs/git.md
Normal file
26
docs/progs/git.md
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
# GIT
|
||||
|
||||
## Remote control
|
||||
```bash
|
||||
git remote -v
|
||||
git remote add origin https://site/repo.git
|
||||
git remote set-url origin https://site/repo.git
|
||||
```
|
||||
|
||||
## Config ~/.gitconfig
|
||||
```ini
|
||||
[user]
|
||||
email = user@gmail.com
|
||||
|
||||
[alias]
|
||||
aa = !git add -A && git status -v
|
||||
up = push
|
||||
st = status -v
|
||||
sta = status -v
|
||||
cam = commit -am
|
||||
last = log -1 HEAD
|
||||
|
||||
[safe]
|
||||
directory = /mnt/data/src
|
||||
```
|
@@ -1,4 +1,6 @@
|
||||
|
||||
# Kubernetes
|
||||
|
||||
```bash
|
||||
mkdir -p $HOME/.kube
|
||||
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
|
||||
|
@@ -1,3 +1,4 @@
|
||||
|
||||
# MC
|
||||
|
||||
## ~/.config/mc/ini
|
||||
|
@@ -1,10 +1,12 @@
|
||||
|
||||
# Connection start
|
||||
# NMCli
|
||||
|
||||
## Connection start
|
||||
```bash
|
||||
nmcli con up ens18
|
||||
```
|
||||
|
||||
# Connection modifity
|
||||
## Connection modifity
|
||||
```bash
|
||||
ifc=eth0 \
|
||||
nmcli con mod $ifc ipv4.addresses 172.16.23.56/24 && \
|
||||
@@ -16,12 +18,12 @@ nmcli con up $ifc restart && \
|
||||
true
|
||||
```
|
||||
|
||||
# Disable IPv6 for all
|
||||
## Disable IPv6 for all
|
||||
```
|
||||
nmcli con show | awk '{if(NR > 1) { print $1; system("nmcli con mod " $1 " ipv6.method disable"); } }'
|
||||
```
|
||||
|
||||
# Connection event
|
||||
## Connection event
|
||||
```bash
|
||||
#!/bin/bash
|
||||
|
||||
|
@@ -1,5 +1,8 @@
|
||||
|
||||
# PHP
|
||||
|
||||
## Set default timezone
|
||||
```
|
||||
|
||||
```bash
|
||||
printf '[Date]\ndate.timezone = Asia/Katmandu\n' > /etc/php.d/17-cmp-timezone.ini
|
||||
```
|
||||
|
@@ -1,4 +1,6 @@
|
||||
|
||||
# Socat
|
||||
|
||||
```bash
|
||||
socat PTY,link=/dev/vmodem0,echo=0,waitslave TCP:10.0.0.1:333
|
||||
```
|
||||
|
@@ -1,7 +1,8 @@
|
||||
|
||||
# SSH
|
||||
|
||||
## Generate public key from private
|
||||
```
|
||||
```bash
|
||||
ssh-keygen -f id_rsa -y > id_rsa.pub
|
||||
```
|
||||
|
||||
|
7
docs/progs/termux.md
Normal file
7
docs/progs/termux.md
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
# Termux
|
||||
|
||||
## Config ~/.termux/termux.properties
|
||||
```
|
||||
extra-keys = [['ESC','/','-','HOME','UP','END','PGUP'],['TAB','CTRL','ALT','LEFT','DOWN','RIGHT','PGDN']]
|
||||
```
|
Reference in New Issue
Block a user