Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Jhonatan Salguero Villa sney2002

🏠
Working from home
View GitHub Profile
@sney2002
sney2002 / svn-color-diff.sh
Created Oct 30, 2018
Add color to the output of svn diff
View svn-color-diff.sh
nicediff() {
RED='\033[31m'
GREEN='\033[32m'
CYAN='\033[36m'
BOLD='\033[1;37m'
NC='\033[0m'
R_REMOVED="^\-([^-]|$)"
R_ADDED="^\+([^+]|$)"
R_AT="^\@\@ \-[0-9]+,[0-9]+ \+[0-9]+,[0-9]+ \@\@$"
R_DIFF_HEAD="^(\-\-\-|\+\+\+)[^\-\+]+$|^=+$|^Index:"
@sney2002
sney2002 / ppt_imagext.py
Created Nov 16, 2011
Script para extraer imágenes de archivos ppt, pps y pptx
View ppt_imagext.py
#-*- coding: utf-8 -*-
"""
Copyright (c) 2011, Jhonathan Sneider Salguero Villa (http://www.novatoz.com/)
script para extraer imágenes de archivos ppt, pptx y pps
Requiere:
- pywin32
- Microsoft PowerPoint 2007
"""
try:
@sney2002
sney2002 / mget.py
Created Aug 16, 2011
script python para descarga automática de megaupload
View mget.py
#-*- coding: utf-8 -*-
"""
Copyright (c) 2011, Jhonathan Sneider Salguero Villa (http://www.novatoz.com/)
script para descarga automática de archivos alojados en megaupload.
Intenta burlar proxies que bloquean por nombre de dominio y extensión de archivos
"""
from base64 import urlsafe_b64encode
from contextlib import closing
@sney2002
sney2002 / about.md
Created Aug 9, 2011 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
View about.md
@sney2002
sney2002 / mget
Created May 6, 2011
script para descargar automáticamente archivos alojados en Megaupload
View mget
#!/usr/bin/env bash
# Copyright (c) 2011, Jhonathan Sneider Salguero Villa (http://www.novatoz.com/)
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions: