Skip to content

Instantly share code, notes, and snippets.

View sandikata's full-sized avatar

Росен Александров sandikata

View GitHub Profile
Computer Information:
Manufacturer: Micro-Star International Co., Ltd.
Model: MPG X570 GAMING PLUS (MS-7C37)
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 7 5800X 8-Core Processor
CPU Family: 0x19
--- 6.0-cachyos-base-all.patch.old 2022-10-03 10:53:04.991120773 +0300
+++ 6.0-cachyos-base-all.patch 2022-10-03 09:57:46.659670708 +0300
@@ -1,7 +1,7 @@
-From 4ee5774d519ab3d21a214f4aa94e3f2ddc6ceb81 Mon Sep 17 00:00:00 2001
+From 2fa4f73d2e50a4a2c2c2873f08ac131c10717317 Mon Sep 17 00:00:00 2001
From: Peter Jung <admin@ptr1337.dev>
-Date: Tue, 27 Sep 2022 15:12:20 +0200
-Subject: [PATCH 01/16] cachy
+Date: Sun, 2 Oct 2022 23:51:09 +0200
+Subject: [PATCH 01/17] cachy
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-O2 -march=znver3 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS="-j16"
@sandikata
sandikata / cjs
Created April 30, 2021 17:42
cjs
Building cjs version 4.8.2
patching file .circleci/config.yml
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file .circleci/config.yml.rej
The next patch would create the file CONTRIBUTING.md,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file CPPLINT.cfg,
which already exists! Skipping patch.
1 out of 1 hunk ignored
@sandikata
sandikata / main.sh
Created April 15, 2021 11:45
Тая дивотия разчиташ ли я, и може ли някак да я генерираме?
#!/bin/bash
echo "" > main.yml
echo "---" >> main.yml
echo "" >> main.yml
echo "- import_playbook: preRequisites.yml" >> main.yml
echo " vars:" >> main.yml
echo " motd_client: \"{{hostvars[groups['NODE_ALARMS'][0]]['platform_client']}}\"" >> main.yml
echo " motd_project_name: \"{{hostvars[groups['NODE_ALARMS'][0]]['platform_project_name']}}\"" >> main.yml
echo " tags: always" >> main.yml
@sandikata
sandikata / list-patches.txt
Created April 14, 2021 06:50
list of all gentoo patches (only gentoo repo)
#( 04/14/21@ 9:47 )( root@aleksandrov ):~
ls /var/db/repos/gentoo/*/*/files/ | grep patch
at-spi2-core-2.0.2-disable-teamspaces-test.patch
brltty-5.2-respect-AR.patch
brltty-6.0-udev.patch
caribou-fix-antler-style-css.patch
caribou-fix-compilation-error.patch
caribou-fix-python-env.patch
caribou-fix-subkey-popmenu.patch
caribou-fix-xadapter-xkb-calls.patch
#Nginx sed/grep variant
nginx -T | sed -r -e 's/[ \t]*$//' -e 's/^[ \t]*//' -e 's/^#.*$//' -e 's/[ \t]*#.*$//' -e '/^$/d' | \
sed -e ':a;N;$!ba;s/\([^;\{\}]\)\n/\1 /g' | \
grep -P 'server_name[ \t]' | grep -v '\$' | grep '\.' | \
sed -r -e 's/(\S)[ \t]+(\S)/\1\n\2/g' -e 's/[\t ]//g' -e 's/;//' -e 's/server_name//' | \
sort | uniq | xargs -L1
#Nginx sed/perl variant
filebeat.inputs:
#- type: log
# enabled: true
# paths:
# - /data/logs/nginx/*.log
# tags: ["nginx", "json"]
# fields:
# logtype: nginx
# json.keys_under_root: true
# json.add_error_key: true
#!/bin/bash
sudo qemu-system-x86_64 -enable-kvm -cpu max -smp cores=10,threads=1,sockets=1 -m 20480 -boot menu=on -object iothread,id=io1 -device virtio-blk-pci,drive=disk0,iothread=io1 -drive if=none,id=disk0,cache=none,format=raw,aio=threads,file=/dev/vg0/KVMDISK0 -device virtio-tablet-pci -show-cursor -name "Gentoo Rolling" -daemonize -cdrom /home/rosen/Свалени/iso/systemrescuecd-amd64-6.1.3.iso -vga virtio -display gtk,gl=on -net nic,model=virtio,macaddr=DE:AD:BE:EF:E6:FB -net bridge,br=br0
# macaddr=DE:AD:BE:EF:E6:FB
PLAY RECAP *****************************************************************************************************************************************************************
192.168.56.63 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
aliqu.internal-mapping.com : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
araphim.internal-mapping.com : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
arganto.internal-mapping.com : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
arimit.internal-mapping.com : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
augue.internal-mapping.com : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
bitaka.internal-mapping.com : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
captarino-old.inter