Skip to content

Instantly share code, notes, and snippets.

View felipefialho's full-sized avatar
:octocat:
working at @juntossomosmais and @frontendbr 🚀

Felipe Fialho felipefialho

:octocat:
working at @juntossomosmais and @frontendbr 🚀
View GitHub Profile
@terremoth
terremoth / ambb_projects_add_license_badges.php
Created December 10, 2021 20:52
Add license badges to all projects in felipefialho/awesome-made-by-brazilians repo
<?php
$aFile = file('README.md', FILE_TEXT);
$licensed_file = fopen('NEW_README.md', 'wb+');
// Stub: [![license](https://img.shields.io/github/license/AUTHOR/REPO.svg)](/LICENSE)
// pattern to search = ![Stars](https://img.shields.io/github/stars/LarissaAbreu/contrata-se-dev.svg?style=flat-square)
foreach ($aFile as $line_num => $line) {