python3
sudo apt-get install python3-bs4
or…
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Google Pretty Earth - Random Image Link</title> | |
</head> | |
<body onload="printRandomPrettyearthLink()"><body> | |
<script> | |
var prettyearthImage = ''; | |
var prettyearthBaseUrl = 'https://www.gstatic.com/prettyearth/assets/full/'; |
#!/usr/bin/env python | |
# encoding: utf-8 | |
import subprocess, string, json, urllib | |
# DISABLED: import httplib, base64 | |
""" | |
In order to run this Python script, make it executable first using: | |
chmod +x <filename>.py | |
And then run it using |
<# Batch change all PDF file names to lowercase letters within a specific directory #> | |
dir C:\PATH\TO\FOLDER\*.pdf | Rename-Item -NewName {$_.Name.ToLower()} |
$ cd /Applications/MAMP/Library/bin/ | |
$ ./mysqldump --host=localhost -uroot -proot source_database > ~/Desktop/database_name-dump.sql |
<link rel="alternate" hreflang="x-default" href="https://www.mysite.com/" /> | |
<link rel="alternate" hreflang="de" href="https://www.mysite.com/de-de" /> | |
<link rel="alternate" hreflang="en" href="https://www.mysite.com/en-de" /> | |
<link rel="alternate" hreflang="es" href="https://www.mysite.com/es-es" /> | |
<link rel="alternate" hreflang="fr" href="https://www.mysite.com/fr-fr" /> | |
<link rel="alternate" hreflang="zh" href="https://www.mysite.com/zh-cn" /> | |
<link rel="alternate" hreflang="zh-CN" href="https://www.mysite.com/zh-cn" /> | |
<link rel="alternate" hreflang="en-US" href="https://www.mysite.com/en-us" /> | |
<link rel="alternate" hreflang="de-DE" href="https://www.mysite.com/de-de" /> | |
<link rel="alternate" hreflang="en-DE" href="https://www.mysite.com/en-de" /> |
<?php | |
/** Raw content input */ | |
$title = 'Begriff "Test"; zu weiteren gleichnamigen Bedeutungen siehe Test <Begriffsklärung>'; | |
$description = 'Das Wort „Test“ kommt vom altfranzösischen test: Tiegel‚ Topf für alchemistische Versuche bzw. lateinisch testum, zu: testa = Platte, Deckel; (Ton)schale, Scherbe.'; | |
/** SEO friendly content */ | |
$seo_allowed_chars_pattern = '([^\w\s\p{L}.,;:!?\-\/\(\)\[\]…«»#@])'; | |
$meta_title = mb_ereg_replace($seo_allowed_chars_pattern, '', $title); | |
$meta_description = mb_ereg_replace($seo_allowed_chars_pattern, '', $description); | |
/** |
#!/bin/sh | |
log="ddns_updater.log.txt" | |
my_ext_ip=$(curl -sS http://icanhazip.com) | |
echo "\n\n\n===== \ | |
\n$(date -u) \ | |
\nUpdating IP to: $my_ext_ip \n" >> $log | |
curl -isSX PUT \ | |
-u "mail@host.tld:api_token" \ | |
-H "Content-Type: application/json" \ | |
--data '{"ip_address":"'$my_ext_ip'", "activate_wildcard": "false"}' \ |
RewriteEngine On | |
RewriteRule ^([\w-]+)(?:\.html|/)?$ $1.html [NC,QSA,L] | |
# Makes something like "website.com/abc123" => work by delivering the file "/abc123.html" |
seta r_mode "-1" | |
seta r_customwidth "5120" | |
seta r_customheight "2880" | |
seta cg_fov "115" | |
seta cg_gunCorrectFOV "1" | |
seta cl_renderer "opengl2" | |
seta r_allowSoftwareGL "0" | |
seta r_ignoreGLErrors "1" | |
seta r_smp "1" | |
seta r_displayrefresh "0" |
python3
sudo apt-get install python3-bs4
or…