Skip to content

Instantly share code, notes, and snippets.

View saschazepter's full-sized avatar

Sascha Zepter saschazepter

View GitHub Profile
@saschazepter
saschazepter / Microsoft Static Activation Keys
Created August 20, 2025 20:40 — forked from jamesy0ung/Microsoft Static Activation Keys
Microsoft Static Activation Keys for many Microsoft products
Access 2003 Developer Extensions: KHCYK-2DXWD-6D4BV-9D9K6-TT9RY
Access 2003: HVCBT-WQ823-BHMJC-RQJ3P-9T9VT
Advanced Threat Analytics (ATA): F3JM7-7QNWQ-KKFVP-PDDRT-4M6P7
Automatic Graph Layout: HWQWP-RXKVP-PJ4BB-9KD87-K67H2
Commerce Server 2002: QJY77-8G8BD-3FYFQ-FDFH3-4RDCP
CRM 2011 Server Edition: 36D7J-FR6QG-JXPF6-H449P-2P6RR
CRM 2011 Workgroup Server Edition: 73B26-GWVRK-GDX7X-MDQBX-DH28R
CRM 3.0 Professional Edition: D2Q47-3K4QX-FPVDT-P4QT6-3C8H8
CRM 3.0 Small Business Edition: TD7BB-D2H87-27KJH-VMH3P-QTQYW
CRM 4.0 Enterprise Edition: WQWYD-FHH7F-XQPCK-2B8KG-D6VT3
@saschazepter
saschazepter / Session Converter.html
Created May 9, 2025 20:14 — forked from alahmnat/Session Converter.html
Session Buddy to Tab Session Manager export converter
<html>
<head></head>
<body>
<p>
<b>How to use this tool:</b> In Chrome, open Session Buddy. Click on the gear at the top-right, and select "Export".
</p>
<p>
In the export dialog, select "JSON" as the export type, and be sure to select both "Sessions" and "Windows" in the "Show" options.
</p>
<p>
@saschazepter
saschazepter / openssl_commands.md
Created May 8, 2025 12:28 — forked from Hakky54/openssl_commands.md
OpenSSL Cheat Sheet

OpenSSL Cheat Sheet 🔐

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
#!/usr/bin/env python3
#
# Carlos Albornoz <[email protected]>
#
RELATIVE = 1
BLOCK_SIZE = 2**20
import tarfile
import os
@saschazepter
saschazepter / git-svn.md
Created December 26, 2024 19:09 — forked from yancyn/git-svn.md
Migrate Archive Google Code SVN to Git

Migrate Archive Google Code SVN to Git

Requirements

  • git
  • git-svn

Setup¹

$ sudo apt-get install git
$ sudo add-apt-repository ppa:git-core/ppa
@saschazepter
saschazepter / edit_commit_history.md
Created November 13, 2024 11:34 — forked from amalmurali47/edit_commit_history.md
Change ownership of selected older commits in Git
  1. Clone the repo.
  2. Use git rebase -i --root
  3. vim will open. Select the commits you want to modify by changing pick to edit. If you would like to change all the commits, perform the following replace: :%s/^pick/edit/g. This command changes all instances of "pick" at the start of lines to "edit".
  4. You will now be shown all the selected commits one by one. Each commit message will be displayed. You have two options:
    • If you would like to keep the commit author details the same, do a git rebase --continue.
    • If you would like to change it to a different name/email, do git commit --amend --reset-author. If --reset-author is specified, it will use the details from your git config. (If you need to specify an alternate name/email, you can do so with --author="John Doe <[email protected]>". If you would like to change the time to a previous date, you can do so with --date "2 days ago".)
  5. Do the same for all the commits and finish the rebase.
  6. Perform git push -f origin master to
@saschazepter
saschazepter / hg-git-sync.sh
Created November 9, 2024 23:08 — forked from lietu/hg-git-sync.sh
Sync a Mercurial (hg) repository to a Git repository
#!/usr/bin/env sh
set -exu
# Which Git repo to sync with - change this for sure
GIT_REPO="git@..."
# Paths
HG_REPO="$(pwd -P)" # You might need to change this
GIT_TMP="/tmp/git-sync-$(date +%s)"
@saschazepter
saschazepter / gist:b1fa3e235b62e56dc1a851b848700394
Created November 7, 2024 19:21 — forked from CrookedNumber/gist:8964442
git: Removing the last commit

Removing the last commit

To remove the last commit from git, you can simply run git reset --hard HEAD^ If you are removing multiple commits from the top, you can run git reset --hard HEAD~2 to remove the last two commits. You can increase the number to remove even more commits.

If you want to "uncommit" the commits, but keep the changes around for reworking, remove the "--hard": git reset HEAD^ which will evict the commits from the branch and from the index, but leave the working tree around.

If you want to save the commits on a new branch name, then run git branch newbranchname before doing the git reset.

# Repo: someuser/myframework
# Fork: superteam/myframework
# Track:
git clone https://github.com/superteam/myframework.git
cd myframework
git remote add upstream https://github.com/someuser/myframework.git
# Update:
git fetch upstream
@saschazepter
saschazepter / gist:e75b03d4147fd99b5ab8ea0601cd1fae
Created November 7, 2024 15:50 — forked from JPBlanc/gist:1082221
Retreive the FSMO roles from a Domain Controler usind ADSI
'==========================================================================
'
' NAME: fSMORoleOwner.vbs
'
' AUTHOR: JPB , Silogix
' DATE : 13/07/2011
'
' COMMENT: This script allow to retreive the five FSMO Role Owners
'
'==========================================================================