This file contains 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
<img(?=\s|>)(?!(?:[^>=]|=(['"])(?:(?!\1).)*\1)*?\salt=['"])[^>]*.*?\/> |
This file contains 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
<a(?=\s|>)(?!(?:[^>=]|=(['"])(?:(?!\1).)*\1)*?\stitle=['"])[^>]*>.*?<\/a> |
This file contains 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
-- disable | |
SET FOREIGN_KEY_CHECKS = 0; | |
-- truncate for example | |
TRUNCATE mytable; | |
-- enable | |
SET FOREIGN_KEY_CHECKS = 1; |
This file contains 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
git remote set-url origin git://new.url.here |
This file contains 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
# with dig (fastest way) | |
dig +short myip.opendns.com @resolver1.opendns.com; | |
# alternative | |
dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'"' '{ print $2}'; | |
###################################################################################################### | |
## Other method with curl / get and 3rd party, this choice is less judicious | |
###################################################################################################### | |
# with curl |
This file contains 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
/** | |
* Fluid embedded video via iframe / embed / object techniques | |
* Works fine with just these css rules, if you want accurate results you can add a pinch of javascript too | |
* | |
* @see https://css-tricks.com/NetMag/FluidWidthVideo/Article-FluidWidthVideo.php | |
*/ | |
/* <RESPONSIVE IFRAME / EMBED / OBJECT VIDEOS> */ | |
.video-container { |
This file contains 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
$(':header').each(function (index) { | |
$(this).css('border', '2px solid red') | |
.css('background', '#393939') | |
.css('color', 'white') | |
.css('padding', '10px') | |
.append(' [' + $(this).get(0).tagName + ']'); | |
}); |
This file contains 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
browserify ${SOURCES_JS} --debug --outfile ${DESTINATION_JS} -t [ babelify --presets [ es2015] ]; |
This file contains 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 | |
namespace AppBundle\Utils; | |
use Symfony\Component\Form\Form; | |
/** | |
* Class FormHelper | |
* | |
* @package AppBundle\Utils | |
*/ |
This file contains 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"> | |
// Allow and preserve twig syntax @see http://stackoverflow.com/questions/20977910/editing-twig-templates-in-ckeditor | |
// Can also be coupled with this plugin : http://ckeditor.com/addon/showprotected | |
CKEDITOR.config.protectedSource.push(/\{\{[\s\S]*?\}\}/g); | |
CKEDITOR.config.protectedSource.push(/\{\%[\s\S]*?%\}/g); | |
CKEDITOR.config.protectedSource.push(/\{\#[\s\S]*?#\}/g); | |
</script> |
OlderNewer