Put basic apache authentication on squid

htpasswd /etc/squid/passwd user1 chmod o+r /etc/squid/passwd dpkg -L squid3 | grep ncsa_auth vi /etc/squid/squid.conf   Append (or modify) following configration directive: auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd auth_param basic children 5 auth_param basic realm Squid proxy-caching web server auth_param basic credentialsttl 2 hours auth_param basic casesensitive off Also find out your... [Read More]
Tags: Linux squid

web based rtorrent with docker

web based rtorrent with docker, with this very simple below command then see it live on http://url:8086 and user password is  docktorrent/[email protected] docker run -it \    -p 8086:80 -p 45566:45566 -p 9527:9527/udp \    --dns 8.8.8.8 \    -v /data-store:/rtorrent \    -e UPLOAD_RATE=1024 \    kfei/docktorrent [Read More]

Mount google drive via terminal without browser

Mount google drive via terminal without browser with just this simple command: google-drive-ocamlfuse -headless -label gd1 -id id_from_google -secret secret_from_google This is headless method of mounting google drive and u must create you key from developer account of google
Tags: Cloud Linux

add js or css depending on browser with php

add js or css depending on browser with php with the below short code: <?=    (preg_match('/Safari/i',$_SERVER["HTTP_USER_AGENT"] )) ? 'body{line-height:1.2; margin:0;padding:0;} @media print { html, body { margin: 0; padding: 0; }' : '' ?> [Read More]
Tags: Common PHP web