**Note: ** Remember to URL-Encode the parameters: https://www.urlencoder.org/
- Share Article:
https://www.linkedin.com/shareArticle?mini=true&url=<URL>&title=<TITLE>&source=<SOURCE_URL>&summary=<SUMMARY>
Examples:
[ | |
{ | |
"name": "Alice", | |
"message": "Congratulations on your retirement! Wishing you a journey of happiness and adventure in the years ahead." | |
}, | |
{ | |
"name": "Bob", | |
"message": "Happy Retirement! It's time to enjoy your life to the fullest. Thank you for your years of hard work and dedication." | |
}, | |
{ |
# Einfacher PowerShell Webserver | |
$listener = New-Object System.Net.HttpListener | |
$listener.Prefixes.Add("http://+:8000/") # Port 8000 | |
$listener.Start() | |
Write-Host "Listening on port 8000..." | |
while ($listener.IsListening) { | |
$context = $listener.GetContext() | |
$response = $context.Response |
javascript:void(open('https://archive.is/?url=%27+location.href)); |
<?php | |
function didYouMean($query, $suggestions) { | |
$querySoundex = soundex($query); | |
$similarSuggestions = []; | |
foreach ($suggestions as $suggestion) { | |
if (soundex($suggestion) == $querySoundex) { | |
$similarSuggestions[] = $suggestion; | |
} |
import numpy as np | |
# Eingabedaten | |
X = np.array([[0, 0, 1], | |
[0, 1, 1], | |
[1, 0, 1], | |
[1, 1, 1]]) | |
# Erwartete Ausgabedaten | |
y = np.array([[0], |
class WebCrawler { | |
private const CURL_OPTIONS = array( | |
CURLOPT_RETURNTRANSFER => true, | |
CURLOPT_FOLLOWLOCATION => true, | |
CURLOPT_SSL_VERIFYHOST => 2, | |
CURLOPT_SSL_VERIFYPEER => true, | |
CURLOPT_CAINFO => "/path/to/cert.pem" // hier den Pfad zum Zertifikat eintragen | |
); | |
private $visited_links = []; |
import mysql.connector | |
def save_enviro_data_in_db(vals): | |
print ("save db") | |
try: | |
mydb = mysql.connector.connect( | |
host="", | |
user="", | |
password="", | |
database="", |
#!/usr/bin/python | |
import yagmail | |
import sys | |
#initializing the server connection | |
yag = yagmail.SMTP(user='sender@sender', password='xxx') | |
#sending the email | |
yag.send(to='to@to', subject='Motion detected', contents=['Motion', sys.argv[1]]) | |
print("Email sent successfully") |
# Rename this distribution example file to motion.conf | |
# | |
# This config file was generated by motion 4.1.1 | |
# Documentation: /usr/share/doc/motion/motion_guide.html | |
############################################################ | |
# Daemon | |
############################################################ | |
# Start in daemon (background) mode and release terminal (default: off) |