This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################ | |
# teh - op 0.2 | |
# Christian Bednarek 01.09.2000 (00:40) | |
# ----------------------------- | |
# Diese tkirc-extension versucht (;-), bei netjoins von Servern | |
# gesetzte Modes aufzuheben. | |
# | |
# Befehle: | |
# /ton - script einschalten | |
# /toff - script ausschalten |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source json.tcl | |
# find json.tcl here: https://github.com/dbohdan/jimhttp/blob/master/json.tcl | |
set curl "curl -s" | |
set curation_id <THE_CURATIONS_ID> | |
set accesstoken <AN_ACCESSTOKEN_YOU_GET_FROM_YOUR_DEV_PAGE> | |
# get the 10 podcast added the last | |
set latest [::json::parse [eval exec $curl "https://api.fyyd.de/0.2/podcast/latest?count=10"] 1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- This is just fun and to try, if I can make this inside a template | |
Well... obviously f3 can :) | |
the original code is taken from uikit's pagination javascript (v2! http://getuikit.com/v2) | |
Don't take this for good practice, it is not! | |
It won't go into production for fyyd.de in this form :) | |
--> | |
<set pageurl="{{ substr ( @_SERVER.REQUEST_URI, 0, strrpos(@_SERVER.REQUEST_URI,'/')) }}"/> | |
<set edges="3"/> | |
<set pages="5"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s "https://api.fyyd.de/0.2/podcast/episodes?podcast_id=45356&count=1" | | |
egrep -o 'fyyd.de\\/episode\\/[0-9]+' | | |
awk -F '/' '{print $NF}' | | |
xargs -n1 -I % curl -H 'Authorization: Bearer TOKEN-HIER-EINFUEGEN' "https://api.fyyd.de/0.2/curate" --data "curation_id=<ID-HIER>&episode_id=%" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:location.href='https://fyyd.de/fyydify-bm/'+btoa(location.href) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Diesen Snippet: | |
<li class="dropdown"> | |
<a href="#" class="podlove-subscribe-button-{{@feedattr.slug}}">{{@dict_subscribe}}</a> | |
</li> | |
einsetzen, wo dieser (ab ca. Zeile 46) steht: | |
<li class="dropdown"> | |
<a class="dropdown-toggle" data-toggle="dropdown" href="#"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--podlove-sub-button--> | |
<script type="text/javascript"> | |
window.podcastData = { | |
"title": {{json_encode(@feedattr.title) | raw}}, | |
"subtitle": {{json_encode(@feedattr.description) | raw}}, | |
"description": {{json_encode(@feedattr.summary) | raw}}, | |
"cover": "{{@feedattr.image}}", | |
"feeds": [ | |
<repeat group="@feedattr.audioformats" value="{{@format}}"> | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
printf "\033c\n"; | |
printf "Dieses kleine bash-Script tauscht in den auphonic-Dateien des firtz (json) die Base-URL der Mediendateien.\n"; | |
printf "Du benötigst das, wenn Du die Audiodateien auf einen anderen Server migrieren möchtest.\n"; | |
printf "Wo vorher http://fasel.bla/audio1.mp3 der Ort der Datei war, ist er nun http://foo.bar/audio1.mp3.\n"; | |
printf "Diese Script übernimmt die Arbeit, diese Änderungen in den Dateien vorzunehmen.\n\n"; | |
printf "Wenn Du nun auf RETURN drückst, wird das Script diesen Ordner und die Unterordner nach Dateien durchsuchen,\n"; | |
printf "die solche Base-URLs enthalten. Wähle bitte die zu ändernde aus. Los geht es! RETURN drücken!\n\n"; | |
read |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$salt = "Salz in der Suppe"; | |
$url1 = "http://g"; | |
$url3 = "http://b"; | |
$url2 = "http://gibtsnicht.eazy-living.de/?p=92"; | |
echo "salt: $salt<br>"; | |
echo $url1.": ".crypt($url1,$salt)."<br>"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set fh [open $argv] | |
set bytes [read $fh] | |
set length 0 | |
while {$length==0} { | |
binary scan $bytes a4 data | |
if {$data=="data"} { | |
binary scan [string range $bytes 4 8] i length | |
set bytes [string range $bytes [expr $length + 16] end] |
NewerOlder