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 | |
# Name of SSH key | |
key=github_ed25519 # You can rename this | |
# Generate new SSH key | |
ssh-keygen -t ed25519 -f ~/.ssh/${key} -q -P "" | |
# Authorized it | |
cat ~/.ssh/${key}.pub >>~/.ssh/authorized_keys |
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
Hi |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Search] | |
"BingSearchEnabled"=dword:00000000 | |
"AllowSearchToUseLocation"=dword:00000000 | |
"CortanaConsent"=dword:00000000 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search] | |
"AllowCortana"=dword:00000000 | |
"DisableWebSearch"=dword:00000001 |
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 | |
function get_ip(){ | |
if( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) ){ | |
$ip = $_SERVER['HTTP_CLIENT_IP']; | |
} | |
elseif( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ){ | |
$ip = $_SERVER['HTTP_X_FORWARDED_FOR']; | |
} | |
else{ | |
$ip = $_SERVER['REMOTE_ADDR']; |
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
######################################################################## | |
# OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2.0.9 - 03/2024 | |
# ---------------------------------------------------------------------- | |
# @Author: Andreas Hecht | |
# @Author URI: https://seoagentur-hamburg.com | |
# License: GNU General Public License v2 or later | |
# License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
######################################################################## | |
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 | |
// fix CloudFlare/Varnish IPs | |
function transform_cf(&$ip){ | |
if(!isset($_SERVER['HTTP_CF_CONNECTING_IP'])) | |
return; | |
$cf_cidrs = array( | |
"103.21.244.0/22", | |
"103.22.200.0/22", | |
"103.31.4.0/22", |