# .docksal/docksal.yml
cli:
# Make sure that the cli image is updated.
image: docksal/cli:2.11-php7.3
environment:
git diff > file.patch
But sometimes it happens that part of the stuff you're doing are new files that are untracked and won't be in your git diff output. So, one way to do a patch is to stage everything for a new commit (but don't do the commit), and then:
git diff --cached > file.patch
Add the 'binary' option if you want to add binary files to the patch (e.g. mp3 files):
git diff > file.patch
But sometimes it happens that part of the stuff you're doing are new files that are untracked and won't be in your git diff output. So, one way to do a patch is to stage everything for a new commit (but don't do the commit), and then:
git diff --cached > file.patch
Add the 'binary' option if you want to add binary files to the patch (e.g. mp3 files):
- mycli: MyCLI is a command line interface for MySQL, MariaDB, and Percona with auto-completion and syntax highlighting. https://www.mycli.net/
- peco: Simplistic interactive filtering tool. https://github.com/peco/peco
- fd: A simple, fast and user-friendly alternative to 'find'. https://github.com/sharkdp/fd/
- fx: Command-line JSON processing tool https://github.com/antonmedv/fx
- bat: A cat(1) clone with wings.. https://github.com/sharkdp/bat
- bat: A cat(1) clone with wings.. https://github.com/sharkdp/bat
- bat: A cat(1) clone with wings.. https://github.com/sharkdp/bat
- bat: A cat(1) clone with wings.. https://github.com/sharkdp/bat
- bat: A cat(1) clone with wings.. https://github.com/sharkdp/bat
<?php | |
namespace Drupal\my_module\Services; | |
use Drupal\Core\Logger\LoggerChannelFactory; | |
/** | |
* Class MyService. | |
* | |
* @package Drupal\my_module\Services |
# Programs | |
Chrome (https://www.google.com/intl/en/chrome/browser/) | |
Skype (http://www.skype.com/en/download-skype/skype-for-computer/) | |
Moom [App store] | |
Alinof timer [App store] | |
# Desarrollo | |
Xcode [App store] |
# BASH Configuration and Aliases | |
# source: http://natelandau.com/my-mac-osx-bash_profile/ | |
# source: https://github.com/mathiasbynens/dotfiles | |
# Sections: | |
# 0. Execute Only Once (if you want) | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching |
This gist assumes:
- you have a local git repo
- with an online remote repository (github / bitbucket etc)
- and a cloud server (Rackspace cloud / Amazon EC2 etc)
- your (PHP) scripts are served from /var/www/html/
- your webpages are executed by apache
- apache's home directory is /var/www/
<?php | |
# xxx/yyyBundle/Command/AddFulltextIndexesCommand.php | |
/** | |
* AddFulltextIndexesCommand.php | |
* | |
* @author Jérémy Hubert <jeremy.hubert@infogroom.fr> | |
* @since lun. 26 sept. 2011 09:23:53 | |
*/ | |
namespace xxx\yyyBundle\Command; |