Skip to content

Instantly share code, notes, and snippets.

Avatar

Matías Dumrauf mdumrauf

  • Palermo, CABA
View GitHub Profile
@mdumrauf
mdumrauf / MapsDownloadService.java
Last active Sep 21, 2021
Download + Unzip example in Android
View MapsDownloadService.java
package zzz.yyy.xxx.network.service;
import org.json.JSONObject;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
public interface MapsDownloadService {
View .zshrc
# 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=/home/mdumrauf/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"
@mdumrauf
mdumrauf / shadow.xml
Created Sep 3, 2017 — forked from lecho/shadow.xml
Android shadow drawable xml.
View shadow.xml
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- Drop Shadow Stack -->
<item>
<shape>
<padding
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
@mdumrauf
mdumrauf / .gitconfig
Last active Sep 29, 2015
Git config file
View .gitconfig
[alias]
ft = fetch
ftp = fetch -p
st = status
ci = commit
cim = commit -m
ciam = commit -a -m
cp = cherry-pick
rb = rebase
rbi = rebase -i
@mdumrauf
mdumrauf / Default.sublime-keymap
Created Jun 15, 2015
Key bindings for Sublime Text 3
View Default.sublime-keymap
[
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" }
]
View Preferences.sublime-settings
{
"binary_file_patterns":
[
"dist",
"node_modules/*",
"bower_components/*",
"coverage/*",
"logs/",
"*.jpg",
"*.jpeg",
@mdumrauf
mdumrauf / connect.sh
Last active Sep 10, 2015
Utility script for connecting to EC2 instances
View connect.sh
#/bin/sh
INSTANCE=$1
if [ -z $INSTANCE ]; then
printf 'Usage: connect [instance]\n'
echo '[instance] : nginx | production | staging | mongo | what'
exit 1;
fi
if [ $INSTANCE != 'what' ]; then printf "Connecting to $INSTANCE\n"; fi
@mdumrauf
mdumrauf / install.sh
Last active Feb 12, 2016
Install script for a fresh Ubuntu-like OS installation
View install.sh
#!/usr/bin/bash
# dev basics
sudo apt-get install curl vim ssh git-core xclip sublime-text build-essential openssl libssl-dev ia32-libs &&
# nvm & node.js
curl https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash &&
source ~/.bashrc &&
nvm install 4.3 &&
@mdumrauf
mdumrauf / dimensizer.rb
Last active Sep 26, 2016
Script to change dimens.xml sizes
View dimensizer.rb
# Factor to apply to all dimens
factor = 2
text = File.open('dimens.xml').read
resized = File.open('dimens-resized.xml', 'w')
text.gsub!(/\r\n?/, "\n")
resized.write "<resources>\n"
text.each_line do |line|
@mdumrauf
mdumrauf / db_multiverse_downloader.ps1
Created Nov 22, 2013
Script written in PowerShell that downloads all DB Multiverse manga pages
View db_multiverse_downloader.ps1
echo "Downlading.."
$file = ""
$client = new-object System.Net.WebClient
for($i = 1; $i -le 797; $i++)
{
if ($i -lt 10) { $file = "000$($i)" }
elseif (($i / 10) -lt 10) { $file = "00$($i)" }