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/sh | |
echo "recursively removing .svn folders from" | |
pwd | |
rm -rf `find . -type d -name .svn` |
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
CPP = g++ | |
CC = gcc | |
OBJ = main.o $(RES) | |
BIN = appname | |
RM = rm -f | |
PROGRAM = appname | |
$(PROGRAM): | |
$(CPP) -w *.cpp -lX11 -lGL -lGLU -lglut -g -Wall -O2 -o $(PROGRAM) |
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
/** | |
* Get an polygon postgis object casted to a string and transform to an instance of | |
* google.maps.polygon | |
* @author Pedro Tanaka <pedro.stanaka@gmail.com> | |
* @param {String} polygonStr String from the PostGis function TS_geometryToText(...) | |
* @returns {Array} An array with the LatLng's to be put in the polygon | |
*/ | |
function postgisPolygonToJsonArray(polygonStr){ | |
polygonStr = polygonStr.replace('POLYGON((', ''); |
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
<VirtualHost *:80> | |
ServerName blog.local | |
ServerAdmin pedro.tanaka@sinetic.com.br | |
DocumentRoot /var/www/repos/blog.cake | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride All | |
</Directory> | |
<Directory /var/www/repos/blog.cake> |
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 | |
command -v git >/dev/null 2>&1 || { echo >&2 "Git is not installed. Aborting."; exit 1; } | |
echo "\nWhat name should be used in commits globally? \n" | |
read full_name | |
git config --global user.name "$full_name" |
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 | |
# Install aptitude a better package manager than apt-get | |
# and install the apt-add-repository command | |
sudo apt-get install aptitude python-software-properties | |
# Add the ppa that has the oldstable version of PHP5 | |
sudo apt-add-repository ppa:ondrej/php5-oldstable -y |
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
# PostgreSQL Client Authentication Configuration File | |
# =================================================== | |
# | |
# Refer to the "Client Authentication" section in the PostgreSQL | |
# documentation for a complete description of this file. A short | |
# synopsis follows. | |
# | |
# This file controls: which hosts are allowed to connect, how clients | |
# are authenticated, which PostgreSQL user names they can use, which | |
# databases they can access. Records take one of these forms: |
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
# ----------------------------- | |
# PostgreSQL configuration file | |
# ----------------------------- | |
# | |
# This file consists of lines of the form: | |
# | |
# name = value | |
# | |
# (The "=" is optional.) Whitespace may be used. Comments are introduced with | |
# "#" anywhere on a line. The complete list of parameter names and allowed |
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/sh | |
# Upgrade packages that are available to update | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
# Miscelaneous tools and media players and game emulators | |
sudo apt-get install -y build-essential ubuntu-restricted-extras htop vcl smplayer k3b audacity audacious audacious-plugins visualboyadvance pcsxr | |
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/local/crawler-rio/logs/*.log { | |
rotate 7 | |
daily | |
compress | |
missingok | |
nocreate | |
} |
OlderNewer