I hereby claim:
- I am gsomoza on github.
- I am somoza (https://keybase.io/somoza) on keybase.
- I have a public key ASAnEmCHdmlMrD7R2rSD3zl69IMUVAH0yQdUmpTBLdStWgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# FILE: .git/hooks/pre-push | |
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,') | |
read -p "You're about to push $current_branch. Did you already build with Ant? [y|n] " -n 1 -r < /dev/tty | |
echo | |
if echo $REPLY | grep -E '^[Yy]$' > /dev/null | |
then | |
exit 0 # push will execute |
CLI utilities to clean the Magento media folders.
Features:
app/etc/local.xml
<?php | |
/** | |
* Overrides for OnePica_ImageCdn | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Open Software License (OSL 3.0), a | |
* copy of which is available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/osl-3.0.php | |
* |
[alias] | |
# Usage: git nff {merge-branch} | |
# Checks out {merge-branch}, pulls, and merges recursively with the branch where this command was executed. | |
# In other words: it merges the current branch into {merge-branch}. | |
nff = !bash -c 'cb="$(git rev-parse --abbrev-ref HEAD)" && git checkout "$1" && git pull && git merge --no-ff $cb' - | |
# Usage: git cbranch | |
# Returns the name of the current branch | |
cbranch = rev-parse --abbrev-ref HEAD |
#!bash.exe | |
export SSH_AUTH_SOCK=/tmp/.ssh-socket | |
echo ; | |
echo Starting connection with ssh-agent... | |
ssh-add -l 2>&1 >/dev/null | |
if [ $? = 2 ]; then | |
rm -f /tmp/.ssh-script /tmp/.ssh-agent-pid /tmp/.ssh-socket | |
# Exit status 2 means couldn't connect to ssh-agent; start one now | |
echo Creating new ssh-agent... | |
ssh-agent -a $SSH_AUTH_SOCK > /tmp/.ssh-script |
#!/bin/bash | |
#Set colour prompt using the name, platform or instance id and avzone | |
if [ ! -f "/opt/aws/AWS-INSTID" ]; then | |
curl -s --fail http://169.254.169.254/latest/meta-data/instance-id > /opt/aws/AWS-INSTID | |
fi | |
export INSTID=`cat /opt/aws/AWS-INSTID` | |
if [ ! -f "/opt/aws/AWS-AVZONE" ]; then | |
curl -s --fail http://169.254.169.254/latest/meta-data/placement/availability-zone > /opt/aws/AWS-AVZONE |
#!/bin/sh | |
usage () { | |
echo "Usage: $0 [-i [identity_file]] [user@]machine" | |
exit 1 | |
} | |
# Parse options | |
while getopts ":i:" o | |
do case "$o" in |
<!-- app/etc/modules/Acme_Dynamic.xml --> | |
<?xml version="1.0" encoding="UTF-8"?> | |
<config> | |
<modules> | |
<Acme_Dynamic> | |
<codePool>local</codePool> | |
<active>true</active> | |
</Acme_Dynamic> | |
</modules> | |
</config> |
program aeropuerto; | |
uses crt; | |
const | |
OPCIONES = ['A','D','P','F']; | |
type | |
RegEvento = record | |
nroVuelo:integer; |