Skip to content

Instantly share code, notes, and snippets.

@ZAM-
ZAM- / dbdump.py
Created December 12, 2019 01:05 — forked from tristanwagner/dbdump.py
CSV list of items id and names Vanilla WoW 1.12.1 from https://github.com/LightsHope/database
# encoding=utf8
import sys
import csv
import mysql.connector
# Connect to MSSQL Server
try:
conn = mysql.connector.connect(host="", user="",password="", database="")
@ZAM-
ZAM- / gist:9854b17022e2b310e579878193897006
Created July 1, 2019 18:20 — forked from ohadlevy/gist:674623
script to automate creation of machines, including dns, dhcp, tftp, foreman and puppet
#!/usr/bin/ruby
require "rubygems"
require "rest_client"
require "json"
require "uri"
fqdn = ARGV[0] || raise("Must define a fqdn")
mac = ARGV[1] || raise("Must define a mac")
# Remove foreman
yum remove foreman foreman-installer foreman-proxy foreman-release foreman-release-scl foreman-selinux
rm -rf /var/lib/foreman /usr/share/foreman /usr/share/foreman-proxy/logs
rm /etc/httpd/conf.d/foreman.conf
# Remove puppet
yum remove puppet puppetmaster puppet-common puppetmaster-common puppetlabs-release
rm -rf /usr/lib/ruby/vendor_ruby/puppet /usr/share/puppet /var/lib/puppet /etc/puppet
rm /etc/apache2/conf.d/puppet.conf
@ZAM-
ZAM- / self-signed-certificate-with-custom-ca.md
Created June 24, 2019 23:36 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096