Skip to content

Instantly share code, notes, and snippets.

View rafaeletc's full-sized avatar
🏠
Working from home

Rafael de Lima Franco rafaeletc

🏠
Working from home
View GitHub Profile
$ cd $HOME/.local/share/barrier/SSL
$ mkdir -p Fingerprints
$ openssl req -x509 -nodes -days 365 -subj /CN=barrier -newkey rsa:4096 -keyout Barrier.pem -out Barrier.pem
$ openssl x509 -fingerprint -sha1 -noout -in barrier.pem > Fingerprints/Local.txt
$ sed -e "s/.*=//" -i Fingerprints/Local.txt
@rafaeletc
rafaeletc / WhatsApp Web Send Random Heart
Created October 18, 2020 01:06 — forked from rootux/WhatsApp Web Send Random Heart
Just a simple WhatsApp Web Heart Sender
/*
Simple WhatsApp Web Spam Bot Originally written by Pablode. Modified by Gal Bracha.
Use with love <3. Do not act reckless.
====================================================================================
DISCLAIMER: I do not take any responsibility for any damage caused with this script.
WhatsApp might be able identify script users if this becomes a problem. Do only use
this if you are aware of the consquences.
====================================================================================
Usage: Copy all of this script (Ctrl+A, Ctrl+C). Add a new Bookmark. In the URL section,
write "javascript:" and paste (Ctrl+V) this script. Visit WhatsApp Web, select your
@rafaeletc
rafaeletc / termux-url-opener
Created July 10, 2019 15:12 — forked from LordH3lmchen/termux-url-opener
termux-url-opener
#!/data/data/com.termux/files/usr/bin/zsh
#
# This is a termux-url-opener script to do diffrent tasks on my Android phone
#
url=$1
echo "What should I do with $url ?"
echo "y) download youtube video to movies-folder"
echo "u) download youtube video and convert it to mp3 (music-folder)"
echo "s) download with scdl (soundcloud)"
@rafaeletc
rafaeletc / termux-url-opener
Created July 10, 2019 15:07 — forked from aziascreations/termux-url-opener
Termux URL opener script with youtube downloader
#!/bin/bash
clear
bold=$(tput bold)
normal=$(tput sgr0)
if [[ $1 =~ ^.*youtu.*$ ]]; then
echo "${bold}Youtube-dl${normal}"
echo "> ${1}"
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?> <gpx version="1.1" creator="OsmAnd~ 3.3.8" xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"> <metadata> <name>favourites</name> </metadata> <wpt lat="-23.6175766" lon="-46.6722984"> <name>63 Burger &amp; Stuff</name> <type>iFood</type> <extensions> <hidden>true</hidden> <color>#b4d00d0d</color> </extensions> </wpt> <wpt lat="-23.5385019" lon="-46.6721131"> <name>A Batata Suíça</name> <type>Uber Eats</type> <extensions> <color>#b41010a0</color> </extensions> </wpt> <wpt lat="-23.5818329" lon="-46.643692"> <name>Açaí Beat - Vila Mariana</name> <type>iFood</type> <extensions> <hidden>true</hidden> <color>#b4d00d0d</color> </extensions> </wpt> <wpt lat="-23.5582829" lon="-46.6594582"> <name>Açaí Verão - Center 3</name> <type>Uber Eats</type> <extensions> <color>#b41010a0</color> </extensions> </wpt> <wpt lat=

Keybase proof

I hereby claim:

  • I am rafaeletc on github.
  • I am rafaeletc (https://keybase.io/rafaeletc) on keybase.
  • I have a public key ASDgsWTyRzhgRPY1Fy0N_t24LdMEM-u2abYZs_5i1xqD5Ao

To claim this, I am signing this object:

@rafaeletc
rafaeletc / map.geojson
Last active August 29, 2015 14:05
Área das Cidades do Aglomerado Urbano de Piracicaba
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rafaeletc
rafaeletc / firefox2vnc-screenshot.sh
Created June 10, 2014 23:59
A little more detail might be useful... Start a firefox (or other browser) in an X session, either on your console or using a vncserver. You can use the --height and --width options to set the size of the window to full screen. Another firefox command can be used to set the URL being displayed in the first firefox window. Now you can grab the sc…
#!/bin/sh
# start a server with a specific DISPLAY
vncserver :11 -geometry 1024x768
# start firefox in this vnc session
firefox --display :11
# read URLs from a data file in a loop
count=1
@rafaeletc
rafaeletc / contar.py
Created May 11, 2014 19:52
Função para imprimir a contagem de A à B
def contar(a,b):
for i in range (a,b):
print(i, end=',')
print(i+1)