Skip to content

Instantly share code, notes, and snippets.

View rafpyprog's full-sized avatar
🎉
getpwd 0.1.0 released!

Rafael Ribeiro rafpyprog

🎉
getpwd 0.1.0 released!
View GitHub Profile
@rafpyprog
rafpyprog / evernote.js
Last active November 5, 2019 13:36
Justify text inside Evernote notes
function justifyDoc() {
/* Justify all the paragraphs in a note */
iframe = document.getElementsByClassName("RichTextArea-entinymce")[0];
paragraphs = iframe.contentWindow.document.getElementsByTagName('p');
for (p of paragraphs) {
p.style['text-align'] = 'justify';
};
};
@rafpyprog
rafpyprog / android-ssh-server
Last active February 5, 2024 21:35 — forked from kleo/android-ssh-server
GNURoot Debian Jessie Android SSH Server
# GNURoot Debian Jessie Android SSH Server
# Google Play Store: https://play.google.com/store/apps/details?id=com.gnuroot.debian
# Github: https://github.com/corbinlc/GNURootDebian
# change root password
passwd
apt update
apt install -y nano
@rafpyprog
rafpyprog / functions.bas
Last active July 23, 2018 18:10
Excel VBA functions
Function CONCATENATEMULTIPLE(Ref As Range, Optional Separator As String = "") As String
' Combine multiple cells using a separator/delimiter.
Dim Cell As Range
Dim Result As String
For Each Cell In Ref
If Not IsEmpty(Cell) Then
Result = Result & Cell.value & Separator
End If
Next Cell
@rafpyprog
rafpyprog / install_python3.6.sh
Created April 27, 2018 14:20
Script for install of Python 3.6 on Ubuntu
#!/bin/bash
add-apt-repository ppa:jonathonf/python-3.6 && apt-get update
apt-get install -y python3.6
@rafpyprog
rafpyprog / install_geckodriver.sh
Created April 27, 2018 14:16
Script for Geckdriver installation
#!/bin/bash
GECKODRIVER_VERSION='v0.20.1'
wget -O /usr/bin/geckodriver-$GECKODRIVER_VERSION-linux64.tar.gz https://github.com/mozilla/geckodriver/releases/download/$GECKODRIVER_VERSION/geckodriver-$GECKODRIVER_VERSION-linux64.tar.gz
cd /usr/bin/ && tar -xzvf /usr/bin/geckodriver-$GECKODRIVER_VERSION-linux64.tar.gz
rm /usr/bin/geckodriver-$GECKODRIVER_VERSION-linux64.tar.gz
chmod +x /usr/bin/geckodriver
@rafpyprog
rafpyprog / install_chrome_stable.sh
Created April 27, 2018 14:14
Script for Google Chrome installation on Ubuntu
#!/bin/bash
apt-get install -y software-properties-common wget
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | tee /etc/apt/sources.list.d/google-chrome.list
apt-get update && apt-get install -y google-chrome-stable
@rafpyprog
rafpyprog / geo-datasets.txt
Created February 20, 2018 02:31
Datasets de Informações Geográficas
https://www.kaggle.com/max-mind/world-cities-database
@rafpyprog
rafpyprog / docker-commands.md
Last active April 19, 2018 20:52
Docker commands

Linux

Remove untagged Docker images

docker rmi $(docker images | grep "^<none>" | cut -d ' ' -f39)

Windows

Remove untagged Docker images