Skip to content

Instantly share code, notes, and snippets.

@jedi4ever
jedi4ever / dns tuning ssh login speedup vagrant
Created May 27, 2013 13:37
speeding up DNS/SSH connections in vagrant
- Tune /etc/ssh/sshd_config
UseDNS no # Disable DNS lookups
GSSAPIAuthentication no # Disable negotation of slow GSSAPI
don't forget to restart it, use a script provider to set it , or create it with veewee or snapshot it
- Tune Vagrantfile
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
@stefanschmidt
stefanschmidt / djvu2png.sh
Last active June 16, 2016 06:54
Convert a DJVU document to numbered PNG images
# depends on djvulibre and graphicsmagick compiled with libtiff support (available via Homebrew)
ddjvu -format=tiff doc.djvu img.tiff
gm convert img.tiff +adjoin img%03d.png
@rakibulinux
rakibulinux / OpenSSL.sh
Last active October 8, 2024 15:39
Installing OpenSSL on Ubuntu 18.04 LTS
#!/bin/sh
sudo apt-get update && sudo apt-get upgrade
openssl version -a
#Install the necessary packages for compiling
sudo apt install build-essential checkinstall zlib1g-dev -y
#Download OpenSSL
cd /usr/local/src/