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
# common settings | |
defaults | |
port 587 | |
auth on | |
tls on | |
tls_starttls on | |
tls_trust_file /etc/ssl/certs/ca-certificates.crt | |
logfile /var/log/msmtp/msmtp.log | |
# outlook smtp settings |
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 | |
$to = "recipient@gmail.com"; | |
$from = "sender@hotmail.com"; | |
$subj = "sending email using php mail() function"; | |
$body = "This email is sent using php mail() function. This proves that your msmtp service is correctly configured with php."; | |
mail($to, $subj, $body); | |
?> |
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
.entry-author-name:after { | |
content: '\f058'; | |
font-family: FontAwesome; | |
font-size: 15px; | |
margin-left:5px; | |
margin-right:5px; | |
color:#0274be;} |
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
var binaryStr = "111111111111111111111111000011111111111111111111"; |
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
B111111111111111111111111000011111111111111111111 |
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 phpinfo(); ?> |
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
# The MariaDB configuration file | |
# File location /etc/mysql/mariadb.cnf | |
# Tweak suggested by Abhishek Ghosh, thecustomizewindows.com | |
# for 16GB dedicated server running Apache2, PHP for WordPress single site | |
# Test with Major Hayden's MySQL Tuner | |
# https://github.com/major/MySQLTuner-perl | |
# | |
[mysqld_safe] | |
nice = -15 |
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
#!/usr/bin/expect | |
set USER [lindex $argv 0] | |
set HOST [lindex $argv 1] | |
set PWD [lindex $argv 2] | |
log_file /var/log/ssh_tmp.log | |
set timeout 30 | |
log_user 1 | |
set send_slow {1 .01} | |
send_log "Connecting to $HOST using $USER user\n" |
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
// Install https://wordpress.org/plugins/ad-invalid-click-protector/ | |
<?php | |
if( aicp_can_see_ads() ) { | |
// This part will show ads to your non-banned visitors | |
$adCode = '<div class="aicp"> | |
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> | |
<!-- responsive_box --> | |
<ins class="adsbygoogle right-floating-ad" |
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
// connects once upon pressing ESP32 boot pushbutton (GPIO 0) button and sends a message, closes connection | |
// written by Dr. Abhishek Ghosh, https://thecustomizewindows.com | |
// released under GNU GPL 3.0 | |
const byte BUTTON=18; // boot button pin (built-in on ESP32) | |
const byte LED=2; // onboard LED (built-in on ESP32) | |
#include <WiFi.h> |