Skip to content

Instantly share code, notes, and snippets.

View bonfil1's full-sized avatar
🏠
Working from home

Jose Angel Bonfil bonfil1

🏠
Working from home
View GitHub Profile
@bonfil1
bonfil1 / Docksal-Mailhog-Drupal.md
Created January 28, 2021 17:21 — forked from fredysan/Docksal-Mailhog-Drupal.md
Configure Docksal to use Mail Hog and use it from Drupal

Configure Docksal to use Mail Hog and use it from Drupal 8

Docksal settings

# .docksal/docksal.yml

  cli:
    # Make sure that the cli image is updated.
    image: docksal/cli:2.11-php7.3
 environment:

Keybase proof

I hereby claim:

  • I am bonfil1 on github.
  • I am bonfil1 (https://keybase.io/bonfil1) on keybase.
  • I have a public key ASDxD-i0FMw31IfwusMHQZSXItI8QwTpGaUBJCncKDqkQQo

To claim this, I am signing this object:

Generate a patch from un-commited 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):

@bonfil1
bonfil1 / .bash_profile
Created December 17, 2017 00:56 — forked from monkeymonk/.bash_profile
Mac OS - BASH Configuration and Aliases (eg. `sudo nano ~/.bash_profile`)
# 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
{
"name" : "Jose",
"last_name" : "Bonfil",
"wage" : 10000
"data" : [
"status" : "single",
"genre" : "m"
]
}