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 | |
cd ~/dev/bigbluebutton/bigbluebutton-web | |
sudo rm ./target/bigbluebutton-0.1.war | |
grails war | |
sudo rm -r /var/lib/tomcat7/webapps/bigbluebutton* | |
sudo cp ./target/bigbluebutton-0.1.war /var/lib/tomcat7/webapps/ | |
sudo service tomcat7 restart | |
sudo mv /var/lib/tomcat7/webapps/bigbluebutton-0.1 /var/lib/tomcat7/webapps/bigbluebutton | |
sudo service tomcat7 restart |
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/ruby | |
a = IO.readlines("/home/guga/Music/playlist_regueton").each do |line| | |
if !line.strip.empty? | |
cmd = `find '/media/guga/Mi disco/' -name #{line.strip}*` | |
puts cmd | |
`mplayer "#{cmd.strip}"` | |
end | |
end |
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
function initialize() { | |
var gyeLatLng = new google.maps.LatLng(-2.1705289,-79.919566); | |
var mapOptions = { | |
center: gyeLatLng, | |
zoom: 13 | |
}; | |
var map = new google.maps.Map(document.getElementById('map-canvas'), | |
mapOptions); | |
var marker = new google.maps.Marker({ |
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
sudo wget -q -O - http://linux.dell.com/repo/firmware/bootstrap.cgi | bash | |
sudo apt-get install firmware-addon-dell | |
sudo apt-get install $(bootstrap_firmware -a) | |
sudo update_firmware |
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
# | |
# | |
#/etc/network/interfaces | |
# | |
# | |
# This file describes the network interfaces available on your system | |
# and how to activate them. For more information, see interfaces(5). | |
# The loopback network interface | |
auto lo |
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 | |
# | |
# Script to install Aptana and create a launcher. | |
# Not tested. | |
# Based on instructions: http://www.ubuntu-guia.com/2011/07/instalar-aptana-studio-3-ubuntu.html | |
# Author: Gustavo Salazar <guga.salazar.loor@gmail.com> | |
# Date: July 29, 2012 | |
# How to use: | |
# chmod +x install-aptana |
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
# install dependencies | |
sudo apt-get install build-essential git-core checkinstall yasm texi2html libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libvorbis-dev libx11-dev libxfixes-dev libxvidcore-dev zlib1g-dev --yes | |
# Install libvpx | |
cd /usr/local/src | |
sudo git clone http://git.chromium.org/webm/libvpx.git | |
cd libvpx | |
sudo ./configure | |
sudo make | |
sudo make install |
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 | |
# | |
# Author: Gustavo Salazar <guga.salazar.loor@gmail.com> | |
# Created: 2015-12-14 | |
# | |
# Setup: | |
# | |
# * Place this script in /usr/local/bin/ |
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
rvm use 1.9.3 | |
rvm gemset use migemsetloco | |
sudo ntpdate ntp.ubuntu.net |
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
(let [my_list '(a b b c a a c) my_set (set my_list)] | |
(zipmap | |
my_set | |
(map | |
(fn [y] | |
(count | |
(filter | |
(fn [x] (= x y)) my_list | |
) |
OlderNewer