General programming

Some new references

Posted on

Rsnapshot и Borgbаckup: две программы инкрементального резервного копирования https://te-st.ru/entries/rsnapshot-and-borgbckup/ Распределенный Git – Распределенный рабочий процесс https://git-scm.com/book/ru/v2/Распределенный-Git-Распределенный-рабочий-процесс https://www.vmware.com/support/developer/ovf/ovftool-430-userguide.pdf https://cstan.io/?p=8972&lang=en Functional Programming, Simplified (current contents) https://alvinalexander.com/misc/scala-functional-programming-simplified-contents PostgreSQL Cheat Sheet https://www.postgresqltutorial.com/postgresql-cheat-sheet/    

Linux

Reset root password in CentOS 7

Posted on

https://www.unixmen.com/reset-root-password-centos-7/ 1 – In the boot grub menu select option to edit. 2 – Select Option to edit (e). 3 – Go to the line of Linux 16 and change ro with rw init=/sysroot/bin/sh. 4 – Now press Control+x to start on single user mode. 5 – Now access the system with this command. chroot […]

Linux

How to create SHA512 password hashes on command line

Posted on

https://unix.stackexchange.com/questions/52108/how-to-create-sha512-password-hashes-on-command-line Python (>= 3.3) $ python -c ‘import crypt,getpass; print(crypt.crypt(getpass.getpass(), crypt.mksalt(crypt.METHOD_SHA512)))’ -or scripted- $ python -c ‘import crypt; print(crypt.crypt(“somesecret”, crypt.mksalt(crypt.METHOD_SHA512)))’ Python (2.x or 3.x) $ python -c “import crypt, getpass, pwd; \ print(crypt.crypt(‘password’, ‘\$6\$saltsalt\$’))” $6$saltsalt$qFmFH.bQmmtXzyBY0s9v7Oicd2z4XSIecDzlB5KiA2/jctKu9YterLp8wwnSq.qc.eoxqOmSuNp2xS0ktL3nh/ Note: $6$ designates sha512. Support for this method of specifying the algorithm is dependent on support in OS level crypt(3) […]

Uncategorised

Сети для самых маленьких

Posted on

https://linkmeup.ru/blog/65.html (текст скопирован со ссылки выше) Сети для самых маленьких. Часть восьмая. BGP и IP SLA Все выпуски До сих пор мы варились в собственном соку – VLAN’ы, статические маршруты, OSPF. Плавно росли над собой из зелёных студентов в крепких инженеров. Теперь отставим в сторону эти игрушки, пришло время BGP. Сегодня мы Разбираемся с протоколом […]

Uncategorised

Open source enterprise software

Posted on

https://opensource.com/tools/enterprise-resource-planning Metasfresh is a responsive, Free and Open Source ERP System. Our aim is to create fast and easy-to-use enterprise software with an outstanding user experience https://github.com/metasfresh/metasfresh Apache OFBiz is a suite of business applications flexible enough to be used across any industry. A common architecture allows developers to easily extend or enhance it to […]

General programming

Some Java libraries

Posted on

Vavr core is a functional library for Java. It helps to reduce the amount of code and to increase the robustness. A first step towards functional programming is to start thinking in immutable values. Vavr provides immutable collections and the necessary functions and control structures to operate on these values. The results are beautiful and just work. […]

Uncategorised

RAID hot spare

Posted on

https://smbitjournal.com/2012/07/hot-spare-or-a-hot-mess/   HOT SPARE OR A HOT MESS JULY 16, 2012 SCOTT ALAN MILLER 27 COMMENTS A common approach to adding a layer of safety to RAID is to have spare drive(s) available so that replacement time for a failed drive is minimized.  The most extreme form of this is referred to as having a “hot spare” […]

Uncategorised

Install tomcat app behind nginx

Posted on

Tomcat in server.xml: <Connector port=”8080″ protocol=”HTTP/1.1″ address=”localhost” maxThreads=”150″ connectionTimeout=”20000″ proxyName=”my-host-name” proxyPort=”443″ scheme=”https”/> Application should be installed on tomcat at path “my-app” (copy my-app.war to tomcat/webapps)   Nginx in nginx.conf: server { listen 80; server_name my-host-name; return 301 https://my-host-name; } server { listen 443 ssl; server_name my-host-name; ssl_certificate /usr/local/etc/nginx/my-host-name.crt; ssl_certificate_key /usr/local/etc/nginx/my-host-name.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 30m; ssl_ciphers […]

Oracle

ORA-12899: importing a .dmp file + character set conversion

Posted on

https://www.queryxchange.com/q/7_17504/ora-12899-importing-a-dmp-file-character-set-conversion/ You can edit the dump file and change the included NLS_LENGTH_SEMANTICS from BYTE to CHAR. Near the beginning of the file you find a line ending like this : ^@02:00:^@^@^D^@BYTE^F^@UNUSED^A^@2^K^INTERPRETED^K^@DISABLE:ALL^@^@ Change BYTE to CHAR using your favorite text editor and save the file. When you will imp that new dump file, all columns will be create […]