Skip to content

Instantly share code, notes, and snippets.

View Fazzani's full-sized avatar

Fazzani Fazzani

View GitHub Profile
@Fazzani
Fazzani / WebGrab++.config.xml
Last active December 21, 2019 23:44
WebGrab++.config.xml
<?xml version="1.0"?>
<settings>
<filename>/data/ar_arab.xmltv</filename>
<mode>m</mode>
<postprocess run="n" grab="y">mdb</postprocess>
<proxy>automatic</proxy>
<user-agent>Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; yie9)</user-agent>
<logging>on</logging>
<retry time-out="15">0</retry>
<skip>12,1</skip>
@Fazzani
Fazzani / tmp.sh
Last active December 21, 2019 23:45
webgrabUpdateChannels.sh
docker run -it --rm -e https://raw.githubusercontent.com/Fazzani/xmltv/master/default.xmltv -v "$(pwd):/data" synker/webgraboneshoturl:latest
docker run -it --rm -v "${PWD}/grab.xml:/config2/WebGrab++.config.xml" -v "${PWD}:/data" synker/webgraboneshot:latest
awk '/@auto_xml_channel_start/{flag=1;next}/@auto_xml_channel_end/{flag=0}flag' grab.ini | sed 's/^.//' > grabupdate.ini
docker run -it --rm -v "$(pwd)/config:/config" -v "$(pwd)/data:/data" linuxserver/webgrabplus /bin/bash
curl -o updateChannels.sh https://gist.githubusercontent.com/Fazzani/bd444ea76a67a0eefb3de3602fcd6eb9/raw/8308d8f9166de87125315c39b4b01c0c4cb74080/webgrabUpdateChannels.sh && chmod +x updateChannels.sh /defaults/update.sh
docker run -it --rm \
-e PAT="56f15284234a3464b04200404aa2a340c7974049xx" \
@Fazzani
Fazzani / Philips Jointspace v6 commands
Last active December 21, 2019 23:47 — forked from marcelrv/Philips Jointspace v6 commands
Philips Jointspace v6 commands
Working commands 55PUS7181
http://192.168.3.51:1925/system
{"menulanguage":"Dutch","name":"55PUS7181\/12","country":"Netherlands","serialnumber_encrypted":"F6905Z+vyquNhZoXegQ1DzZXCqMIcjJpkzy3LsiPac=\n","softwareversion_encrypted":"1YWR42sjQ6xdjuyIXWZbyPnoRswLoRswLmKtAhR9GRsBx1qY=\n","model_encrypted":"jGNvXDerdJoWjOpwh\/n0gw2MgM7oRswLoRswLKC73wfMgra3S62c4=\n","deviceid_encrypted":"7mv3ZEtMH8oRswL0RoRswLISTn38FN8HAqfmSF95qoaiRsuukSraQ=\n","nettvversion":"6.0.2","epgsource":"one","api_version":{"Major":6,"Minor":2,"Patch":0},"featuring":{"jsonfeatures":{"editfavorites":["TVChannels","SatChannels"],"recordings":["List","Schedule","Manage"],"ambilight":["LoungeLight","Hue","Ambilight"],"menuitems":["Setup_Menu"],"textentry":["context_based","initial_string_available","editor_info_available"],"applications":["TV_Apps","TV_Games","TV_Settings"],"pointer":["not_available"],"inputkey":["key"],"activities":["intent"],"channels":["preset_string"],"mappings":["server_mapping"]},"systemfeatures":{"tvtype":"consumer","
@Fazzani
Fazzani / vscode settings.md
Created August 13, 2018 22:13
fira code for vscode

"editor.fontFamily": "'Fira Code'", "editor.fontLigatures": true,

as admin in powershell run this command

choco install firacode

@Fazzani
Fazzani / free_m3u8.m3u
Created July 28, 2018 09:13
Free m3u8 streams
http://sample.vodobox.net/skate_phantom_flex_4k/skate_phantom_flex_4k.m3u8
http://playertest.longtailvideo.com/adaptive/wowzaid3/playlist.m3u8
http://cdn-fms.rbs.com.br/vod/hls_sample1_manifest.m3u8
http://nasatv-lh.akamaihd.net/i/NASA_101@319270/index_1000_av-p.m3u8?sd=10&rebase=on
http://content.jwplatform.com/manifests/vM7nH0Kl.m3u8
@Fazzani
Fazzani / synkerCast.css
Last active July 23, 2018 19:41
Synker custom style for google cast
.background {
background: center no-repeat url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAzoAAANrCAYAAACOY+3mAAAgAElEQVR4XuzdCZQcZdU38P+tnkkygSQgq0JYDSRdkwQURQUVEOENkKVraCGQ7hlA4wYqiCiIGtz3LeIrKGSmOoAwmeoQRDZlUVBRlGWmJoGAKLiCskoymUzX/U7H8H4sCdM9XVVdy7/P4RBPnucuv6cludNdVQK+KEABClCAAhSgQIwEHs3n254d7x3tZfTtougAZGCiMcnau7t7KEZtsFQKUCBgAQk4PsNTgAIUoAAFKECBhgXcQu4IhRwuglkAjgCw7UuClk3bsRpOxAAUoEBiBDjoJOYo2QgFKEABClAgOQL3FnI7ZwycLJ4cBcFbAWwzaneKL5kl57xR13EBBSiQCgEOOqk4ZjZJAQpQgAIUiL5AdbhpNYwOVT1+86c2dRftqXbMLJWdujdyAwUokDgBDjqJO1I2RAEKUIACFIiPwOAi63UQmQPRYxR4iw+VPwsv8zpzee+DPsRiCApQIMYCHHRifHgsnQIUoAAFKBBHgYFCx1wRzSlwnAA7+d6D6OCw6CEHdq98yvfYDEgBCsRGgINObI6KhVKAAhSgAAXiK1C9mQBEql9JWwhgu6A7EeBXbcbkd/BObEFLMz4FoivAQSe6Z8PKKEABClCAArEWcAsdB8NAF1TzAHZoQjMrTNup5uaLAhRIoQAHnRQeOlumAAUoQAEKBCXw0OL8lKGhyomq8kERnRlUntrjyhmm3fe92tdzJQUokBQBDjpJOUn2QQEKUIACFGiSgC5ZYgw8PHCkwDtFFAsATGhSKVtKu1E9fUP78vK9EaqJpVCAAiEIcNAJAZkpKEABClCAAkkU6C/kZoghXaI4GcBuEe7xz8OGdwBvThDhE2JpFAhAgINOAKgMSQEKUIACFEiqQP8p86dKxThJICcAODA+fcp1pt13THzq
@Fazzani
Fazzani / seloger_bash.ps1
Last active July 13, 2018 09:00
SeLoger bash docker aws cli and eks cli
if ( -not (test-path $PROFILE) ) {
new-item -path $PROFILE -itemtype file -force
}
Else {
$A = Get-Content $PROFILE
}
# Install notification module
if (-not (Get-Module -ListAvailable -Name BurntToast)) {
Install-Module BurntToast -Force -Confirm:$False
@Fazzani
Fazzani / SCSS.md
Created June 6, 2018 12:07 — forked from jareware/SCSS.md
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

@Fazzani
Fazzani / backup_restore_docker_postgres.sh
Last active June 3, 2018 11:54
backup/restore postgres
#!/bin/bash
#######################################################################################################################################
# References:
# https://devopsheaven.com/postgresql/pg_dump/databases/docker/backup/2017/09/10/backup-postgresql-database-using-docker.html
# using:
# curl -LJO https://gist.githubusercontent.com/Fazzani/413e4e5e5f1e6eeb91482e2f53e6c70e/raw/82cc5e81c07204912e6c79e647cd58850bcce27b/backup_restore_docker_postgres.sh
# chmod +x backup_restore_docker_postgres.sh
# ./backup_restore_docker_postgres.sh -b playlist # backup database playlist
# ./backup_restore_docker_postgres.sh -r dump_playlist.sql # restore database dump_playlist.sql
@Fazzani
Fazzani / vscode bash settings
Created May 27, 2018 09:39
vscode bash windows settings
{
"files.exclude": {
"**/appsettings.*.json": false,
".vscode": true,
},
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\bash.exe"
}