Skip to content

Instantly share code, notes, and snippets.

View wesley974's full-sized avatar
💭
Learning CEH...

Wesley wesley974

💭
Learning CEH...
View GitHub Profile
@jesseloudon
jesseloudon / BitLocker-ActivateOnShutdown.ps1
Created January 7, 2020 02:05
BitLocker Activation Script
#Check BitLocker prerequisites
$TPMNotEnabled = Get-WmiObject win32_tpm -Namespace root\cimv2\security\microsofttpm | where {$_.IsEnabled_InitialValue -eq $false} -ErrorAction SilentlyContinue
$TPMEnabled = Get-WmiObject win32_tpm -Namespace root\cimv2\security\microsofttpm | where {$_.IsEnabled_InitialValue -eq $true} -ErrorAction SilentlyContinue
$WindowsVer = Get-WmiObject -Query 'select * from Win32_OperatingSystem where (Version like "6.2%" or Version like "6.3%" or Version like "10.0%") and ProductType = "1"' -ErrorAction SilentlyContinue
$BitLockerReadyDrive = Get-BitLockerVolume -MountPoint $env:SystemDrive -ErrorAction SilentlyContinue
$BitLockerDecrypted = Get-BitLockerVolume -MountPoint $env:SystemDrive | where {$_.VolumeStatus -eq "FullyDecrypted"} -ErrorAction SilentlyContinue
$BLVS = Get-BitLockerVolume | Where-Object {$_.KeyProtector | Where-Object {$_.KeyProtectorType -eq 'RecoveryPassword'}} -ErrorAction SilentlyContinue
#Step 1 - Check if TPM is enabled and initialise if required

Top Questions for Sysadmin Interview:

Disclaimer: These questions and answers aren't at all mine. These were scavanged around in the web. I hope it helps.

Basic:
  1. What is Linux and also explain the basic components of Linux?

    Answer: Linux is the most commonly used operating system that is open source and free. For any computer, the operating system acts as the backbone, and it is most important software that is required for any computer.

@FilipaBarros
FilipaBarros / Sysadmin_Interview_Questions.md
Last active September 5, 2025 10:06
Sysadmin Interview Questions

Top Questions for Sysadmin Interview:

Disclaimer: These questions and answers aren't at all mine. These were scavanged around in the web. I hope it helps.

Basic:
  1. What is Linux and also explain the basic components of Linux?

    Answer: Linux is the most commonly used operating system that is open source and free. For any computer, the operating system acts as the backbone, and it is most important software that is required for any computer.

@djzager
djzager / rhcsa.md
Created February 22, 2019 12:29
RHCSA Study Guide

RHCSA Course

Local and Remote Logins

Commands Introduced

### Generate an SSH key
ssh-keygen

Remove user

rmuser jru

chsh entry inconsistent

@rstacruz
rstacruz / README.md
Last active April 13, 2020 19:25
CSS Blitz - Form fields
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active August 30, 2025 20:51
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@ay65535
ay65535 / after_cleaninstall.md
Last active May 31, 2024 22:46
useful commands that can be used after clean installation of Windows 10
# Change network profile
$privNwIfIdx = Get-NetConnectionProfile | Where-Object -Property Name -like 'eoRT*' | Select-Object -ExpandProperty 'InterfaceIndex'
Set-NetConnectionProfile -InterfaceIndex $privNwIfIdx -NetworkCategory Private
start ms-settings:about
@e-minguez
e-minguez / doom.md
Last active August 30, 2018 11:12
OpenBSD chocolate-doom server how to

First, install chocolate doom:

doas pkg_add chocolate-doom

Create a group and a user to run the chocolate-server

doas groupadd -g 780 _chocolatedoom
zabbix_proxy
fresh openbsd62 installation with comp xbase xfont (x for java)
/etc/rc.d/ntpd start
rcctl enable ntpd
pkg_add wget zabbix-agent
rcctl enable zabbix_agentd