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
| #!/bin/bash | |
| # | |
| # gpush: Lazy git add, commit, and push with comments written by LLM | |
| # | |
| # | |
| # This script provides an enhanced git push workflow with the following features: | |
| # - Automatically pulls latest changes from the current branch | |
| # - Checks for uncommitted changes | |
| # - Generates commit messages using AI (LLM/Gemini) if no message is provided | |
| # - Allows interactive editing of auto-generated commit messages |
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 | |
| /** | |
| * Generate an encryption key for CodeIgniter. | |
| * http://codeigniter.com/user_guide/libraries/encryption.html | |
| */ | |
| // http://www.itnewb.com/v/Generating-Session-IDs-and-Random-Passwords-with-PHP | |
| function generate_token ($len = 32) | |
| { |
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
| #!/bin/bash | |
| # works with a file called VERSION in the current directory, | |
| # the contents of which should be a semantic version number | |
| # such as "1.2.3" | |
| # this script will display the current version, automatically | |
| # suggest a "minor" version update, and ask for input to use | |
| # the suggestion, or a newly entered value. |
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 | |
| use Ratchet\MessageComponentInterface; | |
| use Ratchet\ConnectionInterface; | |
| use Ratchet\Server\IoServer; | |
| use Ratchet\WebSocket\WsServer; | |
| /** | |
| * chat.php | |
| * Send any incoming messages to all connected clients (except sender) | |
| */ |