-
generic cipher suites to be used:
For Apache2.2: this enables FS on all clients
ALL:!COMPLEMENTOFDEFAULT:!EXPORT:!LOW:!MD5:!aNull:!eNull:!RC4:-3DES:+ECDHE:+RSA:!DHApache 2.4 with Current openssl:
SSLCipherSuite aRSA+CHACHA20:aRSA:!kPSK:!kRSAPSK:!SHA:!NULL:!CAMELLIA:+kECDH:+kEDH:+SHA384:+SHA256:!kRSA
EECDH+CHACHA20:EDH+CHACHA20:EECDH+AESGCM:EDH+AESGCM:EECDH+AES256
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
/// <summary> | |
/// Converts source image file to jpeg of defined quality (0.85) | |
/// </summary> | |
/// <param name="sourceFile">Source StorageFile</param> | |
/// <param name="outputFile">Target StorageFile</param> | |
/// <returns></returns> | |
private async Task<StorageFile> ConvertImageToJpegAsync(StorageFile sourceFile, StorageFile outputFile) | |
{ | |
//you can use WinRTXamlToolkit StorageItemExtensions.GetSizeAsync to get file size (if you already plugged this nuget in) | |
var sourceFileProperties = await sourceFile.GetBasicPropertiesAsync(); |
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
/etc/init.d/mysqld stop | |
mysqld_safe --skip-grant-tables & | |
mysql -u root | |
mysql> UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root'; | |
mysql> FLUSH PRIVILEGES; | |
^D | |
killall mysqld | |
/etc/init.d/mysqld start |
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
#!/bin/bash | |
curl=/usr/bin/curl | |
hosts="www.vk.uni-halle.de www.wissenschaftsnacht-halle.de" | |
for host in $hosts; do | |
http_status=$($curl curl -sI --get http://$host | head -n1 | awk '{print $2}' ) | |
if [[ "$http_status" -ne "200" ]]; then | |
echo "Host $host returned status '$http_status'" | |
fi |
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
# in ~/.config/fish/config.fish | |
# Load the default rubies | |
if test -z $rvm_bin_path | |
exec bash --login -c "exec fish" ^&1 | |
end |
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
# | |
# Slightly tighter CORS config for nginx | |
# | |
# A modification of https://gist.github.com/1064640/ to include a white-list of URLs | |
# | |
# Despite the W3C guidance suggesting that a list of origins can be passed as part of | |
# Access-Control-Allow-Origin headers, several browsers (well, at least Firefox) | |
# don't seem to play nicely with this. | |
# |