Archivo por meses: marzo 2018

http://info.cern.ch/ home of the first website

http://info.cern.ch http://info.cern.ch – home of the first website From here you can: Browse the first website Browse the first website using the line-mode browser simulator Learn about the birth of the web Learn about CERN, the physics laboratory where the web was born

Categoría: Nix

cisco ssh legacy Unable to negotiate with no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

Error in legacy ssh switches: Unable to negotiate with 192.168.1.1: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1 The OpenSSH website has a page dedicated to legacy issues such as this one. It suggests the following approach, on the client: ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 123.123.123.123 or more permanently, adding Host 123.123.123.123 KexAlgorithms +diffie-hellman-group1-sha1 to ~/.ssh/config. This will enable the old… Leer más »

shiny-server timeout nginx

error in nginx: upstream prematurely closed connection while reading response header from upstream     In the shiny-server configuration help, there are two timeouts that can be set in the free shiny server version. app_init_timeout — Describes the amount of time (in seconds) to wait for an application to start. After this many seconds if… Leer más »

Easy Steps to Limit Mongodb Memory Usage

http://www.techpaste.com/2016/04/limit-mongodb-memory-usage/ Spaces are important!!! # Where and how to store data. storage: dbPath: /var/lib/mongo journal: enabled: true # engine: wiredTiger # mmapv1: wiredTiger: engineConfig: configString: cache_size=200M

Find the UUID of a filesystem and add to fstab

use blkid sudo blkid /dev/sda2: LABEL=»NTFSDISK» UUID=»8C14553212372BD7″ TYPE=»ntfs» PARTLABEL=»Basic data partition» PARTUUID=»6120d102-a321-2dg3-a3c2-abc3b31313a3″ /dev/sda1: UUID=»727cac18-044b-4504-87f1-a5aefa774bda» TYPE=»ext3″ /dev/sdb: UUID=»467c4aa9-963d-4467-8cd0-d58caaacaff4″ TYPE=»ext3″ Find UUID and add to fstab # # /etc/fstab # Created by anaconda on Fri Feb 2 13:55:13 2018 # # Accessible filesystems, by reference, are maintained under ‘/dev/disk’ # See man pages fstab(5), findfs(8), mount(8) and/or… Leer más »

Timeout systemctl systemd

systemctl cat Then you need to create a {service}.service file to override your settings with information from [Service] section from systemctl cat {service} command and restart daemon after that: echo «[Service] TimeoutSec=15min ExecStart=/etc/rc.d/init.d/ start ExecStop=/etc/rc.d/init.d/ stop ExecReload=/etc/rc.d/init.d/ reload» > /lib/systemd/system/{service}.service sudo systemctl daemon-reload Timeout set by systemd systemctl show SERVICE_NAME.service -p TimeoutStopUSec

change network to private windows 2012 windows server

Hit Winkey + R to open Run prompt and type gpedit.msc Navigate to: Computer Configuration/Windows Settings/Security Setting /Network List Manager Policies. Choose your Network name in the right pane. Note: To show networks not currently connected, right-click Network List Manager Policies in the left pane and choose Show All Networks. Go to Network Location tab and change the Location type from Public to Private.  Close… Leer más »

Text search mongo

db.employees.find({$text: {$search: «Jean Valjean»}}, {score: {$meta: «textScore»}}).sort({score:{$meta:»textScore»}})