Skip to content

Instantly share code, notes, and snippets.

View branquito's full-sized avatar
🌴
On vacation

Branchito de Munze branquito

🌴
On vacation
View GitHub Profile
@branquito
branquito / view.html.php
Created February 11, 2013 21:15
WORKS--image-move-script-joomla1.5
<?php
/**
* @version $Id: view.html.php 11393 2009-01-05 02:11:06Z ian $
* @package Joomla
* @subpackage Contact
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant to the
* GNU General Public License, and as distributed it includes or is derivative
* of works licensed under the GNU General Public License or other free or open
@branquito
branquito / view.html.php
Created February 10, 2013 23:47
+event image move
<?php
/**
* @version $Id: view.html.php 11393 2009-01-05 02:11:06Z ian $
* @package Joomla
* @subpackage Contact
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant to the
* GNU General Public License, and as distributed it includes or is derivative
* of works licensed under the GNU General Public License or other free or open
@branquito
branquito / view.html.php
Created February 4, 2013 21:56
JOOMLA1.5--ScriptMoveImages
<?php
/**
* @version $Id: view.html.php 11393 2009-01-05 02:11:06Z ian $
* @package Joomla
* @subpackage Contact
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant to the
* GNU General Public License, and as distributed it includes or is derivative
* of works licensed under the GNU General Public License or other free or open
#!/bin/sh
echo 'Importing *.sql into database..'
mysql -u user -ppassword dbname < /path/to/site/dbname-git.sql
echo '..done!'
@branquito
branquito / configuration.php
Created January 27, 2013 17:02
configuration-J-generic.php file
<?php
class JConfig {
public $offline = '0';
public $offline_message = 'This site is down for maintenance.<br /> Please check back again soon.';
public $display_offline_message = '1';
public $offline_image = '';
public $sitename = 'fidra';
public $editor = 'tinymce';
public $captcha = '0';
public $list_limit = '20';
@branquito
branquito / instructions-pdv-custom-comments.md
Created January 24, 2013 02:19
VIM -- PHPdoc custom commenting

Vim search and replace PHPdoc comments

install vim plugin

--> [pdv-standalone](https://github.com/mikehaertl/pdv-standalone)

..set working dir where you want to do striping/inserting phpdoc comments, then..

@branquito
branquito / wincmd.ini
Created January 21, 2013 21:00
INI -- wincmd.ini
[Configuration]
InstallDir=c:\totalcmd
firstmnu=3001
FirstTime=0
test=101
onlyonce=1
TrayIcon=1
UseRightButton=0
Savepath=1
Savepanels=1
@branquito
branquito / .bashrc
Created January 18, 2013 19:07
BASH -- .bashrc-msysgit-windows
## source .bashrc ##
alias reload='. .bashrc'
## handy shortcuts ##
alias h='history'
alias h.20='history 20'
## create a new set of commands ##
alias path='echo -e ${PATH//:/\\n}'
alias now='date +"%T"'
@branquito
branquito / .gitignore
Created December 10, 2012 00:23
typical .gitignore file for JOOMLA
# files to ignore in typical Joomla installation
# also with some exclusions useful for SublimeText editor
*~
configuration.php
*.sublime-project
*.sublime-workspace
tags
.tags*
logs/
@branquito
branquito / SH_MYSQL_backup-all-dbs.sh
Created December 7, 2012 00:17
shell script to backup all db's [MYSQL]
#!/bin/bash
# Shell script to backup MySql database
# To backup Nysql databases file to /backup dir and later pick up by your
# script. You can skip few databases from backup too.
# For more info please see (Installation info):
# http://www.cyberciti.biz/nixcraft/vivek/blogger/2005/01/mysql-backup-script.html
# Last updated: Aug - 2005
# --------------------------------------------------------------------
# This is a free shell script under GNU GPL version 2.0 or above
# Copyright (C) 2004, 2005 nixCraft project