We have moved: https://github.com/magnetikonline/linuxmicrosoftievirtualmachines
Due to the popularity of this Gist, and the work in keeping it updated via a Gist, all future updates will take place at the above location. Thanks!
<?php | |
/* | |
When updating from Contao 2 to Contao 3, you must not rename the tl_files folder to files! | |
If you want to rename the folder, you have to take the following steps: | |
· Complete the version 3 update in the install tool | |
· Then rename the upload folder in the back end settings to files | |
· Last run the modified version of Tristan's script |
<?php $this->extend('fe_page'); ?> | |
<?php $this->block('footer'); $this->endblock(); ?> | |
<?php $this->block('body'); ?> | |
<?php $this->parent(); ?> | |
<?php if ($this->footer): ?> | |
<footer id="footer"> | |
<div class="inside"> | |
<?php echo $this->footer; ?> | |
</div> |
/* ... basics ... | |
-------------------------------------------------------------------------------------------------*/ | |
nav { | |
border: 1px solid #000; | |
border-radius: 8px; | |
float: left; | |
} | |
ul, | |
li, | |
a, |
<?php | |
/** | |
* Copyright (c) 2013 Jean Bruenn | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: |
<?php | |
// read page 1 | |
$im = new imagick( 'test.pdf[ 0]' ); | |
// convert to jpg | |
$im->setImageColorspace(255); | |
$im->setCompression(Imagick::COMPRESSION_JPEG); | |
$im->setCompressionQuality(60); | |
$im->setImageFormat('jpeg'); |
We have moved: https://github.com/magnetikonline/linuxmicrosoftievirtualmachines
Due to the popularity of this Gist, and the work in keeping it updated via a Gist, all future updates will take place at the above location. Thanks!
#!/bin/sh | |
cd /etc/havp | |
OUTFILE=/etc/havp/blacklist | |
ADSERVERLIST=/etc/havp/adserverlist | |
PHISHTANK=/etc/havp/phishtank | |
MYBLACKLIST=/etc/havp/myblacklist |
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
img.grayscale.disabled { | |
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/></filter></svg>#grayscale"); | |
-webkit-filter: grayscale(0%); | |
} |
<?php | |
// Database credentials | |
$strHost = 'localhost'; | |
$strUser = ''; | |
$strPassword = ''; | |
$strDatabase = ''; | |
// From and to path | |
$strFrom = 'tl_files/'; |