This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- ./pages/models.py.orig 2016-09-08 03:02:33.000000000 +0200 | |
| +++ ./pages/models.py 2017-01-26 23:26:16.672548649 +0100 | |
| @@ -18,6 +18,7 @@ | |
| from mezzanine.pages.fields import MenusField | |
| from mezzanine.pages.managers import PageManager | |
| from mezzanine.utils.urls import path_to_slug | |
| +from mezzanine.core.models import wrapped_manager | |
| class BasePage(Orderable, Displayable): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [core] | |
| editor = vim | |
| [alias] | |
| lg = !"git lg1" | |
| lg1 = !"git lg1-specific --all" | |
| lg2 = !"git lg2-specific --all" | |
| lg3 = !"git lg3-specific --all" | |
| lg1-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' | |
| lg2-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find -type f -name "*.xml" -exec xmllint --noout {} \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| nombre | name | nom | iso2 | iso3 | phone_code | |
|---|---|---|---|---|---|---|
| Afganistán | Afghanistan | Afghanistan | AF | AFG | 93 | |
| Albania | Albania | Albanie | AL | ALB | 355 | |
| Alemania | Germany | Allemagne | DE | DEU | 49 | |
| Algeria | Algeria | Algérie | DZ | DZA | 213 | |
| Andorra | Andorra | Andorra | AD | AND | 376 | |
| Angola | Angola | Angola | AO | AGO | 244 | |
| Anguila | Anguilla | Anguilla | AI | AIA | 1 264 | |
| Antártida | Antarctica | L'Antarctique | AQ | ATA | 672 | |
| Antigua y Barbuda | Antigua and Barbuda | Antigua et Barbuda | AG | ATG | 1 268 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Your other aliases go here. | |
| alias kubetoken="kubectl config view | grep -A10 \"name: \$(kubectl config current-context)\" | awk '\$1==\"access-token:\" {print \$2}'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" ?> | |
| <background> | |
| <static> | |
| <!-- Duration in seconds --> | |
| <duration>120.0</duration> | |
| <file>/home/ruben/Pictures/Wallpapers/file-1.jpg</file> | |
| </static> | |
| <transition> | |
| <!-- Duration of the transition in seconds, default is 2 seconds --> | |
| <duration>0.5</duration> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dig +short myip.opendns.com @resolver1.opendns.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| echo 'alias "c=xclip"' >> ~/.bashrc | |
| echo 'alias "v=xclip -o"' >> ~/.bashrc | |
| echo 'alias "cs=xclip -selection clipboard"' >> ~/.bashrc | |
| echo 'alias "vs=xclip -o -selection clipboard"' >> ~/.bashrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function color_my_prompt { | |
| local __user_and_host="\[\033[01;32m\]\u@\h" | |
| local __cur_location="\[\033[01;34m\]\w" | |
| local __git_branch_color="\[\033[31m\]" | |
| #local __git_branch="\`ruby -e \"print (%x{git branch 2> /dev/null}.grep(/^\*/).first || '').gsub(/^\* (.+)$/, '(\1) ')\"\`" | |
| local __git_branch='`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`' | |
| local __prompt_tail="\[\033[35m\]$" | |
| local __last_color="\[\033[00m\]" | |
| export PS1="$__user_and_host $__cur_location $__git_branch_color$__git_branch$__prompt_tail$__last_color " | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # AWS CLI docker container | |
| # Needs these env variables for the AWS account: | |
| # AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION | |
| alias aws='docker run --rm -t -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" -e "AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}" -v "$(pwd):/project" mesosphere/aws-cli' |
OlderNewer