Skip to content

Instantly share code, notes, and snippets.

Robert robertoestivill

Block or report user

Report or block robertoestivill

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@robertoestivill
robertoestivill / reads
Last active Jun 5, 2019
Running f3 on my 128gb SanDisk Extreme UHS 3
View reads
$ f3read /Volumes/Untitled/
F3 read 7.1
Copyright (C) 2010 Digirati Internet LTDA.
This is free software; see the source for copying conditions.
SECTORS ok/corrupted/changed/overwritten
Validating file 1.h2w ... 2097152/ 0/ 0/ 0
Validating file 2.h2w ... 2097152/ 0/ 0/ 0
Validating file 3.h2w ... 2097152/ 0/ 0/ 0
Validating file 4.h2w ... 2097152/ 0/ 0/ 0
View gist:462d149d9f1d442be4cdcf688d5a6bad
alias git-master='git checkout master'
alias git-add-commit='function _git-add-commit(){ git add -A "$1"; git commit -S -m "$2"; }; _git-add-commit'
alias git-undo='git reset HEAD~'
alias git-checkout-branch='git checkout'
alias git-checkout-tag='function _git-checkout-tag(){ git checkout tags/"$1"; }; _git-checkout-tag'
# Branch is created on both, local and remote
alias git-new-branch='function _git-new-branch(){ git checkout -b "$1"; git push -u origin "$1"; }; _git-new-branch'
alias git-new-tag='function _git-new-tag(){ git tag -a "$1" -m "$1"; }; _git-new-tag'
View 686 snowboard fleece
686 (Burton sub-brand) snowboard fleece - Size L.
Water proof.
Used with signs of wear.
$10 eur
https://photos.app.goo.gl/vD1CfNGkUvcAk6S98
@robertoestivill
robertoestivill / md_colors.xml
Last active Jun 18, 2018
Material Design color palette for Android applications.
View md_colors.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--
References
- https://www.materialpalette.com/colors
- https://www.materialui.co/colors
- https://material-ui.com/style/color/
-->
@robertoestivill
robertoestivill / main.kt
Last active May 24, 2018
Kotlin ReceiverChannel example with background and "UI" threads.
View main.kt
package testkotlin
import kotlinx.coroutines.experimental.channels.ReceiveChannel
import kotlinx.coroutines.experimental.channels.consumeEach
import kotlinx.coroutines.experimental.channels.produce
import kotlinx.coroutines.experimental.newFixedThreadPoolContext
import kotlinx.coroutines.experimental.newSingleThreadContext
import kotlinx.coroutines.experimental.runBlocking
import kotlinx.coroutines.experimental.withContext
import kotlin.coroutines.experimental.CoroutineContext
@robertoestivill
robertoestivill / branchy.sh
Created Jul 17, 2017
Iterate over local git branches and prompt the user for deletion confirmation.
View branchy.sh
#!/bin/bash
CURRENT=$(git branch | grep "*" | cut -c3-)
printf "Your current branch is '$CURRENT'. Will be ignored.\n\n"
BRANCHES=$(git branch | cut -c3-)
BRANCHES=${BRANCHES[@]/$CURRENT}
for BRANCH in ${BRANCHES}
do
View gist:eec8d899d4d148d879b096de2f72f2ea
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say>You just got your ass saved!</Say>
</Response>
View hide_apple_apps.sh
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
declare -a arr=(
"Calendar.app"
"Chess.app"
@robertoestivill
robertoestivill / launcher.sh
Last active Aug 8, 2018
Bash alternative to Franz
View launcher.sh
#!/bin/bash
open -a "Google Chrome" --new --args --new-window \
'https://tweetdeck.twitter.com' \
'https://web.whatsapp.com' \
'https://blastersystems.slack.com/' \
'https://www.messenger.com/' \
'https://web.telegram.org/' \
'https://web.skype.com' \
'https://hangouts.google.com/' \
@robertoestivill
robertoestivill / .profile
Last active Oct 21, 2017
Fix Android Studio Case Sensitive IDE Warning on OSx
View .profile
alias intellij-case-patch='printf '\''\nidea.case.sensitive.fs=true'\'' >> /Applications/Android\ Studio.app/Contents/bin/idea.properties'
You can’t perform that action at this time.