-
Command Line Murder Mystery: A fun problem-solving game set in your terminal.
-
Terminus: This online game teaches important shell commands in a fun and interactive way.
-
Bashcrawl: A text-based dungeon crawl game played entirely in the Bash shell.
-
Vim Adventures: A game to learn Vim, a text editor found on Unix-like systems.
-
OverTheWire Bandit: A Capture The Flag type game designed for beginners to learn Bash commands.
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 | |
| # Path to the SSH config file | |
| config_file="$HOME/.ssh/config" | |
| # Check if the SSH config file exists | |
| if [[ ! -f "$config_file" ]]; then | |
| echo "SSH config file not found at $config_file" | |
| exit 1 | |
| fi |
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
| **/build/* | |
| **/sass/* | |
| **/bootstrap*.js | |
| **/ext-all*.js | |
| **/ext-modern*.js | |
| attic/* | |
| deployment_workspace/* | |
| docs/* | |
| ext/*.js | |
| ext/modern/modern/test/* |
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
| 😒🙅🙄 | |
| $thing for fun and profit | |
| all your $thing are belong to $shutup | |
| honey I $verbed the $thing | |
| $thing demystified | |
| $thing: a deep dive | |
| $verb all the things | |
| make $thing great again | |
| $x and $y and $z, oh my! |
| Conference | Country | Date | Accepted |
|---|---|---|---|
| SkiPHP | UT, USA | Jan 14-15 | |
| PHPBenelux | BE, EU | Jan 27-28 | X |
| SunshinePHP | FL, USA | Feb 2-4 | X |
| FOSDEM - PHP & Friends | BE, EU | Feb 4-5 | |
| PHP UK | UK, EU | Feb 16-17 | |
| Confoo Montreal | QB, CA | Mar 8-10 |
- For your local dev, create a
Dockerfilethat is based on your production image and simply installxdebuginto it. Exemple:
FROM php:5
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
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
| 1. list all remote tags | |
| git ls-remote --tags | |
| 2. delete local tag | |
| git tag -d V_1_0_1 | |
| 3. push tag deletion to remote | |
| git push origin :refs/tags/V_1_0_1 | |
| 4. tag local branch again |
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
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
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
| Array functions: | |
| array_search $needle, $haystack | |
| in_array $needle, $haystack | |
| String functions: | |
| strchr $haystack, $needle | |
| stripos $haystack, $needle | |
| stristr $haystack, $needle | |
| strpos $haystack, $needle | |
| strrchr $haystack, $needle |