One line to describe the pull request
| Q | A |
|---|---|
| Bug fix? | yes/no |
| New feature? | yes/no |
| BC breaks? | yes/no |
| if BC breaks; where? | % |
| Deprecations? | yes/no |
| Tests pass? | yes/no |
| public static function convertLinks(&$input) { | |
| $input = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.-]*(\?\S+)?)?)?)@', '<a href="$1">$1</a>', $input); | |
| } |
| var page = require(‘webpage’).create(); | |
| page.viewportSize ={ width: 200, height : 200 }; | |
| page.content = “GoogleChart goes here”; //maybe load a skeleton here and replace some data. | |
| page.setContent(page.content,page); | |
| window.setTimeout(function () { | |
| page.render(‘newimage.png’); | |
| phantom.exit(); | |
| }, 1000); |
| grep -rl 'OLDSTRING' ./ | xargs sed -i 's/OLDSTRING/NEWSTRING/g' |
| # Reset the current branch to the commit just before the last X: | |
| # X is here the number of commits to squash together | |
| git reset --hard HEAD~X | |
| # HEAD@{1} is where the branch was just before the previous command. | |
| # This command sets the state of the index to be as it would just | |
| # after a merge from that commit: | |
| git merge --squash HEAD@{1} | |
| # Commit those squashed changes. The commit message will be helpfully |
| public class Reversed<T> implements Iterable<T> { | |
| private final List<T> org; | |
| public Reversed(List<T> original) { | |
| org = original; | |
| } | |
| public Iterator<T> iterator() { | |
| final ListIterator<T> i = org.listIterator(org.size()); |
| sudo cp /usr/share/icons/DMZ-White/cursors/arrow /usr/share/icons/DMZ-White/cursors/watch |
| #!/usr/bin/env python2 | |
| """ | |
| Author: takeshix <takeshix@adversec.com> | |
| PoC code for CVE-2014-0160. Original PoC by Jared Stafford (jspenguin@jspenguin.org). | |
| Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP. | |
| """ | |
| import sys,struct,socket | |
| from argparse import ArgumentParser |
| #!/bin/bash | |
| # PHP 5 | |
| export PATH=/usr/local/php5/bin:$PATH #PHP 5.5 | |
| alias mysql="/usr/local/mysql/bin/mysql" | |
| #JAVA_HOME | |
| export JAVA_HOME=$(/usr/libexec/java_home) |
One line to describe the pull request
| Q | A |
|---|---|
| Bug fix? | yes/no |
| New feature? | yes/no |
| BC breaks? | yes/no |
| if BC breaks; where? | % |
| Deprecations? | yes/no |
| Tests pass? | yes/no |