Skip to content

Instantly share code, notes, and snippets.

View andreferraro's full-sized avatar
🎯
Focusing

André Ferraro andreferraro

🎯
Focusing
View GitHub Profile
#EXTM3U #EXTINF:0 tvg-id="ext" group-title="Channels",TVC 16 (Rio de Janeiro) http://dns.zyontv.xyz:80/live/Julius20/sorte04033/168532.m3u8 #EXTINF:0 tvg-id="ext" group-title="Channels",TVE (Bahia) http://dns.zyontv.xyz:80/live/Julius20/sorte04033/168533.m3u8 #EXTINF:0 tvg-id="ext" group-title="Channels",TVE BA HD http://dns.zyontv.xyz:80/live/Julius20/sorte04033/168534.m3u8 #EXTINF:0 tvg-id="ext" group-title="Channels",TVE RS http://dns.zyontv.xyz:80/live/Julius20/sorte04033/168535.m3u8 #EXTINF:0 tvg-id="ext" group-title="Channels",Via Morena http://dns.zyontv.xyz:80/live/Julius20/sorte04033/168536.m3u8 #EXTINF:0 tvg-id="ext" group-title="Channels",SBT MA http://dns.zyontv.xyz:80/live/Julius20/sorte04033/168537.m3u8 #EXTINF:0 tvg-id="ext" group-title="Channels",Record Nordeste HD http://dns.zyontv.xyz:80/live/Julius20/sorte04033/168538.m3u8 #EXTINF:0 tvg-id="ext" group-title="Channels",Band Campinas SD http://dns.zyontv.xyz:80/live/Julius20/sorte04033/168539.m3u8 #EXTINF:0 tvg-id="Bandhd.br" group-title="Cha
#EXTM3U
#EXTINF:-1 tvg-logo="http://bit.ly/2TxusTd",ByUrbinaIPTV
http://urbinaiptv.xyz/publi/
#EXTINF:-1, TOTALPLAY TV
http://sl.cdn.iutpcdn.com/LIVE/H01/CANAL1/PROFILE03.m3u8
#EXTINF:-1, ADN 40
http://sl.cdn.iutpcdn.com/LIVE/H01/CANAL2/PROFILE03.m3u8
#EXTINF:-1, AZTECA 7
http://sl.cdn.iutpcdn.com/LIVE/H01/CANAL7/PROFILE03.m3u8
#EXTINF:-1, AZTECA 1
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from getpass import getpass
import time
EXE_PATH = r'..\chromedriver.exe'
opts = Options()
opts.headless = False
login = input("Linked in Login: ")
#Elasticsearch parameters
fos_elastica:
clients:
default:
host: %elastic_host%
port: %elastic_port%
transport: Https
headers:
Authorization: %elastic_auth%
#default: { host: %elastic_host%, port: %elastic_port% }
@andreferraro
andreferraro / movies.sql
Created March 8, 2019 06:04
Movies Database
# ************************************************************
# Sequel Pro SQL dump
# Version 4541
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: meuapp.rocks (MySQL 5.7.25-28)
# Database: bookalook
# Generation Time: 2019-03-08 06:03:59 +0000
<?php
$url = "http://applicant-test.us-east-1.elasticbeanstalk.com/";
$sessionId = "";
$token = "";
$inverseToken = "";
$replacements = array(
"a" => "z", "b" => "y", "c" => "x", "d" => "w", "e" => "v", "f" => "u", "g" => "t",
"h" => "s", "i" => "r", "j" => "q", "k" => "p", "l" => "o", "m" => "n", "n" => "m",
"o" => "l", "p" => "k", "q" => "j", "r" => "i", "s" => "h", "t" => "g", "u" => "f",
@andreferraro
andreferraro / youtube_comment_bot.py
Created July 30, 2018 19:24 — forked from streetgt/youtube_comment_bot.py
Youtube Comment Bot - python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Python bot for comment a list of urls in YouTube
import time
import numpy as np
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
@andreferraro
andreferraro / monit
Created February 12, 2018 05:24 — forked from roman01la/monit
Node.js + Nginx + Varnish + Upstart + Monit
check host localhost with address 127.0.0.1
start "/sbin/start myapp"
stop "/sbin/stop myapp"
if failed port 3000 protocol HTTP
request /
with timeout 5 seconds
then restart
@andreferraro
andreferraro / fullcalendar_with_ionic2.md
Created August 18, 2017 19:47 — forked from netcell/fullcalendar_with_ionic2.md
Fullcalendar.io with ionic 2 from forum

Hello Victor,

I just started using this plugin today so I'm not an expert but here is what I did to make it work.

  1. npm install angular2-fullcalendar --save
  2. Create a new component: ionic g component full-calendar
  3. In full-calendar.html I inserted:
<angular2-fullcalendar [options]="calendarOptions"></angular2-fullcalendar>
@andreferraro
andreferraro / 01_Laravel 5 Simple ACL manager_Readme.md
Created June 5, 2016 05:50 — forked from amochohan/01_Laravel 5 Simple ACL manager_Readme.md
Laravel 5 Simple ACL - Protect routes by an account / role type

#Laravel 5 Simple ACL manager

Protect your routes with user roles. Simply add a 'role_id' to the User model, install the roles table and seed if you need some example roles to get going.

If the user has a 'Root' role, then they can perform any actions.

Installation

Simply copy the files across into the appropriate directories, and register the middleware in App\Http\Kernel.php