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
#!/bin/sh | |
log_file=${BACKUP_LOG_FILE} | |
backup_script_name="docker-teamspeak-snapshot" | |
date=$(/bin/date +"%Y-%m-%d_%H-%M-%S") | |
echo "Started $backup_script_name at $date" >> $log_file | |
echo "Create a new snapshot_teamspeak docker image.." >> $log_file |
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
{"Seehausen (Altmark)":"Seehausen (Altmark)", | |
"Tamm":"Tamm", | |
"Breitengueßbach":"Breitengüßbach", | |
"Riethnordhausen":"Riethnordhausen", | |
"Rinteln-Krankenhagen":"Rinteln-Krankenhagen", | |
"Buchfart":"Buchfart", | |
"Straupitz":"Straupitz", | |
"Rambach":"Rambach", | |
"Caputh":"Caputh", | |
"Malchow":"Malchow", |
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
public enum MaterialColor { | |
RED (R.color.red_400, R.color.red_900, R.color.red_700, "red"), | |
PINK (R.color.pink_400, R.color.pink_900, R.color.pink_700, "pink"), | |
PURPLE (R.color.purple_400, R.color.purple_900, R.color.purple_700, "purple"), | |
DEEP_PURPLE(R.color.deep_purple_400, R.color.deep_purple_900, R.color.deep_purple_700, "deep_purple"), | |
INDIGO (R.color.indigo_400, R.color.indigo_900, R.color.indigo_700, "indigo"), | |
BLUE (R.color.blue_500, R.color.blue_900, R.color.blue_700, "blue"), | |
LIGHT_BLUE (R.color.light_blue_500, R.color.light_blue_900, R.color.light_blue_700, "light_blue"), | |
CYAN (R.color.cyan_500, R.color.cyan_900, R.color.cyan_700, "cyan"), |
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
#!/bin/bash | |
# This little shell script copies a backup of a certain app into the folder | |
# backup/ within the execution directory | |
# requires root via adb access | |
appToBackup="org.thoughtcrime.securesms" #change package name | |
tmpStore="tmpBackup_"$appToBackup"/" | |
adb devices |
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 | |
// Use: Add following url parameters: | |
// link: The url you want to get the backlinnks from (required) | |
// siteFilter: The site your backlinks should come from (eg. twitter.com) (optional) | |
function getJsonObject($link, $site) { | |
return json_decode(file_get_contents("https://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=link:$link+site:$site"), true); | |
} | |
$link = $_GET["link"]; | |
$siteFilter = $_GET["site"]; |
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 | |
/* | |
* Dieses Script importiert die Events aus einem ics-Calendar-Feed in Owncloud 8 oder 7. Die Kalender werden jeweils nur dann aktualisiert, wenn das Skript aufgerufen wird - sprich hier sollte ein cronjob für die Ausführung des Scripts erstellt werden. | |
* | |
* (Es sind einige Anpassungen im Skript notwendig) | |
* | |
* Gefunden auf zeit-zu-handeln.net. Kleine Anpassungen für Owncloud 8. | |
*/ | |
//Hier den Pfad zur Owncloud-Installation einfügen |
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
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item> | |
<shape android:shape="rectangle" | |
android:dither="true"> | |
<corners android:radius="3dp"/> | |
<solid android:color="#ccc" /> | |
</shape> | |
</item> |
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 Python3 Script extracts all the quotes (and their links) from the Wikipedia 'Liste geflügelter Worte', which is a list of familiar quotations. | |
Furthermore it stores them into a database. | |
FYI: Currently it's 2125 quotations long. | |
""" | |
from urllib import request | |
import re | |
import string | |
import sqlite3 as lite |
NewerOlder