Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Javier Godoy Núñez rotvulpix

🎯
Focusing
View GitHub Profile
View brew-mcrypt-httpd.conf.diff
--- /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
#
@rotvulpix
rotvulpix / config
Created Jul 26, 2015
sample-nginx-laravel-config
View 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;
@rotvulpix
rotvulpix / copera.rm
Created Sep 14, 2015
Streaming Radio Cooperativa (Nostalgia)
View copera.rm
rtsp://200.29.30.2:554/encoder/copera.rm
--stop--
pnm://200.29.30.2:7070/encoder/copera.rm
View sample-narnia-nginx-vhost.conf
server
{
error_log %s/logs/%s debug;
listen 80;
server_name %s;
root %s/%s;
}
View config.fish
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'
@rotvulpix
rotvulpix / caller.js
Last active Mar 23, 2018
Dynamic (AJAX) Bootstrap Modal (Bootstrap 3)
View caller.js
$("[data-toggle='modal']").click(function(e) {
/* Prevent Default*/
e.preventDefault();
/* Parameters */
var url = $(this).attr('href');
var container = "#" + $(this).attr('data-container');
/* XHR */
$.get(url).done(function(data) {
View gist:4a495a5b09b449602d692e8677e4cd22
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
View config.fish
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
View mysql2 gem in Catalina
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
View docker-pull.sh
#!/bin/bash
prefix=<account>.dkr.ecr.us-west-2.amazonaws.com
region=us-west-2
case $1 in
tukwila)
repository=tukwila
tag=tukwila_i
port_inside=3000
port_outside=8080
;;