Skip to content

Instantly share code, notes, and snippets.

View ITSecMedia's full-sized avatar
🃏
If anything is worth doing, do it with all your heart. --Buddha

Norman Eckstein ITSecMedia

🃏
If anything is worth doing, do it with all your heart. --Buddha
View GitHub Profile
@ITSecMedia
ITSecMedia / google-disavow.txt
Created September 22, 2017 18:20
Google Disavow List for SPAM Domain
### 2017-09-16 == START ###
domain:81.231.146.222
domain:add-pages.com
domain:ads.earth
domain:advertise.academy
domain:advertise.boutique
domain:advertise.capital
domain:advertise.center
domain:advertise.clothing
function copyToClipboard( text ){
var copyDiv = document.createElement('div');
copyDiv.contentEditable = true;
document.body.appendChild(copyDiv);
copyDiv.innerHTML = text;
copyDiv.unselectable = "off";
copyDiv.focus();
document.execCommand('SelectAll');
document.execCommand("Copy", false, null);
document.body.removeChild(copyDiv);
@ITSecMedia
ITSecMedia / main.go
Created February 11, 2017 19:54 — forked from dmitshur/main.go
Server for HTTPS protocol. Redirects to canonical hosts, reverse proxies requests to internal backing servers.
// Server for HTTPS protocol. Redirects to canonical hosts, reverse proxies requests to internal backing servers.
package main
import (
"crypto/tls"
"flag"
"log"
"net/http"
"net/http/httputil"
"time"
Import-Module -Name D:\Temp\ACME-posh\ACMEPowerShell.psd1
$domain = "mydomain.com"
$certificiatePassword = "abcd1234"
$email = "letsencrypt@mydomain.com"
$vault = "D:\Vault\{0}\{1}" -f $domain, [guid]::NewGuid()
mkdir $vault
cd $vault
Initialize-ACMEVault -BaseURI https://acme-v01.api.letsencrypt.org/
New-ACMERegistration -Contacts mailto:$email
@ITSecMedia
ITSecMedia / outlook_email.py
Last active December 26, 2023 16:47
Python: Create an Email with Outlook
# https://itsec.media/post/python-send-outlook-email/
import win32com.client
from win32com.client import Dispatch, constants
const=win32com.client.constants
olMailItem = 0x0
obj = win32com.client.Dispatch("Outlook.Application")
newMail = obj.CreateItem(olMailItem)
newMail.Subject = "I AM SUBJECT!!"
@ITSecMedia
ITSecMedia / gist:f008f2ccb692277dfc12e6853e8da6fb
Last active March 25, 2020 01:26
simple vue.js 2.0 example to add dynamic values in gohugo.io static websites.
=== rest.php ===
some php that creates html output
=== put in your app.js ===
$( document ).ready(function() {
var url_api = 'http://www.domain.com/api/rest.php';
var header = new Vue({