Last active
December 14, 2020 10:18
-
-
Save jpigla/315f80ea648f58764e270130708d3ab0 to your computer and use it in GitHub Desktop.
Formeln von Excel, Google Docs, etc.
This file contains hidden or 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 file contains hidden or 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
# Gibt den URL-Pfad aus (trennt vor dem letzten "/") | |
=WECHSELN(WECHSE LN(B2;GLÃTTEN(RECHTS(WECHSELN(B2;"/";WIEDERHOLEN(" ";LÃNGE(B2)));LÃNGE(B2))); ""); "]"; "") | |
# Konvertiert von UNIX Timestamp zu lesbarem Datum | |
=DATUM(1970;1;1)+(LINKS([ZELLE];10)/86400) |
This file contains hidden or 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
# HTTP-Statuscode ausgeben (200, 404, leer (=50x)) | |
function HTTP_Statuscode(uri) { | |
var response_code; | |
try { response_code = UrlFetchApp.fetch(uri).getResponseCode().toString(); } | |
catch (error) { response_code = error.toString().match(/ returned code (\d\d\d)\./)[1]; } | |
finally { return response_code; } | |
} |
This file contains hidden or 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
# Letzten Buchstaben in Zelle entfernen | |
=LEFT(A1;LEN(A1)-1) | |
# Gibt den URL-Pfad aus (trennt nach dem letzten "/") | |
=WECHSELN(WECHSELN(A2;GLÄTTEN(RECHTS(WECHSELN(A2;"/";WIEDERHOLEN(" ";LÄNGE(A2)));LÄNGE(A2))); ""); "html"; "") | |
# Gibt den Namen des Dokumentes einer URL mit .html aus (zwischen Slash und .html) | |
=RECHTS(D6;LÄNGE(D6)-LÄNGE(WECHSELN(WECHSELN(D6;GLÄTTEN(RECHTS(WECHSELN(D6;"/";WIEDERHOLEN(" ";LÄNGE(D6)));LÄNGE(D6))); ""); "html"; ""))) | |
# Host von Domain (vor dem ersten Slash) | |
=LINKS(C78;FINDEN("/";C78;9)) | |
# Zählt das Vorkommen eines Wertes innerhalb einer Zelle | |
=(LÄNGE(E175)-LÄNGE(WECHSELN(E175;"Wert";"")))/LÄNGE("Wert") | |
# Gibt den linken Teil des Strings bis zum Vorkommen des Zeichens "-" aus | |
=LINKS(A2;FINDEN("#";WECHSELN(A2;"-";"#";LÄNGE(A2)-LÄNGE(WECHSELN(A2;"-";"")))) | |
# Gibt den rechten Teil des Strings bis zum Vorkommen des Zeichens "-" aus | |
=RECHTS(A2;LÄNGE(A2)-LÄNGE(LINKS(A2;FINDEN(",";WECHSELN(A2;",";"#";LÄNGE(A2)-LÄNGE(WECHSELN(A2;",";""))))))) | |
# Letzte nicht leere Zelle in Spalte | |
=index(A:A;max(ZEILE(A:A)*(A:A<>""))) |
This file contains hidden or 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
#!/bin/bash | |
filename=./urls.txt | |
leer='' | |
file='export.txt' | |
while read line || [[ -n "$line" ]]; do | |
echo downloading $line | |
# shell-Abfrage für Statuscode aus dem Header | |
result=$(curl -I $line 2>/dev/null | head -n 1 | cut -d$' ' -f2) | |
if [ -z ${result+x} ]; | |
then | |
echo "$line;$leer" >> $file | |
echo "kein Ergebnis" | |
else | |
echo "$line;$result" >> $file | |
echo "gespeichert" | |
fi | |
sleep .2 | |
done < "$filename" |
This file contains hidden or 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
# Möglichkeiten für Weiterleitungen ohne originalen Referrer zu zeigen | |
- https://slack-redir.net/link?url=http://www.google.de | |
- https://www.google.de/url?q=http://www.google.de/ | |
- https://www.sparbote.de/etc/re.php?https://www.google.de |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment