-
Install Necessary Packages
yum -y install authconfig krb5-workstation pam_krb5 samba-common oddjob-mkhomedir
-
Set DNS Nameservers to Primary Domain Controller and Secondary View config like this
cat /etc/resolv.conf
and make sure the nameservers point at the domain controller IPs. -
Join Domain This will join the domain. It's multi-line for readability. You can copy/paste the whole thing into the terminal and it will work
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
myCollectionCount=`mongo -u user -p password database_name --quiet --eval 'db.getCollection("my_collection").count()'` | |
echo "my_collection Count: $myCollectionCount > disk.txt | |
echo >> disk.txt | |
df /dev/mapper/volume-group >> disk.txt | |
cat disk.txt | mail -S smtp="smtp.relay.tld:25" -r "From Name<[email protected]>" -s "Email Subject" -v "[email protected]" | |
rm disk.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"C:\Program Files (x86)\DOSBox-0.74\DOSBox.exe" -c "MOUNT D C:\bin:\DosGames" -c "D:" -c "cd keen5" -c "keen5e" -noconsole | |
REM | | |
REM | This mounts the D:\DosGames to the D drive and changes directory to keen6 and launches the keen6c executable with no console | |
REM | | |
REM | You can use these parameters in a script or Windows shortcut |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<NotepadPlus> | |
<UserLang name="go" ext="go"> | |
<Settings> | |
<Global caseIgnored="no" /> | |
<TreatAsSymbol comment="no" commentLine="no" /> | |
<Prefix words1="no" words2="no" words3="no" words4="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Delimiters">"'0"'0</Keywords> | |
<Keywords name="Folder+" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import os | |
import sys | |
# Simplified version of: http://www.engadget.com/2016/01/31/comcast-customer-complaint-bot/ aka http://pastebin.com/WMEh802V | |
# Removed the Twitter integration and file system logging | |
# To do: Add variables and math so the speeds are not hard coded and are based off a percent calculation | |
def speedbot(): | |
#Run speedtest-cli (pip install speedtest-cli, assumes it's in your system path) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[guid]::NewGuid().toString().ToUpper() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
iisreset /stop | |
ECHO Deleting x86 Temporary ASP.NET Files... | |
for /d %%i in ("%systemroot%\Microsoft.Net\Framework\v*") do for /d %%f in ("%%i\Temporary ASP.NET Files\*") do RD /q/s "%%f" | |
ECHO Deleting x64 Temporary ASP.NET Files | |
for /d %%i in ("%systemroot%\Microsoft.Net\Framework64\v*") do for /d %%f in ("%%i\Temporary ASP.NET Files\*") do RD /q/s "%%f" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.DESCRIPTION | |
Copies the Windows Spotlight lock screen images in Windows 10 to a "Windows Spotlight" folder in My Pictures. | |
This script will intelligently sort through the temporary directory and will only copy images | |
that are 1920x1080. Since the filenames of the images can change, the script will also compare | |
SHA1 hashes of the existing so we don't copy duplicates. | |
.NOTES | |
Version: 1.0.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ | |
ECHO ³ Title Here ³ | |
ECHO ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ | |
ECHO ³ Put all of your text here. It will be shown ³ | |
ECHO ³ in a nice table. ³ | |
ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ | |
ECHO. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Policy = "Unrestricted" | |
If ((get-ExecutionPolicy) -ne $Policy) { | |
Write-Host "Script Execution is disabled. Enabling it now" | |
Set-ExecutionPolicy $Policy -Force | |
Write-Host "Please Re-Run this script in a new powershell enviroment" | |
Exit | |
} |