Skip to content

Instantly share code, notes, and snippets.

View florian-frost's full-sized avatar

Florian florian-frost

View GitHub Profile
# Title: Smart-TV Blocklist for Pi-hole
# Version: 12March2021v3
# Description: This is a blocklist to block smart-TVs sending metadata back home, sometimes with the added benefit of blocking interface ads for apps and movie services.
# Please help with collecting domains!
# It could occur that the TV fails to receive new updates, or that other apps or services no longer work. Please report such an incident.
# Make sure to also use the extra RegEx list at https://perflyst.github.io/PiHoleBlocklist/regex.list, which helps remove regional LG ad domains among other things.
# Panasonic Viera & panny tv
0077777700140002.myhomescreen.tv
cert-test.sandbox.google.com
# Samsung SmartTV domains (Will block "Smart" aspects of device)
# https://umbrella.cisco.com/blog/2015/06/02/samsungs-chatty-smarttvs/
# https://www.reddit.com/r/pihole/comments/5eirvy/from_the_smart_tv_thread_in_rtechnology/damgggq/
# http://pastebin.com/pU7HV1Gr
Coordinator-Production-28516768.us-east-1.elb.amazonaws.com
abtauthprd.samsungcloudsolution.com
acr0.samsungcloudsolution.com
ad.samsungadhub.com
amauthprd.samsungcloudsolution.com
api-hub.samsungyosemite.com
<?php
$headers_ap=array(
"X-Token:" . "token",
"Content-Type:" . "charset=utf-8",
);
$curl_parameters= array(
"id"=>"id",
);
/**
@florian-frost
florian-frost / debugger.php
Last active April 4, 2019 13:49
debuggerphp
//https://www.linkedin.com/pulse/advanced-php-debugging-techniques-you-didnt-know-existed-pavic/
// ----------------------------------------------------------------------------------------------------
// - Display Errors
// ----------------------------------------------------------------------------------------------------
ini_set('display_errors', 'On');
ini_set('html_errors', 0);
// ----------------------------------------------------------------------------------------------------
// - Error Reporting
@florian-frost
florian-frost / post-receive
Last active April 4, 2019 13:49
bash_git_post_receive_deploy
#!/bin/bash
while read oldrev newrev refname
do
branch=$(git rev-parse --symbolic --abbrev-ref $refname)
if [ "master" == "$branch" ]; then
# Do something
echo "branch is: $branch I'm going to overwrite everything"
git --work-tree=/home/gflorian/public_html --git-dir=/home/gflorian/repo checkout -f $branch
else
echo "branch is not master the pushed branch is: $branch"
@florian-frost
florian-frost / bash_add_prefix_01.sh
Last active April 4, 2019 13:49
bash_add_prefix_01
#!/bin/sh
@florian-frost
florian-frost / bash_add_prefix.sh
Created April 13, 2017 18:25
bash_add_prefix
#!/bin/sh
count=1
for filename in *.JPG;
do
count=$(expr $count + 1)
echo $count
touch "$filename"
mv "$filename" `echo "$filename"|sed './ATTIC1_'$count'_/g'`
done
@florian-frost
florian-frost / bash_batch_convert_pdf_to_jpg.sh
Created April 13, 2017 18:24
bash_batch_convert_pdf_to_jpg
for f in *.pdf; do
echo "$f"
convert -verbose -density 200 ./"$f" ./"${f%.pdf}.jpg"
done
@florian-frost
florian-frost / bash_espacios_por_guion_y_mayus_a_minusculas_directorios.sh
Created April 10, 2017 22:51
bash_espacios_por_guion_y_mayus_a_minusculas_directorios
#!/bin/sh
for filename in *;
do
touch "$filename"
mv "$filename" `echo "$filename"|sed 's/ /_/g'`
done
@florian-frost
florian-frost / bash_convertir_videos_con_ffmpeg.sh
Created April 10, 2017 22:48
bash_convertir_videos_con_ffmpeg.sh
#!/bin/sh
ffmpeg -i video_entrada.ext video_salida.ext
funciona con mp4 webm y ogv