Skip to content

Instantly share code, notes, and snippets.

Alejandro Hernandez Loza pinkymanga

Block or report user

Report or block pinkymanga

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View busqueda y remplazo en directorio
find app/ -type f -print0 | xargs -0 sed -i 's/wordToChange/wordCahnged/g'
's/console.(log|debug|info)( ?| +)\([^;]*\);//g'
View gist:0b8faa07180bfa2767ff
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
PROMPT_COMMAND='__git_ps1 "\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]" "\\\$ "'
GIT_PS1_DESCRIBE_STYLE='describe'
GIT_PS1_SHOWDIRTYSTATE=true
View ImportItemGroupProfilesService.groovy
void rollback(List<ItemGroupProfile> itemGroupProfiles){
itemGroupProfiles.each { itemGroupProfile ->
SkuProfile.executeUpdate(
'delete from SkuProfile where itemGroupProfile=:itemGroupProfile',
[itemGroupProfile: itemGroupProfile])
itemGroupProfile.delete(flush: true, failOnError: true)
}
}
View criteria enfermo
if (order) {
List details = OrderDetail.createCriteria().list() {
eq('order', order)
join 'status'
join 'skuProfile'
join 'skuProfile.itemGroupProfile'
join 'skuProfile.itemGroupProfile.itemGroup'
join 'skuProfile.itemGroupProfile.itemGroup.brand'
join 'skuProfile.itemGroupProfile.itemGroup.itemGroupType'
join 'skuProfile.vertical'
You can’t perform that action at this time.