Skip to content

Instantly share code, notes, and snippets.

@asanchez75
asanchez75 / gist:3907439
Created October 17, 2012 19:03
Vagrant
1. vagrant box add base http://localhost/boxes/centos_56_32.box
means that you add a box named "base"
2. vagrant box list
means list of availables boxes
3. vagrant init base
@asanchez75
asanchez75 / gist:3915691
Created October 19, 2012 01:10
El presente manual describe la instalacion de Apache + MySQL + PHP desde código fuente.
El presente manual describe la instalacion de Apache + MySQL + PHP desde código fuente.
=====================================================================================
Los paquetes se instalarán en la carpeta
/usr/local
y deberían quedar así
@asanchez75
asanchez75 / scss base template
Created October 19, 2012 05:22 — forked from akikoo/scss base template
SCSS (Sass) template with cross-browser CSS3 mixins
/* Welcome to Compass.
* In this file you should write your main styles. (or centralize your imports)
* Import this file using the following HTML or equivalent:
* <link rel="stylesheet" href="/stylesheets/screen.css" media="screen" type="text/css" /> */
// This comment is not output to CSS
/* This comment is output to CSS */
// The CSS3 module provides cross-browser mixins for CSS properties
http://www.csse.monash.edu.au/documents/bibtex/
Compiling the example
Save the above text into a file called example.tex
Now use the following commands
latex example
bibtex example
latex example
@asanchez75
asanchez75 / AA_Stringexpand
Created October 27, 2012 22:02
AA_Stringexpand scripts
class AA_Stringexpand_Eval extends AA_Stringexpand {
function expand($code) {
ob_start();
print eval('?>' . $code);
$output = ob_get_contents();
ob_end_clean();
return $output;
}
}
Diagramas de caso de uso ----> Diagrama de secuencias
Diagrama de clases --> Diagramas de estados (como se transforma 1
clase) + Diagramas de Actividad (el flujo de actividades entre 2 o mas
clases)
Diagrama de componentes (Las dependencias del software, Drupal y
Geoserver por ejemplo, Jquery, etc)
Diagrama de despliegue (hardware)
@asanchez75
asanchez75 / stringexpand.php
Created November 2, 2012 02:17
código para nube de tags
<?php
/**
*
* @package CustomScripts
* @author Honza Malik <[email protected]>, Econnect
*/
// Definition of shortcuts {_:Shortcut..:..}. It is not good place to put it
// here - I will write manager for these shortcuts directly in AA admin interface
@asanchez75
asanchez75 / AA API
Created November 2, 2012 23:44
some notes on API for ActionApps
Sessions
include/locsess.php3 --> Line 346 --> require_once(AA_INC_PATH . ($encap ? "extsessi.php3" : "extsess.php3"));
include/locauth.php3
include/extsess.php3 (* se usa cuando encap = FALSE, encap =TRUE se usa cuando en el SHTML se incluye php)
aqui se elige entre AA_CP_Session ó AA_SL_Session, si $encap = TRUE se usa AA_SL_Session, sino por defecto es AA_CP_Session
include/extsessi.php3
Users
@asanchez75
asanchez75 / Virtualbox Guest Internet Access
Created November 15, 2012 00:54
Re: [SOLVED] Virtualbox Guest Internet Access not working
http://forums.linuxmint.com/viewtopic.php?f=90&t=109264
Re: [SOLVED] Virtualbox Guest Internet Access not working
Postby thedarb on Wed Aug 29, 2012 8:26 pm
I posted this reply the first time a week ago, but it seems it never showed up.
The problem with NAT (at least for me) was that the vm machines weren't getting their DNS assigned from Virtualbox's DHCP service. The clients got IP's and routes, they just never got DNS. I suspect it has something to do with Mint now using the resolvconf package instead of using a standard resolv.conf file in /etc. I haven't taken time to confirm that suspicion.
@asanchez75
asanchez75 / boost
Created November 15, 2012 03:11
boost
#
# Apache/PHP/Drupal settings:
#
# Protect files and directories from prying eyes.
<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$">
Order allow,deny
</FilesMatch>
# Don't show directory listings for URLs which map to a directory.