Skip to content

Instantly share code, notes, and snippets.

View gaulatti's full-sized avatar

Javier Godoy Núñez gaulatti

View GitHub Profile
@gaulatti
gaulatti / clear2.php
Created October 13, 2014 16:30
Deploying Symfony2
<?php
shell_exec('rm -rf ../app/cache/*');
shell_exec('chmod -R 777 ../app/cache/*');
shell_exec('rm -rf ../app/logs/*');
shell_exec('chmod -R 777 ../app/logs/*');
@gaulatti
gaulatti / BaseController.php
Created November 21, 2014 17:07
Laravel Base Controller w/Hacks
<?php
class BaseController extends Controller {
/**
* Setup the layout used by the controller.
*
* @return void
*/
protected function setupLayout()
--- /usr/local/etc/apache2/2.2/original/httpd.conf 2014-12-05 20:14:50.000000000 -0500
+++ /usr/local/etc/apache2/2.2/httpd.conf 2014-12-05 20:16:46.000000000 -0500
@@ -38,7 +38,7 @@
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
-Listen 8080
+Listen 8000
#
@gaulatti
gaulatti / config
Created July 26, 2015 21:47
sample-nginx-laravel-config
server {
listen 80;
server_name localhost;
root /Users/rotvulpix/Source/Lab/front;
access_log /var/nginx/logs/front.dev.log main;
error_log /var/nginx/logs/front.dev.error.log;
location / {
try_files $uri $uri/ /index.php?$query_string;
@gaulatti
gaulatti / copera.rm
Created September 14, 2015 21:28
Streaming Radio Cooperativa (Nostalgia)
rtsp://200.29.30.2:554/encoder/copera.rm
--stop--
pnm://200.29.30.2:7070/encoder/copera.rm
server
{
error_log %s/logs/%s debug;
listen 80;
server_name %s;
root %s/%s;
}
set -gx PATH $HOME/.composer/vendor/bin $PATH
# GIT
# Aliases
alias ll='ls -la'
alias g='git'
alias gst='git status'
alias gd='git diff'
alias gdc='git diff --cached'
alias gl='git pull'
alias gup='git pull --rebase'
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rango_a_calcular As Range
Set rango_a_calcular = Range("D3:F12")
If Not Application.Intersect(rango_a_calcular, Range(Target.Address)) Is Nothing Then
For i = 1 To rango_a_calcular.Rows.Count
Dim fila_actual As Integer
Dim medida_2 As Integer
Dim medida_3 As Integer
@gaulatti
gaulatti / config.fish
Created June 20, 2019 06:21
Fish Config
set -gx PATH /Users/rotvulpix/.rvm/bin $PATH
set -gx LDFLAGS $LDFLAGS "-L/usr/local/opt/zlib/lib"
set -gx CPPFLAGS $CPPFLAGS "-I/usr/local/opt/zlib/include"
# For pkg-config to find zlib you may need to set:
set -gx PKG_CONFIG_PATH $PKG_CONFIG_PATH "/usr/local/opt/zlib/lib/pkgconfig"
# GIT
# Aliases
alias git=hub
brew install openssl
brew install mysql
gem install mysql2 --source 'https://rubygems.org/' -- --with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include