Skip to content

Instantly share code, notes, and snippets.

View guillermodoghel's full-sized avatar
🇦🇷
⭐️⭐️⭐️

guillermodoghel

🇦🇷
⭐️⭐️⭐️
View GitHub Profile
@guillermodoghel
guillermodoghel / MeliJava.xml
Created February 12, 2020 16:28
IntelliJ CodeStyle
<code_scheme name="MeliAndroid" version="173">
<option name="OTHER_INDENT_OPTIONS">
<value>
<option name="USE_TAB_CHARACTER" value="true" />
</value>
</option>
<option name="LINE_SEPARATOR" value="&#xA;" />
<option name="GENERATE_FINAL_LOCALS" value="true" />
<option name="GENERATE_FINAL_PARAMETERS" value="true" />
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="999999999" />
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.beans.BeanInfo;
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.sql.ResultSet;
@guillermodoghel
guillermodoghel / gist:5525a5888f3338f66874438c00aeb4e8
Last active May 26, 2019 05:40
FUCK (remove) MAILTRACK SIGNATURE AND MODAL
// Are you goddamn tired of forgetting to remove the mailtrack signature?
// Are you poor or miserable enough to refuse paying for that service,
// or you consider that giving privilege over reading your emails
// is enough cost for also giving them some money?
//
// Ok, so, lets get rid of that annoying freemium shit.
// First, get some plugin to run JS code on your pages.
// This one is a good choice -> https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija
//Then just apply the following script
@guillermodoghel
guillermodoghel / .zshrc
Last active February 3, 2019 04:29
My Oh my zsh setup
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="~/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@guillermodoghel
guillermodoghel / matarpuerto.sh
Created January 18, 2019 15:28
Script para matar lo que sea que este corriendo en algún puerto
#!/bin/sh
echo "☠️ Matando lo que sea que este corriendo en el puerto $1"
kill -9 $(lsof -ti tcp:$1)
@guillermodoghel
guillermodoghel / rss.php
Created November 27, 2018 20:55
Prestashop RSS feed modified for facebook store.
<?php
/*
* 2007-2016 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
const fetch = require('node-fetch'),
BASE = 'http://letsrevolutionizetesting.com/challenge.json';
async function getCode(url) {
let response = await fetch(url);
let jsonresponse = await response.json();
return jsonresponse;
}
@guillermodoghel
guillermodoghel / patch432-94.sh
Created August 31, 2018 05:37
Patching React-Native 0.43.2 to compile with XCode 9.4.1
#!/bin/sh
# Fix RN version 33
echo "Checking that ReactNative v 432 is patched"
patch -N -p1 --dry-run --silent < rn432-94.patch >/dev/null 2>&1
if [ $? -eq 0 ];
then
# apply the patch
patch -N -p1 < rn432-94.patch
@guillermodoghel
guillermodoghel / DateIntervals.js
Last active May 13, 2018 19:53
Generate daily dates intervals for a date range.
/* Generate daily dates intervals for a date range.
Example:
For a startDate, endDate pair of
2018-05-08T13:12:10.846Z, 2018-05-10T20:46:00.846Z
The output will be
[ [ 2018-05-08T13:12:10.846Z, 2018-05-08T23:59:59.999Z ],
[ 2018-05-09T00:00:00.000Z, 2018-05-09T23:59:59.999Z ],
@guillermodoghel
guillermodoghel / xor_strings.js
Created April 23, 2018 14:40 — forked from ril3y/xor_strings.js
Simple Javascript String XOR utility
var xor_str = function(s,K)
{
c = '';
for(i=0; i<str.length; i++) {
for(ik=0; ik<K.length; ik++){
c += String.fromCharCode(str[i].charCodeAt(0).toString(10) ^ key.charCodeAt(0).toString(10)); // XORing with letter 'K'
}
}
return c;
}