This file contains 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 | |
OUTPUT=VGA1 | |
MODE="1920x1200" | |
xrandr --newmode $MODE 193.25 1920 2056 2256 2592 1200 1203 1209 1245 -hsync +vsync | |
xrandr --addmode $OUTPUT $MODE | |
xrandr --output OUTPUT --mode $MODE |
This file contains 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
using System.Windows; | |
using System.Windows.Controls; | |
namespace Rkmax.Controls | |
{ | |
public class Behaviors | |
{ | |
public static readonly DependencyProperty SelectTextOnFocusProperty = DependencyProperty | |
.RegisterAttached("SelectTextOnFocus", typeof(bool), typeof(Behaviors), new FrameworkPropertyMetadata(false, GotFocus)); |
This file contains 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
<Window x:Class="TypoV.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
<!--...--> | |
xmlns:Controls="clr-namespace:Rkmax.Controls;assembly=Rkmax"> | |
<!--...--> | |
<!--Habilitamos el comportamiento en el TextBox--> | |
<TextBox Controls:Behaviors.SelectTextOnFocus="True"/> | |
<!--...--> | |
</Window> |
This file contains 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
require 'sprockets' | |
require 'logger' | |
require 'fileutils' | |
require 'pathname' | |
require 'json' | |
ROOT = Pathname(File.dirname(__FILE__)) | |
LOGGER = Logger.new(STDOUT) | |
BASE_PATH = "path/to/assets" |
This file contains 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 | |
SOURCE=http://es.archive.ubuntu.com/ubuntu/ | |
BASEPATH="images" | |
VARIANT=minbase | |
ARCH=amd64 | |
INCLUDE="language-pack-es,language-pack-es-base,ssh,vim" | |
if [ -z $BASEPATH ];then | |
echo "Defina una ruta base" |
This file contains 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
#!/usr/bin/env bash | |
sudo apt-get install mysql-server apache2 php5 php5-cli php-apc php5-gd php5-curl php5-sqlite php5-mysql php5-xdebug php5-intl libapache2-mod-php5 git |
This file contains 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
[PHP] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |
This file contains 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
#!/usr/bin/env bash | |
# usar el comando 'gtf vres hres hfreq' para obtener la configuracion adecuada | |
# Ejemplo: | |
# | |
# monitor de 1920 x 1200 de 60 Hz | |
# | |
# $ gtf 1920 1200 60 | |
# 1920x1200 @ 60.00 Hz (GTF) hsync: 74.52 kHz; pclk: 193.16 MHz | |
# Modeline "1920x1200_60.00" 193.16 1920 2048 2256 2592 1200 1201 1204 1242 -HSync +Vsync |
This file contains 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 export JAVA_HOME=$TMPL_PATH |
This file contains 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
var mostrar_eventos = function() { | |
// [{titulo: "Evento 1", descripcion: "Descripcion Evento 1"},{titulo: "Evento 2", descripcion: "Descripcion Evento 2"}] | |
// Cada objeto puede tener muchos campos como fecha, url, image url, etc. el resto depende de tu necesidad e imaginacion | |
var eventos = {{eventos}} | |
,template_html = '<div class="left fecha">DATE</div><div class="left"><h4><a href="/eventos">TITLE</a></h4></div><div class="descripcion" style="display: none">DESCRIPTION</div>' | |
,$eventosContainer = $('#ticker_eventos') | |
html = [] | |
; | |
for (var i = eventos.length - 1; i >= 0; i--) { |