Skip to content
  • About’n’Search
  • Datenschutzerklärung // Privacy Declaration

bytes and bones

stuff that matters

Month: November 2014

Written by #xxaxxelxxNovember 26, 2014

Apache | List loaded modules

apache2ctl modules

Written by #xxaxxelxxNovember 26, 2014November 26, 2014

Apache | redirect from root always to default page/script

put this directly into the virtual host section: RewriteEngine on RewriteRule ^/$ https://my.server.org/directory/start.pl

Written by #xxaxxelxxNovember 26, 2014November 26, 2014

Apache | redirect port 80 to 443

<VirtualHost *:80> RewriteEngine on ReWriteCond %{SERVER_PORT} !^443$ RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L] </VirtualHost>

Written by #xxaxxelxxNovember 24, 2014April 6, 2016

Gentoo | total emerge

emerge –update –deep –with-bdeps=y –newuse world dispach-conf revdep-rebuild emerge –depclean python-updater eselect python list #eselect python set –python3 2 perl-cleaner –reallyall gcc-config -l  

Written by #xxaxxelxxNovember 20, 2014

MS SQL Server Maintenance

https://ola.hallengren.com/

Written by #xxaxxelxxNovember 14, 2014

URL ENCODING WITH CURL

curl –get –user -o /dev/null –user “user:password” –data-urlencode “argument_a=la la la la la” –data-url-encode “argument_b=bla bla bla bla” “http://my.site.com/execute.pl&#8221;

Written by #xxaxxelxxNovember 13, 2014

DETECT WINDOWS MACHINES

nmap –script smb-os-discovery -p 445 192.168.0.0/24

Written by #xxaxxelxxNovember 12, 2014

RADICAL PNG SHRINKING

optipng -o7 -strip all

Written by #xxaxxelxxNovember 5, 2014May 5, 2017

BASH | extract email address from line

grep -o ‘[a-zA-Z0-9._%+-]\+@[a-zA-Z0-9.-]\+\.[a-zA-Z]\{2,4\}’

Written by #xxaxxelxxNovember 3, 2014November 3, 2014

CLIENTS FROM HELL

http://clientsfromhell.net/

Create a free website or blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • bytes and bones
    • Join 93 other followers
    • Already have a WordPress.com account? Log in now.
    • bytes and bones
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar