Skip to content

Instantly share code, notes, and snippets.

@Eurekainc
Eurekainc / windows_hardening.cmd
Created September 14, 2023 07:42 — forked from xenoscr/windows_hardening.cmd
Script to perform some hardening of Windows OS
:: Windows 10 Hardening Script
:: This is based mostly on my own personal research and testing. My objective is to secure/harden Windows 10 as much as possible while not impacting usability at all. (Think being able to run on this computer's of family members so secure them but not increase the chances of them having to call you to troubleshoot something related to it later on). References for virtually all settings can be found at the bottom. Just before the references section, you will always find several security settings commented out as they could lead to compatibility issues in common consumer setups but they're worth considering.
:: Thank you @jaredhaight for the Win Firewall config recommendations!
:: Thank you @ricardojba for the DLL Safe Order Search reg key!
:: Best script I've found for Debloating Windows 10: https://github.com/Sycnex/Windows10Debloater
::
::#######################################################################
::
:: Change file associations to protect against common ransomware
These keys are for Office Professional Plus 2019
Version: Office19_RTM19_ProPlus2019VL_MAK_AE
BN8D3-W2QKT-M7Q73-Y3JWK-KQC63 (Activation left: 5000+)
PNB29-Y9TKP-BJFD2-RBCXR-DJ4XQ (Activation left: 1500+)
Download Link: ed2k://|file|cn_office_professional_plus_2019_x86_x64_dvd_5e5be643.iso|3775004672|1E4FFA5240F21F60DC027F73F1C62FF4|/
or please download from trusted source!
These keys are for Office Professional Plus 2019
Version: Office19_RTM19_ProPlus2019VL_MAK_AE
BN8D3-W2QKT-M7Q73-Y3JWK-KQC63 (Activation left: 5000+)
PNB29-Y9TKP-BJFD2-RBCXR-DJ4XQ (Activation left: 1500+)
Download Link: ed2k://|file|cn_office_professional_plus_2019_x86_x64_dvd_5e5be643.iso|3775004672|1E4FFA5240F21F60DC027F73F1C62FF4|/
or please download from trusted source!
@Eurekainc
Eurekainc / Awesome Libs.sh
Created June 20, 2018 17:04 — forked from deepakshrma/Awesome Libs.sh
Android Studio
## Networking
https://loopj.com/android-async-http/
https://github.com/koush/ion
https://github.com/square/okhttp
https://github.com/square/retrofit
## Images:
https://github.com/bumptech/glide
https://github.com/koush/ion
http://square.github.io/picasso/
@Eurekainc
Eurekainc / SSLXampp.md
Created June 20, 2018 17:01 — forked from nguyenanhtu/SSLXampp.md
Guide to configure SSL in XAMPP for Windows

How to test 'https' in XAMPP for localhost ? I will guide you

Menu

  • Create certificate
  • Config Apache to access https instead of http
  • Config mod rewrite to generate SSL url
  • Config Virtual host to test site

Step 1 : Create certificate

  • Go to your XAMPP installation directory (in my case it’s E:\xampp), figure out apache folder. In this, find & run batch file
@Eurekainc
Eurekainc / .htaccess
Created May 22, 2018 17:28 — forked from bhubbard/.htaccess
This is my template .htaccess file for WordPress on Cloud Sites.
# Apache Server Config | MIT License
# https://gist.github.com/bhubbard/6082577
# Modified from https://github.com/h5bp/server-configs-apaches
# ##############################################################################
# # Default WordPress #
# ##############################################################################
# http://randomtype.ca/blog/the-wordpress-htaccess-file-explained/
# BEGIN WordPress
@Eurekainc
Eurekainc / function.php
Created May 7, 2018 17:58 — forked from swapnilshrikhande/function.php
Send mail with mailgun api by PHP CURL.
<?php
define('MAILGUN_URL', 'https://api.mailgun.net/v3/DOMAIN_NAME');
define('MAILGUN_KEY', 'KEY');
function sendmailbymailgun($to,$toname,$mailfromnane,$mailfrom,$subject,$html,$text,$tag,$replyto){
$array_data = array(
'from'=> $mailfromname .'<'.$mailfrom.'>',
'to'=>$toname.'<'.$to.'>',
'subject'=>$subject,
'html'=>$html,
function mg_send($to, $subject, $message) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_USERPWD, 'api:'.MAILGUN_API);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$plain = strip_tags(br2nl($message));
@Eurekainc
Eurekainc / PHPMailer and mailgun
Created February 24, 2018 02:35 — forked from MrAbalogu/PHPMailer and mailgun
Send mail from contact form with PHPmailer & Mailgun very easy
// FIRST CREATE A FREE MAILGUN ACCOUNT HERE https://www.mailgun.com/
// html contact form example
<form action="mail.php" method="post">
<h5>name</h5>
<input type="text" name="name">
<h5>email address</h5>
<input type="text" name="email">
<h5>message</h5>
<textarea name="message"></textarea>
@Eurekainc
Eurekainc / captcha.js
Created January 3, 2018 17:40 — forked from cemerson/captcha.js
JavaScript: Client-Side CAPTCHA (Math)
<!doctype html>
<html lang="en">
<head>
<script type="text/javascript">
function addNums(){