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
| $startDate = strtotime('2012-04-01'); | |
| $endDate = strtotime('2012-04-30'); | |
| $searchDate = strtotime('2012-04-18'); | |
| if ($searchDate >= $startDate && $searchDate <= $endDate) { | |
| echo 'Notre date recherchée est bien dans la plage spécifiée.'; | |
| } |
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
| string(65) "<div> | |
| <h1>Heading</h1> | |
| <p>Something right here...</p> | |
| </div>" | |
| string(62) "<div> | |
| <h1>Heading</h1> | |
| <p>Something right here...</p> | |
| </div>" |
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
| // Génération du mot de passe | |
| $password = hash_hmac('sha1', $challenge, $app_token); |
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
| <rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"> | |
| <channel> | |
| <title>Downloads</title> | |
| <link>http://www.example.com</link> | |
| <description>List of auto-downloads</description> | |
| <!-- <ttl>60</ttl> --> <!-- Durée (en minute) de mise en cache. Facultatif, mais empêche le raffrachissement manuel via l'API --> | |
| <item> | |
| <title> | |
| Nom du téléchargement | |
| </title> |
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 | |
| # get php source code | |
| mkdir /Applications/MAMP/bin/php/php5.4.10/include | |
| cd /Applications/MAMP/bin/php/php5.4.10/include | |
| wget -O php-5.4.10.tar.gz http://us.php.net/get/php-5.4.10.tar.gz/from/this/mirror | |
| tar xzf php-5.4.10.tar.gz |
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
| sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'` |
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
| body { padding:50px; background:#000; } | |
| h1 { width:250px; font:bold 36px sans-serif; letter-spacing:-1px; color:#FFF; padding: 10px 0 10px 40px; } | |
| .wrap { | |
| box-shadow: -35px 0 0 5px #38bfdb, 10px 0 0 5px #38bfdb; | |
| } | |
| .inner { | |
| background: #38bfdb; | |
| position:relative; | |
| } |
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
| body { padding:50px; background:#000; } | |
| h1 { width:250px; font:bold 36px sans-serif; letter-spacing:-1px; color:#FFF; padding: 10px 0 10px 40px; } | |
| .wrap { | |
| box-shadow: -35px 0 0 5px #38bfdb, 10px 0 0 5px #38bfdb; | |
| } | |
| .inner { | |
| background: #38bfdb; | |
| position:relative; | |
| } |
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
| launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist |
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
| config_files = Dir.glob("#{ENV['HOME']}/Library/Application Support/Viscosity/OpenVPN/*/config.conf") | |
| config_files.each do |file| | |
| certificate_files = ['ca', 'cert', 'key', 'tls-auth'] | |
| config_dir = File.dirname(file) | |
| connection_name = nil | |
| new_config = [] | |
| File.read(file).each_line do |line| | |
| line.strip! |
OlderNewer