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
import cPickle | |
import sys | |
import re | |
import os.path | |
try: | |
recinfofile = file("recinfodic.txt","r") | |
except: | |
print "File 'recinfodic.txt' not found. Generate it with a python procedure found at devTools with the name 'PythonProcWriteRecInfo'" | |
sys.exit() |
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
DELIMITER $$ | |
DROP PROCEDURE IF EXISTS `anchoDeleteDuplicate` $$ | |
CREATE PROCEDURE `anchoDeleteDuplicate`() | |
BEGIN | |
DECLARE done BOOLEAN DEFAULT FALSE; | |
DECLARE uid integer; | |
DECLARE cWebFlotaRow cursor for | |
select wfr.internalid from WebFlotaRow wfr | |
inner join WebFlotaRow wfr2 | |
on wfr.masterid = wfr2.masterid |
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 | |
BACKUPDIR="/opt/backup" #CARPETA DESTINO EN EQUIPO LOCAL | |
LOGFILE=$BACKUPDIR/backup.log # Destino del log | |
USERNAME="" | |
PASSWORD="" | |
BD1="" | |
BD2="" | |
#DISCOLOCAL="/dev/sda2" | |
DISCOLOCAL="/dev/sda" | |
#DISCOMYSQL="/dev/sdb1" |
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 -x | |
#reverting changes from svn | |
svn revert -R . | |
svn status --no-ignore | grep -E '(^\?)|(^\I)' | grep -v -E '(startTest.sh|startTestDirect.sh|*.patch)' | sed -e 's/^. *//' | sed -e 's/\(.*\)/"\1"/' | xargs rm -rf | |
svn update --force --username USERNAMEHERE --password PASSWORDHERE --no-auth-cache | |
#touching files | |
touch force.sync | |
touch sforcelogin.txt | |
touch stdout_excluded.txt |
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
@echo off | |
setlocal | |
for /f usebackq %%c in (`git -C %1 rev-parse --abbrev-ref HEAD `) do @set _branchname_="%%c" | |
for /f usebackq %%c in (`git -C %1 show-ref --heads -s master`) do @set _branchcommit_="%%c" | |
for /f usebackq %%c in (`git -C %1 merge-base master %_branchname_%`) do @set _mastercommit_="%%c" | |
IF "%_branchcommit_%"=="%_mastercommit_%" ( | |
echo generating patch for %_branchname_% | |
git -C %1 diff --relative --no-prefix --no-textconv --ignore-submodules --abbrev master..%_branchname_% '*.py' '*.xml' > %1\%2-%_branchname_%.patch | |
) ELSE ( | |
echo "first rebase master to branch %_branchname_% (CTRL+D in smartgit)" |
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
DELIMITER $$ | |
DROP PROCEDURE IF EXISTS `anchoDropEmptyTables` $$ | |
CREATE PROCEDURE `anchoDropEmptyTables`() | |
BEGIN | |
-- contar las tablas | |
DECLARE table_list TEXT; | |
DECLARE done INT DEFAULT 0; | |
DECLARE TNAME CHAR(255); |
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
# git-svn reverse the meaning of ours and theirs, thus I choose here "theirs" because I want my local gitignore file untouched | |
# https://stackoverflow.com/questions/2959443/why-is-the-meaning-of-ours-and-theirs-reversed-with-git-svn/2960751#2960751 | |
.gitignore merge=theirs | |
# excluding files from diff | |
# https://stackoverflow.com/questions/1016798/excluding-files-from-git-diff | |
*.exe -diff | |
*.pyd -diff | |
*.tgz -diff | |
*.dll -diff |
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
*.data | |
*.log | |
*.patch | |
*.pyc | |
TEST-unittest*.xml | |
coverage_playero.xml | |
erv/demo.htm | |
force.sync | |
last_python_error.txt | |
listwindowreport.txt |
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 | |
#_branchname_=$(git -C $1 rev-parse --abbrev-ref HEAD) | |
_branchname_="${2/refs\/heads\/}" | |
_branchcommit_=$(git -C $1 show-ref --heads -s master) | |
_mastercommit_=$(git -C $1 merge-base master $_branchname_) | |
if [[ $_branchcommit_ == $_mastercommit_ ]]; then | |
echo "generating patch for $_branchname_" | |
_patch_path="$1/gitPlayero-$_branchname_.patch" | |
git -C $1 diff --text --relative --no-prefix --no-textconv --ignore-submodules --abbrev master..$_branchname_ '*.py' '*.xml' > $_patch_path | |
echo "$_patch_path" | sed 's#/#\\#g' | sed 's#.patch#\ #g' > /dev/clipboard |
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 | |
ahead=$(git rev-list --count master..$1) | |
behind=$(git rev-list --count $1..master) | |
echo "Ahead $ahead, behind $behind" |
OlderNewer