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
| // Source: https://gist.github.com/mRoca/112a0e6cb58b254b0c7da45ed4d1dac7 | |
| // Push every edit made to a local copy back to that gist: it is the copy everyone installs from. | |
| // gh gist edit 112a0e6cb58b254b0c7da45ed4d1dac7 --filename github-prs-to-approve.js <local-copy> | |
| // | |
| // Changelog, newest first: add one line per version you push. The gist history starts at 8.20.0. | |
| // 8.46.0 Retries a request that fails on the network twice, and a failed refetch shows ⚠ on the badge and is retried on the next focus instead of five minutes later. | |
| // 8.45.0 Ticking Viewed, with the shortcut or a click, drops a comment anchor such as #r4218380985 from the URL, so a reload of the diff stops jumping back to it. | |
| // 8.44.2 Keeps the joined title when GitHub's React form resets it a few seconds after load, and logs every title it replaces. | |
| // 8.44.1 Words the title option as what it does: keep the whole commit subject in the title of a new pull request. | |
| // 8.44.0 Adds an option, off by default, that puts back the end of a lon |
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
| // ==UserScript== | |
| // @name Revert GitHub PR Title Truncation | |
| // @namespace https://github.com/lionel-rowe/ | |
| // @version 0.4 | |
| // @description Revert GitHub PR Title Truncation | |
| // @author https://github.com/lionel-rowe/ | |
| // @match https://github.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=github.com | |
| // @grant none | |
| // @run-at document-start |
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
| { | |
| "statusLine": { | |
| "type": "command", | |
| "command": "bash .claude/statusline-command.sh" | |
| } | |
| } |
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
| // ==UserScript== | |
| // @name GitHub Mark File Viewed | |
| // @version 0.1 | |
| // @description Mark file as "viewed" on GitHub PR UI when hovering and pressing 'Escape' key | |
| // @match https://github.com/* | |
| // ==/UserScript== | |
| function markFileAsViewed() { | |
| // Legacy Github PR review page | |
| const legacyFileEl = document.querySelector( |
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 | |
| declare(strict_types=1); | |
| namespace App\Console\Commands; | |
| use Doctrine\DBAL\Schema\Index; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Support\Facades\Schema; |
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
| #!/usr/bin/env sh | |
| set -e | |
| # Usage: | |
| # export CI_API_TOKEN=<YOUR_TOKEN with api scope from https://gitlab.com/profile/personal_access_tokens> | |
| # export CI_API_V4_URL=https://gitlab.com/api/v4 | |
| # export CI_PROJECT_ID=37 | |
| # | |
| # ./deployment/bin/stop-all-dev-environments |
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 | |
| /** | |
| * Usage : php valleys.php 8 DDUUUUDD | |
| * | |
| * 1 | |
| */ | |
| function countValleys(string $path): int | |
| { |
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 | |
| /** | |
| * Usage : php staircase.php 4 | |
| * | |
| * # | |
| * ## | |
| * ### | |
| * #### | |
| */ |
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 | |
| /** | |
| * Returns all days between two dates matching a wanted position in a week, in a month. | |
| * | |
| * For instance, in order to get all dates matching the request: | |
| * "First and third monday and friday of each month between 2022-01-08 and 2022-06-15" : | |
| * | |
| * $days = getDatesInRangeByDaysInMonth(new DateTimeImmutable('2022-01-08'), new DateTimeImmutable('2022-06-15'), [1, 5], [1, 3]); | |
| * |
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 App\Service; | |
| use Doctrine\DBAL\Connection; | |
| use Doctrine\DBAL\Schema\AbstractSchemaManager; | |
| use Doctrine\DBAL\Schema\ForeignKeyConstraint; | |
| use Doctrine\DBAL\Schema\Table; | |
| use Doctrine\ORM\EntityManagerInterface; | |
| use Psr\Log\LoggerInterface; |
NewerOlder