Show information of certificate
Run this command if you want get SSL certificate info from bash openssl x509 -in certificate-1.crt -noout -text -certopt no_header,no_version,no_serial,no_signame,no_pubkey,no_sigdump,no_aux
Run this command if you want get SSL certificate info from bash openssl x509 -in certificate-1.crt -noout -text -certopt no_header,no_version,no_serial,no_signame,no_pubkey,no_sigdump,no_aux
При создании бекапа выскочина ошибка mysqldump: Couldn’t execute ‘SHOW TRIGGERS LIKE ‘logs”: Can’t read dir of ‘./mydatabase/’ (errno: 24 – Too many open files) (1018) Хотя в limits.conf указано значение 30000 и в my.cnf open-files-limit = 20000 И процесс запущен с правильными параметрами /usr/sbin/mysqld –basedir=/usr –datadir=/var/lib/mysql –plugin-dir=/usr/lib64/mysql/plugin –log-error=/var/lib/mysql/error.log –open-files-limit=20000 –pid-file=/var/run/mysql.run –port=3306
Fetching: mini_portile-0.6.2.gem (100%) Fetching: nokogiri-1.6.6.3.gem (100%) Building native extensions. This could take a while… ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb checking if the C compiler accepts … yes Building nokogiri using packaged libraries. checking for gzdopen() in -lz… no zlib is missing; necessary for building libxml2 *** extconf.rb… Читати далі »
apt-get install ruby gem ruby-dev make gem install telegram-bot-ruby Теперь необходимо получить токен для бота. Заходим в Telegram, добавляем бота @BotFather, и создаем бота: So, let’s write to out bot and get updates curl -s -X POST https://api.telegram.org/botNNNNN:NZNZNNZNZNZNNZNZ/getUpdates And we have: {“ok”:true,”result”:[{“update_id”:923096141, “message”:{“message_id”:2130,”from”:{“id”:,”first_name”:””,”username”:””},”chat”:{“id”:,”first_name”:””,”username”:””,”type”:”private”},”date”:1447842513,”text”:”test”}}]} # encoding: utf-8 # require ‘telegram/bot’ #require_relative ‘getimg’ token = ‘NNNNNN:XNXNXNXNXNXNXNXNX’ #inputMess… Читати далі »
For flashing firmware you need connect GPIO0 to GND and CH_PD to VCC I have this TTL converter Bus 003 Device 026: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port But they have 5v output, so i used 5v to 3.3v converter Prepare notebook for flashing Go to https://github.com/themadinventor/esptool and download esptool wget https://github.com/themadinventor/esptool/archive/master.zip install… Читати далі »
If you want to redirect ports from WAN to quest Virtual Machine than you may do this: Go to edit VM from Virsh virsh edit my-vm-name In header add xmlns Change interface type to user to this:
git clone –mirror https://bitbucket.org/exampleuser/repository-to-mirror.git # Make a bare mirrored clone of the repository cd repository-to-mirror.git git remote set-url –push origin https://github.com/exampleuser/mirrored # Set the push location to your mirror git push –mirror
http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cuipph/7960g_7940g/5_0/sip/english/administration/guide/5_0/7960setS.html Some general advice on how to get 7940/7960 going in standalone SIP via NAT. 1. Give your 7940 a static IP. 2. Forward ports 5060-5062 TCP and UDP and 16384 to 16399 UDP to the static IP of the 7940. 3. Make configuration file adjustments as follows: Set voip_control_port: 5061 ; NAT/Firewall Traversal- 0=Disabled,… Читати далі »
Все гениальное просто 🙂 при mkdir нужен ключ -p mkdir -p /usr/local/dir1/dir2/dir3/VIP В результате создастся структура каталогов даже если еще нет dir*
for d in *\ *; do mv “$d” “${d// /}”; done