Skip to content

Instantly share code, notes, and snippets.

View ceccillia's full-sized avatar
🎯
v_potoke

SSS_class_gOD_m0DE ceccillia

🎯
v_potoke
  • anteiku
  • Russia
  • 05:29 (UTC +03:00)
View GitHub Profile

rsyslog.conf

module(load="omprog")

action(
    type="omprog"
    binary="/usr/local/bin/process_logs.py"
    template="RSYSLOG_TraditionalFileFormat"
    confirmMessages="off"
    output="/var/log/process_logs_output.log"
@ceccillia
ceccillia / docker_rus.md
Created June 19, 2024 10:48 — forked from wtw24/docker_rus.md
Шпаргалка с командами Docker

Шпаргалка с командами Docker

1552317264965 1552317537397 1552317711879

1552318467562 1552318531067 1552318577900 1552318614839

@ceccillia
ceccillia / Ubuntu22.04.md
Created September 18, 2023 09:54
Set static IP ubuntu22.04

Configuring Static IP Addresses With Networkd

To configure a static IP address using the new NetPlan tool, the file should look like this: IPv4 address (192.168.1.212), Gateway (192.168.1.2), DNS Servers (8.8.8.8,8.8.4.4)

Run the commands below to create a new network configuration file

sudo vi /etc/netplan/01-netcfg.yaml

Then configure IPv4 addresses as shown below… take notes of the format the lines are written…

@ceccillia
ceccillia / Git conflict resolve.md
Created September 1, 2023 04:40
Git conflict resolve

Решение конфликта Git:

  • Желательно, чтобы status был чистым
  • Посмотреть разницу git diff --name-only master feature
  • Посмотреть где ветки разошлись: git merge-base origin/master origin/feature
@ceccillia
ceccillia / Firewall-cmd.txt
Created August 28, 2023 07:32
Firewall-cmd rich-rules
Ниже расскажу как добавить и удалить rich правила, добавить для конкретного IP разрешение на подключение к порту 80:
firewall-cmd --permanent --zone=public --add-rich-rule="rule family="ipv4" source address="192.168.1.7" port protocol="tcp" port="80" accept"
Удаление:
firewall-cmd --permanent --zone=public --remove-rich-rule="rule family="ipv4" source address="192.168.1.7" port protocol="tcp" port="80" accept"
Просмотр правил:
firewall-cmd --list-rich-rules
После примененения команд с параметром permanent, необходимо совершать:
firewall-cmd --reload
Если необходимо создать правила для подсети, то достаточно указать источник так:
source address="192.168.1.0/24"
@ceccillia
ceccillia / Fast way to start systemd python service
Last active July 21, 2023 20:53
Simply instruction for unix
1. Install venv
apt-get install python3-venv
2. Create venv
python3 -m venv venv_name
3. Enable venv
. /VENV_PATH/bin/activate
4. Create python file

cURL

Command Description
 curl -h cURL help menu
 curl inlanefreight.com Basic GET request
 curl -s -O inlanefreight.com/index.html Download file
 curl -k https://inlanefreight.com Skip HTTPS (SSL) certificate validation
 curl inlanefreight.com -v Print full HTTP request/response details
 curl -I https://www.inlanefreight.com Send HEAD request (only prints response headers)
@ceccillia
ceccillia / google_cloud_debian_to_kali.md
Last active October 1, 2022 11:32 — forked from incogbyte/google_cloud_debian_to_kali.md
Convert Debian 10 or Ubuntu > 12 to Kali Linux on Google Cloud or Any Debian

Convert Debian 10 to Kali Linux on Google Cloud or Any Debian

After you create an account on Google Cloud, and create your VPS using Debian 10, follow the below guide to convert your Debian to Kali Linux Latest Version:

Convert Debian to Kali:

Step 1:

apt-get update -y && apt-get full-upgrade -y && apt-get dist-upgrade -y && apt autoremove -y && apt autoclean