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 | |
| # Claude Code status line — two lines, subscription-focused (rate limits, no cost). | |
| # | |
| # ● my-project · ✦ Fable 5 · ⚡high · 🧠 · 🏷 ACME-123 (feature/ACME-123-fix) · 🔀 !42 | |
| # ██████░░░░ 62% (124k/200k) · 5h ████░░░░░░ 41% →17:00 · 7d ██░░░░░░░░ 23% →Wed · ⏱ 34m | |
| # | |
| # Features | |
| # - Context bar: tokens used vs window, green/yellow/red at 70/90% | |
| # - Rate limits: 5-hour + weekly windows as matching bars, with reset time | |
| # (clock time for 5h, weekday for 7d). Claude.ai Pro/Max only; hidden otherwise. |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>co.echo.httpdfwd</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>sh</string> | |
| <string>-c</string> |
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 | |
| $postcode = $argv[1]; | |
| $regionMap = [ | |
| 'EC' => [ | |
| ['4731', '5199'], | |
| ['5200', '5299'], | |
| ['5300', '5499'], | |
| ['5500', '5999'], |
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
| export GIT_PS1_SHOWDIRTYSTATE=true | |
| export GIT_PS1_SHOWUNTRACKEDFILES=true | |
| export PS1="\$([[ \$? != 0 ]] && echo \"[\[\033[0;31m\]\342\234\227\[\033[0;37m\]] \")[\e[38;5;240m\@\e[m] [$(if [[ ${EUID} == 0 ]]; then echo '\[\033[0;31m\]\h'; else echo '\[\e[38;5;193m\u\[\033[0;37m\]@\e[38;5;26m\h'; fi)\[\033[0;37m\]][\[\033[0;32m\]\w\[\033[0;37m\]]\e[38;5;198m\$(__git_ps1 "[%s]")\e[m\n$ " |
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 bash | |
| function get_mage_path { | |
| local result=${PWD##*/} | |
| local ret='./' | |
| if [ "$result" = "var" ]; then | |
| local ret='../'; | |
| fi | |
| if [ "$result" = "log" ]; then | |
| local ret='../../'; |
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
| UPDATE cataloginventory_stock_item AS s | |
| INNER JOIN catalog_product_entity AS p ON s.product_id = p.entity_id | |
| SET s.qty = '9999.0000', s.is_in_stock='1' | |
| WHERE p.type_id = 'simple' |
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
| $newsFromDate = Mage::getResourceModel('catalog/product') | |
| ->getAttributeRawValue($product->getId(), 'news_from_date', $product->getStoreId()); |
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 | |
| class Blah { | |
| protected $_logger; | |
| public function __construct( | |
| \Psr\Log\LoggerInterface $logger | |
| ){ | |
| $this->_logger = $logger; |
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/sh | |
| # specify directory if not in it | |
| composer create-project magento/community-edition . | |
| # Fix file permissions | |
| find . -type d -exec chmod 700 {} \; && find . -type f -exec chmod 600 {} \; | |
| # execute if you have not done so in the past | |
| composer config repositories.magento composer http://packages.magento.com |
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/sh | |
| magento deploy:mode:show | |
| Current application mode: default. | |
| magento deploy:mode:set developer | |
| Enabled developer mode. |
NewerOlder