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 | |
apt-get update | |
apt-get -yt $(lsb_release -cs)-security dist-upgrade | |
apt-get --trivial-only dist-upgrade | |
apt-get autoclean |
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 | |
// Wonach wird gesucht? | |
$searchQuery = "284910350"; | |
// iTunes API Request | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, "https://itunes.apple.com/de/lookup?id=".$searchQuery); | |
curl_setopt($ch, CURLOPT_HEADER, 0); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
$apiRequest = curl_exec($ch); |
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 | |
# Start Pokemon GO Map with multiple instances to scan | |
# see https://github.com/AHAAAAAAA/PokemonGo-Map/issues/1159#issuecomment-234522134 | |
# Delete db when restarting | |
rm pogom.db | |
# Delete nohup.out | |
rm nohup.out | |
# Location 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
<?php | |
// get latest german WordPress file | |
$ch = curl_init(); | |
$source = "https://de.wordpress.org/latest-de_DE.zip"; | |
curl_setopt($ch, CURLOPT_URL, $source); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
$data = curl_exec ($ch); | |
curl_close ($ch); |
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 | |
clamscan -i -r $1 > clamlog.txt 2>&1 | |
clamstatus=$? | |
clamlog=$(<clamlog.txt) | |
#echo "$clamlog" | |
if [ $clamstatus == 2 ]; then | |
clamstatustext="ERROR" |
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
import tweepy | |
import datetime | |
auth = tweepy.OAuthHandler("xxxxx", "xxxxxx") | |
auth.set_access_token("xxxx", "xxxxxxxxxx") | |
api = tweepy.API(auth) | |
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 | |
$xml = simplexml_load_file("https://example.com/feed.xml"); | |
foreach($xml->channel->item as $podcastItem){ | |
// data: | |
$podcast_title = $podcastItem->title->__toString(); | |
$podcast_id = $podcastItem->guid->__toString(); | |
$podcast_link = $podcastItem->link->__toString(); | |
// datum umwandeln: |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous"> | |
<title>Hello, world!</title> | |
</head> | |
<body class="bg-dark"> |
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
cd destination-direction | |
wget --mirror --continue --ftp-user=username --ftp-password=password --no-host-directories ftp://src/pathname/ |
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 | |
HOST='ftp.example.com' | |
USER='username' | |
PASS='password' | |
REMOTEFOLDER='/var/www' | |
LOCALFOLDER='/home/user/backup' | |
lftp -f " | |
open $HOST | |
user $USER $PASS |
OlderNewer