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/backup/ftpcopy' | |
lftp -f " | |
open $HOST | |
user $USER $PASS |
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 | |
DATE=`date +%Y-%m-%d-%H-%M` | |
# PATH | |
PATH=/bin:/usr/bin:/usr/local/bin | |
# mysql dump | |
mysqldump -u nextcloud_backup -pPASSWORD --databases nextcloud > mysql_$DATE.sql | |
wait | |
# zip | |
7z a -mhe=on -pPASSWORD mysql_$DATE.7z mysql_$DATE.sql | |
wait |
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
.onion | |
.tk | |
.well-known | |
1link.in | |
1url.com | |
2big.at | |
2pl.us | |
2tu.us | |
2ya.com | |
3utilities.com |
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 |
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
<!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
<?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
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
#!/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
<?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); |
NewerOlder