This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step 1: Generate a Private Key | |
openssl genrsa -des3 -out server.key 1024 | |
Step 2: Generate a CSR (Certificate Signing Request) | |
openssl req -new -key server.key -out server.csr | |
Step 3: Remove Passphrase from Key | |
cp server.key server.key.old | |
openssl rsa -in server.key.old -out server.key | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable current git branch to bash promt | |
# nano /root/.bashrc | |
if [ -f /etc/bash_completion.d/git ]; then | |
. /etc/bash_completion.d/git | |
fi | |
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w $(__git_ps1 "(%s)")\$ ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*************************************************************** | |
* Copyright notice | |
* | |
* (c) 2011 Nicole Cordes <[email protected]>, CPS-IT GmbH | |
* All rights reserved | |
* | |
* This script is part of the TYPO3 project. The TYPO3 project is | |
* free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub vcl_recv { | |
# Set backend | |
set req.backend = default; | |
if (req.http.host ~ "gitweb.squeezebox.vm") { | |
return (pass); | |
} | |
# Set a unique cache header with client ip | |
if (req.http.x-forwarded-for) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
du -k | sort -nr | |
du -m | sort -nr | |
du -B 1024 | sort -nr | |
du -B 1048576 | sort -nr | |
du -B 1073741824 | sort -nr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
DocumentRoot "C:/Apache2/htdocs/localhost" | |
ServerName localhost.local | |
ErrorLog "logs/localhost-error.log" | |
CustomLog "logs/localhost-access.log" combined | |
<Directory "C:/Apache2/htdocs/localhost"> | |
Options FollowSymLinks Includes ExecCGI | |
AllowOverride All | |
Order allow,deny |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
about:config security.fileuri.strict_origin_policy = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd "C:\Program Files (x86)\Apache2\bin" | |
openssl req -config ../conf/openssl.cnf -new -out XXX.csr -keyout XXX.pem | |
>> Fill in "PEM pass phrase" and "Common Name" | |
openssl rsa -in XXX.pem -out XXX.key | |
>> Delete the .rnd file | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
<!-- | |
jQuery.noConflict(); | |
jQuery(document).ready(function() { | |
var wrapper = jQuery('div#wrapper_content').find('div#wrapper_columns'); | |
if (wrapper.length > 0) { | |
jQuery('div#column_left > div').each(function(index){ | |
var h = Math.max(jQuery(this).height(), jQuery('div#column_right > div').eq(index).height()); | |
jQuery(this).height(h); | |
jQuery('div#column_right > div').eq(index).height(h); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find -type f -name *.pdf | wc -l |