Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View lynt-smitka's full-sized avatar

Vladimír Smitka lynt-smitka

View GitHub Profile
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
Server=monitoring.lynt.cz
Hostname=HOSTNAME
Include=/etc/zabbix/zabbix_agentd.d/*.conf
function lynt_date_shortcode( $atts , $content = null ) {
$atts = shortcode_atts(
array(
'den' => 0,
'start' => '',
'stop' => '',
),
$atts,'lynt_date');
@lynt-smitka
lynt-smitka / wp_customize_mail_headers.php
Created June 24, 2017 10:43
Fix Sender for WordPress mail
add_action('phpmailer_init', 'lynt_customize_mail_headers');
function lynt_customize_mail_headers($phpmailer) {
$phpmailer->Sender = $phpmailer->From;
}
function lynt_remove_hentry( $class ) {
return array_diff( $class, array( 'hentry' ) );
}
add_filter( 'post_class', 'lynt_remove_hentry' );
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<?php
include "wp-config.php";
$conn = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);
if ($conn->connect_error) {
<?php
print_r(apache_get_modules());
?>
HOST A:
ip link add link eth1 macsec0 type macsec
ip macsec add macsec0 tx sa 0 pn 1 on key 01 11111111111111111111111111111111
ip macsec add macsec0 rx address bb:bb:bb:bb:bb:bb port 1
ip macsec add macsec0 rx address bb:bb:bb:bb:bb:bb port 1 sa 0 pn 100 on key 02 22222222222222222222222222222222
ip link set dev macsec0 up
ip address add 172.16.16.1/24 dev macsec0
- hosts: webservers
remote_user: root
become_method: su
become_user: www
become: yes
gather_facts: no
any_errors_fatal: yes
max_fail_percentage: 30
connection: local
serial: 5
require all denied
<FilesMatch ^$>
require all granted
</FilesMatch>
<FilesMatch \.(js|gif|jpg|jpeg|png|svg|webp|webm|ico|woff|woff2|eot|ttf|otf|pdf|css|htm|html|txt|gz|php)$>
require all granted
</FilesMatch>
@lynt-smitka
lynt-smitka / social.html
Created March 14, 2018 15:05
Floating social icons - pure CSS, no JS, no external resources
<html>
<head>
<style>
.social-sticky-container {
z-index: 9999;
padding: 0px;
margin: 0px;
position: fixed;
left: -10px;
top: 180px;