Skip to content

Instantly share code, notes, and snippets.

@plucena24
plucena24 / 2fa
Created April 16, 2020 19:57 — forked from MineRobber9000/2fa
2-factor authentication terminal app in Python
#!/usr/bin/env python
import os, os.path, stat, sys, base64
# TOTP lib inlined
import time, hmac, base64, hashlib, struct
def pack_counter(t):
return struct.pack(">Q", t)
@plucena24
plucena24 / app.py
Created March 31, 2021 15:09 — forked from rpkyle/app.py
Dash for Python Stock Ticker Sample App
import dash
from dash.dependencies import Input, Output
import dash_core_components as dcc
import dash_html_components as html
from pandas_datareader import data as web
from datetime import datetime as dt
app = dash.Dash('Hello World',
external_stylesheets=['https://codepen.io/chriddyp/pen/bWLwgP.css'])
@plucena24
plucena24 / Service KMS
Created May 10, 2023 00:50 — forked from judero01col/Service KMS
Volume License Activation Key Service - KMS
## Find Available Target Editions
DISM.exe /Online /Get-TargetEditions
## Convert Server Standard 2019 Evaluation to Server Standard 2019
DISM /online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula
## How To Activate
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /skms [server]:[port]
slmgr /ato
@plucena24
plucena24 / windows_and_office_kms_setup.adoc
Created May 29, 2023 14:27 — forked from jerodg/windows_and_office_kms_setup.adoc
Activate Windows and Office Using KMS Server

Microsoft Windows and Office KMS Setup

Action Center.{BB64F8A7-BEE7-4E1A-AB8D-7D8273F7FDB6}
Backup and Restore.{B98A2BEA-7D42-4558-8BD1-832F41BAC6FD}
Credential Manager.{1206F5F1-0569-412C-8FEC-3204630DFB70}
Devices and Printers.{A8A91A66-3A7D-4424-8D24-04E180695C7A}
Display.{C555438B-3C23-4769-A71F-B6D3D9B6053A}
HomeGroup.{67CA7650-96E6-4FDD-BB43-A8E774F73A57}
Notification Area Icons.{05d7b0f4-2121-4eff-bf6b-ed3f69b894d9}
Recovery.{9FE63AFD-59CF-4419-9775-ABCC3849F861}
RemoteApp and Desktop Connections.{241D7C96-F8BF-4F85-B01F-E2B043341A4B}
Speech Recognition.{58E3C745-D971-4081-9034-86E34B30836A}
@plucena24
plucena24 / unifi.md
Created June 7, 2023 13:53 — forked from rosco-pc/unifi.md
Unifi commands.md

Unifi AP useful commands

using SSH:

  • log in to AP: $ ssh ubnt@<IP>
  • default username & password: ubnt & ubnt

Generic

Command Example Function
File Name: en_windows_server_2019_x64_dvd_4cb967d8.iso
SHA256: 4C5DD63EFEE50117986A2E38D4B3A3FBAF3C1C15E2E7EA1D23EF9D8AF148DD2D
***This is not the evaluation version ***
What versions include in the ISO file :
Windwos Server 2019 standard, Windows Server 2019 datacenter,Windwos Server 2019 Standard 16/24 Core, Windows server 2019 Datacenter 16/24 core!
It can be also used to upgrade from Windows Server 2012 R2 to Server 2019 Version
Windows Server 2019 Retail ISO Download:
https://ln5.sync.com/dl/8354d2270/fcek48hp-txasa859-nmascbm8-gnvfjr27
@plucena24
plucena24 / Convert Evaluation Edition to Volume.txt
Created July 4, 2023 16:34 — forked from amit213/Convert Evaluation Edition to Volume.txt
Windows Server LTSC 2019 RTM Evaluations 180 days
Open PowerShell and type:
Standard Edition:
DISM /online /Set-edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula
DataCenter Edition:
DISM /online /Set-edition:ServerDatacenter /ProductKey:WMDGN-G9PQG-XVVXX-R3X43-63DFG /AcceptEula
@plucena24
plucena24 / bootstrap2019DC.ps1
Created July 4, 2023 16:34 — forked from phillhocking/bootstrap2019DC.ps1
Microsoft Windows Server 2019 Standard - Golden Image
# provision2019DC.ps1
# Flat Server 2019 1909.4 install to use in creating other 2019 images with Boxstarter
# 1.3 - 5/3/2020
# Author: Phillip Hocking phillhocking@gmail.com
#
# Purpose: This script provisions a base install Microsoft Windows Server 2019 VM Gen 2 Hyper-V instance for the purpose
# of further configuring as a PDC (Primary Domain Controller) or AAD DS (Azure Active Directory Domain Services) connector.
#
# Caveats: When the Hyper-V bootloader comes up it will say that boot timed out because the amount of time it takes for the
# Hyper-V connection terminal to connect is longer than the amount of time it gives to you 'press any key to install from cd'