Skip to content

Instantly share code, notes, and snippets.

View jaimeguzman's full-sized avatar

Jaime Guzman jaimeguzman

View GitHub Profile
@jaimeguzman
jaimeguzman / CA_Green_terminal
Created June 7, 2015 16:31
Codeanywhere.com Change terminal color
jQuery(".terminal-wrap .terminal").attr("style","color:#00FF00");
@jaimeguzman
jaimeguzman / fix-gitignore
Created June 7, 2015 17:21
ignore-files-that-have-already-been-committed-to-a-git-repository
#http://stackoverflow.com/questions/1139762/ignore-files-that-have-already-been-committed-to-a-git-repository
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
<?php
/**
* @file
* Contains \Drupal\Core\Session\AccountProxy.
*/
namespace Drupal\Core\Authentication;
@jaimeguzman
jaimeguzman / DNS OSX Yosemite
Created June 8, 2015 21:37
Release DNS OSX Yosemite
sudo discoveryutil mdnsflushcache
@jaimeguzman
jaimeguzman / Run some drupal test
Created June 9, 2015 21:13
Run some drupal test for issue #2477213
php core/scripts/run-tests.sh --url http://drupal8.loc/ --color --verbose --class "Drupal\system\Tests\Session\AccountSwitcherTest" &
php core/scripts/run-tests.sh --url http://drupal8.loc/ --color --verbose --class "Drupal\Tests\Core\Session\UserSessionTest" &
php core/scripts/run-tests.sh --url http://drupal8.loc/ --color --verbose --class "Drupal\Tests\Core\Session\AnonymousUserSessionTest" &
php core/scripts/run-tests.sh --url http://drupal8.loc/ --color --verbose --class "Drupal\Tests\Core\Session\PermissionsHashTest" &
#Drupal\Tests\Core\PageCache\NoSessionOpenTest 1 passes
php core/scripts/run-tests.sh --url http://drupal8.loc/ --color --verbose --class "Drupal\Tests\Core\Session\SessionConfigurationTest"
@jaimeguzman
jaimeguzman / gist:9d4f30707e3f6a2f460c
Last active August 29, 2015 14:23
update drupal core
#http://drupal.gatech.edu/handbook/module-updates-drush
#http://www.drushcommands.com/drush-7x/pm/pm-update
drush pm-update projects drupal-7.38
drush pm-update
@jaimeguzman
jaimeguzman / .gitconfig
Last active August 29, 2015 14:23 — forked from andypost/.gitconfig
[color]
ui = auto
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[core]
whitespace=fix,-indent-with-non-tab,-indent-with-tab,trailing-space,cr-at-eol
@jaimeguzman
jaimeguzman / .gitconfig
Last active August 29, 2015 14:23 — forked from pksunkara/config
[user]
name = Jaime Guzman
email = me@jguzman.cl
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
@jaimeguzman
jaimeguzman / gist:c708491966c690d9ddaf
Created June 27, 2015 18:04
Git branch on bash terminal(Unix)
# Git branch in prompt.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "
hide = update-index --assume-unchanged
unhide = update-index --no-assume-unchanged