View gist:4367fd93a728c4cfd5ba7e62dc480cde
git filter-branch -f --env-filter \
'if [ $GIT_COMMIT = 41cc2a32b50be713553ca2a04d1329c04c0e7668 ]
export GIT_AUTHOR_DATE="Mon Sep 11 01:07:03 2017 -0800"
export GIT_COMMITTER_DATE="Mon Sep 11 01:14:26 2017 -0800"
elif [ $GIT_COMMIT = 420a13407bc42f472e9771f0a47f623619a87a4b ]
export GIT_AUTHOR_DATE="Sun Sep 17 10:31:43 2017 -0800"
export GIT_COMMITTER_DATE="Sun Sep 17 11:14:14 2017 -0800"
View docker
## login
docker login
## update base
docker build -f base.dockerfile -t jeff1evesque/ml-base:0.7 .
docker push jeff1evesque/ml-base:0.7
## update mongodb
docker build -f mongodb.dockerfile -t jeff1evesque/ml-mongodb:0.7 .
docker push jeff1evesque/ml-mongodb:0.7
View change_context.txt
## immediate changes
chcon -Rv --type=httpd_sys_content_t file-name
## persistent changes
semanage fcontext -a -t httpd_sys_script_exec_t 'docroot(/.*)?'
restorecon -RFv docroot/
View git-commit-comments
git config core.commentChar ";"
View metadata.json
"name": "jeff1evesque/trusty64",
"description": "Ubuntu 14.04 LTS 64Bit",
"versions": [
"version": "1.0.0",
"providers": [
"name": "virtualbox",
"url": "",
vagrant@vagrant-ubuntu-trusty-64:~$ puppet apply -e 'notify { "something@%/ok.*": }'
Notice: Compiled catalog for vagrant-ubuntu-trusty-64.home in environment produc
tion in 0.03 seconds
Notice: something@%/ok.*
Notice: /Stage[main]/Main/Notify[something@%/ok.*]/message: defined 'message' as
Notice: Applied catalog in 0.01 seconds
# step 1: build container
$ docker build -f docker/redis.dockerfile -t <image-alias> .
# step 2: run container
$ docker run -dt --name <container-name> <image-alias>
# step 3: unix based
$ docker exec -it <container-name> bash
Running pre-create checks...
Creating machine...
(default) Copying C:\Users\Jeff\.docker\machine\cache\boot2docker.iso to C:\User
(default) Creating VirtualBox VM...
(default) Creating SSH key...
(default) Starting the VM...
(default) Check network to re-create if needed...
(default) Windows might ask for the permission to configure a dhcp server. Somet
imes, such confirmation window is minimized in the taskbar.
View ensure_tables
# ensure missing sql tables exist
$ drush ev 'foreach(drupal_get_schema() as $name => $schema) if(!db_table_exists($name)) db_create_table($name, $schema)'
# update database schema
$ drush updatedb
View style.yml
# Default application configuration that all configurations inherit from.
scss_files: "**/*.scss"
plugin_directories: ['.scss-linters']
# List of gem names to load custom linters from (make sure they are already
# installed)
plugin_gems: []
# Default severity of all linters.