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
#!/usr/bin/php | |
<?php | |
require_once __DIR__ . '/vendor/autoload.php'; | |
// Path to file was passed to the script, find out FQCN of the class with the power of PSR4 mapping! | |
$file = substr(getcwd() . '/' . $argv[1], 0, -4); | |
$namespaces = include __DIR__ . '/vendor/composer/autoload_psr4.php'; | |
foreach ($namespaces as $namespace => $paths) { | |
if (strpos($file, $paths[0]) === 0) { |
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
grep -hoR 'Zend\\\w*' module/ | sort | uniq |
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 Application\Service; | |
use DateTime; | |
class BarService | |
{ | |
protected $dateTime; | |
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
// ==UserScript== | |
// @name Fork-Checker | |
// @namespace https://github.com/Koopzington | |
// @version 0.1 | |
// @description When looking on a GitHub repository, this script checks if you already have a fork of it on your account. | |
// @author koopzington@gmail.com | |
// @match https://github.com/*/* | |
// @grant GM_xmlhttpRequest | |
// ==/UserScript== |
NewerOlder