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
| # http://h43z.blogspot.de/ | |
| wget -qO- /dev/null http://t.co/QzpT3EyC | grep -Po '.*?\K(?<=>)on.*?(?=<)' |
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
| # date +\[%d\/%b\/%G:%R:%S\ %z\] | |
| [21/Dec/2012:00:50:56 +0100] |
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
| (function(d, script) { | |
| var js, | |
| fjs = d.getElementsByTagName(script)[0]; | |
| function load(url, id) { | |
| if(d.getElementById(id)) {return;} | |
| js = d.createElement(script); | |
| js.async = true; | |
| js.src = url; |
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 return array ( | |
| 'db' => | |
| array ( | |
| 'username' => 'root', | |
| 'password' => 'root', | |
| 'host' => 'localhost', | |
| 'port' => '3306', | |
| 'dbname' => 'shopware', | |
| ), | |
| 'mail' => array( |
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 | |
| backup_tables('localhost','user','p4ssw0rd','database'); | |
| /* backup the db OR just a table */ | |
| function backup_tables($host,$user,$pass,$name,$tables = '*') | |
| { | |
| $link = mysql_connect($host,$user,$pass); | |
| mysql_select_db($name,$link); |
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 | |
| namespace Rookee\Console\Command; | |
| use Symfony\Component\Console\Command\Command, | |
| Symfony\Component\Console\Input\InputArgument, | |
| Symfony\Component\Console\Input\InputOption, | |
| Symfony\Component\Console\Input\InputInterface, | |
| Symfony\Component\Console\Output\OutputInterface; |
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
| -- SPLIT_STR MySQL Function | |
| -- from http://blog.fedecarg.com/2009/02/22/mysql-split-string-function/ | |
| CREATE FUNCTION SPLIT_STR( | |
| x VARCHAR(255), | |
| delim VARCHAR(12), | |
| pos INT | |
| ) | |
| RETURNS VARCHAR(255) | |
| RETURN REPLACE(SUBSTRING(SUBSTRING_INDEX(x, delim, pos), |
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
| require 'git' | |
| module Jekyll | |
| class GitActivityTag < Liquid::Tag | |
| def initialize(tag_name, text, tokens) | |
| super | |
| end | |
| def render(context) |
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 | |
| function stringToColor($string) { | |
| return substr(hash('crc32', $string), 0, 6); | |
| } |
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
| <html> | |
| <head> | |
| <title>This is the Page-Title</title> | |
| </head> | |
| <body> | |
| <img src="/web/path/to/image.jpg" alt="image-title" /> | |
| </body> | |
| </html> |