Skip to content

Instantly share code, notes, and snippets.

View fabdelgado's full-sized avatar
🌎

Fabián Delgado fabdelgado

🌎
View GitHub Profile
@fabdelgado
fabdelgado / InstallSelenium.sh
Created December 31, 2016 01:40 — forked from tristandostaler/InstallSelenium.sh
How to install correctly python Selenium (tested on ubuntu gnome)
apt-get install ipython
apt-get install python-pip
pip install selenium
mkdir /root/bin
cd /root/bin
wget https://github.com/mozilla/geckodriver/releases/download/v0.9.0/geckodriver-v0.9.0-linux64.tar.gz
tar -xvzf geckodriver-v0.9.0-linux64.tar.gz
rm geckodriver-v0.9.0-linux64.tar.gz
chmod +x geckodriver
cp geckodriver wires
@fabdelgado
fabdelgado / ngrok-installation.md
Created May 16, 2017 20:06 — forked from wosephjeber/ngrok-installation.md
Installing ngrok on Mac

#Installing ngrok on OSX

  1. Download ngrok
  2. Unzip it to your Applications directory
  3. Create a symlink (instructions below)

Creating a symlink to ngrok

Run the following two commands in Terminal to create the symlink.

# cd into your local bin directory
@fabdelgado
fabdelgado / create_branch_from_tag
Created June 6, 2017 13:17 — forked from nickfloyd/create_branch_from_tag
To create a branch from a tag
-Go to the starting point of the project
>> git checkout origin master
-fetch all objects
>> git fetch origin
-Make the branch from the tag
>> git branch new_branch tag_name
-Checkout the branch
>> git checkout new_branch
-Push the branch up
>> git push origin new_branch

Setting up Sinatra Project

create an empty project and add a Gemfile

cd ~/Desktop
mkdir project-name
cd project-name
touch Gemfile
@fabdelgado
fabdelgado / Dockerfile
Created January 24, 2019 20:58 — forked from dtan4/Dockerfile
Minimal Sinatra Application on Docker
FROM ruby:2.2.0
RUN bundle config --global frozen 1
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
ADD Gemfile /usr/src/app/
ADD Gemfile.lock /usr/src/app/
RUN bundle install --without test development --system
{{ menus.menu_links(items, attributes, 0) }}
{% macro menu_links(items, attributes, menu_level) %}
{% import _self as menus %}
{% if items %}
{% if menu_level == 0 %}
<ul class="nav navbar-nav">
{% else %}
<ul class="nav navbar-nav">
{% endif %}
@fabdelgado
fabdelgado / radios_nacionales.txt
Created April 30, 2019 15:23 — forked from pisculichi/radios_nacionales.txt
URLs de radios nacionales de Argentina, para poder escuchar en la terminal con mplayer o vlc
# alias radio='function __radio(){ r=`grep -v "#" radios_nacionales.txt | grep -m 1 -i $1 | cut -d" " -f1`; cvlc $r 2> /dev/null; }; __radio'
# podria utilizarse mplayer en vez de vlc
AMs Nacionales
http://200.68.81.65:8000/am530 Radio Madre 530
http://www.servidorstreaming1.com:9962/; Radio Colonia 550
http://195.154.182.222:25223/live.mp3 Radio Argentina 570
http://playerservices.streamtheworld.com/api/livestream-redirect/CONTINENTAL_SC Continental 590
http://209.95.35.49:7012/stream Rivadavia 630
@fabdelgado
fabdelgado / radios_nacionales.txt
Created April 30, 2019 15:23 — forked from pisculichi/radios_nacionales.txt
URLs de radios nacionales de Argentina, para poder escuchar en la terminal con mplayer o vlc
# alias radio='function __radio(){ r=`grep -v "#" radios_nacionales.txt | grep -m 1 -i $1 | cut -d" " -f1`; cvlc $r 2> /dev/null; }; __radio'
# podria utilizarse mplayer en vez de vlc
AMs Nacionales
http://200.68.81.65:8000/am530 Radio Madre 530
http://www.servidorstreaming1.com:9962/; Radio Colonia 550
http://195.154.182.222:25223/live.mp3 Radio Argentina 570
http://playerservices.streamtheworld.com/api/livestream-redirect/CONTINENTAL_SC Continental 590
http://209.95.35.49:7012/stream Rivadavia 630
@fabdelgado
fabdelgado / git-tag-delete-local-and-remote.sh
Created May 13, 2019 13:43 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
mainWindow = new BrowserWindow({
x: mainWindowState.x,
y: mainWindowState.y,
width: (kiosk) ? mainWindowState.width : 298,
height:(kiosk) ? mainWindowState.height: 192,
frame: false,
icon: iconPath_32,
resizable: false,
kiosk: kiosk,
disableAutoHideCursor: false,