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 […]

Uncategorised

Installing FreeBSD

Posted on

Общие рекомендации: Режим загрузки в BIOS: LEGACY (aka BIOS) – партиционирование GPT – размер swap = объем RAM – основные партиции: freebsd-boot = 512K freebsd-ufs (/) = 3GB freebsd-swap (= RAM) freebsd-ufs (/var) = 2GB freebsd-ufs (/tmp) = 2GB freebsd-ufs (/usr) = 10GB файловая система UFS Иногда бывает, что система не грузится с диска после […]

Linux

Installing CentOS

Posted on

Установка CentOS LVM не используем По умолчанию на небольшой диск (< 2TB) Linux пытается установить MBR. Чтобы выбрать EUFI (GPT) либо выбираем ее как основной способ загрузки в BIOS, либо выбираем в качестве первого загрузочного устройства USB-флэшку, с которой проводим инсталляцию, тогда программа установки сама переключится на EUFI. Если используется EUFI, дополнительно к стандартным разделам […]

General programming

Shodan

Posted on

Shodan is a search engine for Internet-connected devices. Web search engines, such as Google and Bing, are great for finding websites. But what if you’re interested in measuring which countries are becoming more connected? Or if you want to know which version of Microsoft IIS is the most popular? Or you want to find the […]

General programming

Introduction to libuv

Posted on

https://eli.thegreenplace.net/2017/concurrent-servers-part-1-introduction/ https://github.com/libuv/libuv   Abstracting away event-driven loops with libuv In part 3, we’ve seen how similar select-based and epoll-based servers are, and I mentioned it’s very tempting to abstract away the minor differences between them. Numerous libraries are already doing this, however, so in this part I’m going to pick one and use it. The library I’m picking […]

Linux

Unix monitoring and audit

Posted on

https://cisofy.com/lynis/ Lynis is an open source security auditing tool. Used by system administrators, security professionals, and auditors, to evaluate the security defenses of their Linux and Unix-based systems. It runs on the host itself, so it performs more extensive security scans than vulnerability scanners. It is also the client in our Lynis Enterprise offering. https://www.tecmint.com/linux-server-health-monitoring-script/