Skip to content

Instantly share code, notes, and snippets.

View fabioam's full-sized avatar

Fabio AM fabioam

View GitHub Profile
@fabioam
fabioam / iptv-reverbtv.m3u
Last active July 1, 2023 08:50
Canais IPTV nacionais abertos
#EXTM3U
#EXTINF:0 group-title="TV", ALL SPORTS
http://173.236.10.10:1935/dgrau/dgrau/live.m3u8
#EXTINF:0 group-title="TV", BAND
http://evp.mm.uol.com.br:1935/bandpracas/bandcidaders/playlist.m3u8
#EXTINF:0 group-title="TV", Band Sports
http://evp.mm.uol.com.br:1935/geob_terraviva/operadoras/live.m3u8?BRASILIPTV
@fabioam
fabioam / runapp.sh
Last active September 13, 2022 21:37
Run cool-retro-term as Guake
# This script searchs for the application with the
# given classname. There are three possibilities:
# 1. If the app is not open, opens it
# 2. If the app is open but is not the active window, activates it
# 3. If the app is open AND is the active window, minimizes it#
# The idea is to assign this script to keyboard shortcuts in order
# to launch/activate/minimize a common used application quickly
#
# Requieres 'xdotool' installed
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
@fabioam
fabioam / MagentoAddRandomCustomers.php
Last active March 7, 2018 21:03
add random customers to Magento database
//PHP array containing forenames.
$names = array(
'Joao',
'Alberto',
'Jose',
'Raimundo',
'Carlos',
'Fabio',
'David',
'Mell',
@fabioam
fabioam / docker_remove_networks.txt
Created February 11, 2018 13:43 — forked from bastman/docker_remove_networks.txt
remove all docker networks
docker network rm $(docker network ls | grep "foo" | awk '/ / { print $1 }')
@fabioam
fabioam / docker-destroy-all.sh
Created February 5, 2018 11:57 — forked from JeffBelback/docker-destroy-all.sh
Destroy all Docker Containers and Images
#!/bin/bash
# Stop all containers
docker stop $(docker ps -a -q)
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
@fabioam
fabioam / docker-normal-user.sh
Created February 3, 2018 21:55
Docker as a normal user
$ sudo usermod -aG docker $USER
$ sudo setfacl -m user:$USER:rw /var/run/docker.sock
@fabioam
fabioam / .bashrc
Last active February 3, 2018 21:43
bashrc with some alias and functions
#
# ~/.bashrc
#
[[ $- != *i* ]] && return
colors() {
local fgc bgc vals seq0
printf "Color escapes are %s\n" '\e[${value};...;${value}m'
@fabioam
fabioam / Gulpfile.js
Last active January 28, 2018 14:39
Simple gulp file example using gulp-livereload
/*
* Simple gulp file using gulp-livereload
* $ gulp -v
* CLI version 3.9.1
* Local version 3.9.1
*
* run example:
* $ gulp watch
*
* if you have errors, check first if you have fs.inotify.max_user_watches configured appropriate
@fabioam
fabioam / instagram-split-in-14s.sh
Created November 4, 2017 15:17
Description: Split mp4 video 14s with each - for using with instagram stories
#!/bin/bash
if [ "$#" -ne 1 ]
then
echo "Description: Split mp4 file with 14s each - for using with instagram stories"
echo "Usage: $0 <filename>"
exit 1
fi
echo $1