Get only zip files
wget -A zip -r -l 1 -nd http://url.com/
Get all files except html etc.
wget -R html,htm,php,asp,jsp,js,py,css -r -l 1 -nd http://url.com
Get only zip files
wget -A zip -r -l 1 -nd http://url.com/
Get all files except html etc.
wget -R html,htm,php,asp,jsp,js,py,css -r -l 1 -nd http://url.com
head test2.svn.gz|hexdump -C
‘/etc/dhcp3/dhclient.conf’
prepend domain-name-servers 127.0.0.1;
fuser -n tcp 1024
Install required packages
sudo apt-get install git fakeroot build-essential ncurses-dev xz-utils libssl-dev bc
sudo apt-get --no-install-recommends install kernel-package
Download kernel
wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.tar.xz
Unzip
unxz linux-4.4.tar.xz
tar xvf linux-4.4.tar
Copy your config file and configure
cd linux-4.4
$ cp /boot/config-$(uname -r) .config
make menuconfig
Compile
make-kpkg clean
fakeroot make-kpkg --initrd --revision=1.0.myname kernel_image kernel_headers -j 4
Install
sudo dpkg -i ...
dmesg | more
dmesg | egrep -i --color 'error|critical|failed'
opcache.enable=1
opcache.memory_consumption=128
opcache.max_accelerated_files=4000
opcache_revalidate_freq = 240
sudo php5enmod opcache
sudo service apache2 restart
if ( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] )
&& preg_match( '/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/',
$_SERVER['HTTP_X_FORWARDED_FOR'] ) )
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR'];
sed -i 's/geteuid/getppid/' /usr/bin/vlc
/etc/init.d/proftpd
Find this line:
start-stop-daemon --stop --signal $SIGNAL --quiet --pidfile "$PIDFILE"
Change to this:
start-stop-daemon --stop --signal $SIGNAL --retry 1 --quiet --pidfile "$PIDFILE"