Skip to content

Instantly share code, notes, and snippets.

View dennythecoder's full-sized avatar

Denny dennythecoder

View GitHub Profile
Academy of Management Annals/Current/https://journals.aom.org/action/showFeed?type=etoc&feed=rss&jc=annals
Academy of Management Annals/Cited/https://journals.aom.org/action/showMostCitedArticlesFeed?journalCode=annals
Academy of Management Journal/Current/https://journals.aom.org/action/showFeed?type=etoc&feed=rss&jc=amj
Academy of Management Journal/Cited/https://journals.aom.org/action/showMostCitedArticlesFeed?journalCode=amj
Academy of Management Perspectives/Current/https://journals.aom.org/action/showFeed?type=etoc&feed=rss&jc=amp
Academy of Management Perspectives/Cited/https://journals.aom.org/action/showMostCitedArticlesFeed?journalCode=amp
Academy of Management Discoveries/Current/https://journals.aom.org/action/showFeed?type=etoc&feed=rss&jc=amd
Academy of Management Discoveries/Cited/https://journals.aom.org/action/showMostCitedArticlesFeed?journalCode=amd
Academy of Management Learning & Education/Current/https://journals.aom.org/action/showFeed?type=etoc&feed=rss&jc=amle
Academy of Management L
@dennythecoder
dennythecoder / log.md
Last active January 11, 2022 01:06
LSASS Smartcard Error - Windows Logs

Application

Faulting application name: lsass.exe, version: 10.0.19041.1266, time stamp: 0x17c94394 Faulting module name: KERNELBASE.dll, version: 10.0.19041.1387, time stamp: 0x0b9a844a Exception code: 0xc000027b Fault offset: 0x000000000010b302 Faulting process id: 0x340 Faulting application start time: 0x01d8035af911766b Faulting application path: C:\Windows\system32\lsass.exe Faulting module path: C:\Windows\System32\KERNELBASE.dll

@dennythecoder
dennythecoder / ConsolidateSTIGChecklists.ps1
Created August 12, 2021 21:39
Example of consolidating STIG Checklists with PowerShell into a single CSV
$files = Get-ChildItem -Path "Y:\" *.ckl -r
$xmls = $files | % {[xml](get-content $_.FullName)}
$data = $xmls.Checklist | % {
$hostname = $_.Asset.HOST_NAME
#Vulns are each checklist item
$vulns = $_.STIGS.iSTIG.VULN
( $vulns | select @{Name="Host_Name";Expression={$hostname}},
STATUS,
@{Name="Vuln_Num"; Expression={$_.STIG_DATA[0].ATTRIBUTE_DATA}},
@dennythecoder
dennythecoder / dodBanner.js
Created August 4, 2021 02:04
Generic DoD Banner Popup Per Session for Webpage using JavaScript
(function(){
var hasAgreed = sessionStorage.getItem("has-agreed");
if(!hasAgreed){
var txt = ["You are accessing a U.S. Government (USG) Information System (IS) that is provided for USG-authorized use only.",
"By using this IS (which includes any device attached to this IS), you consent to the following conditions:",
" - The USG routinely intercepts and monitors communications on this IS for purposes including, but not limited to, penetration testing, COMSEC monitoring, network operations and defense, personnel misconduct (PM), law enforcement (LE), and counterintelligence (CI) investigations.",
" - At any time, the USG may inspect and seize data stored on this IS.",
" - Communications using, or data stored on, this IS are not private, are subject to routine monitoring, interception, and search, and may be disclosed or used for any USG-authorized purpose.",
" - This IS includes security measures (e.g., authentication and access controls) to protect U
The Fred Factor
Team of Teams, McCrystal
Lincoln on Leadership
Strengths Finder, Tom Rath
Eats, Shoots, and Leaves
The Goal, Eliyahu
Emergenetics, Geil Browning
5 Choices
[
{"Index":"1","Process #":"4.1","Process Name":"Develop Project Charter","Knowledge Area":"Integration","Process Group":"Initiate","ITTO Type":"Input","ITTO":"Business Documents","To Study":"","ITTO Purpose":"","ITTO Notes":""},
{"Index":"2","Process #":"4.1","Process Name":"Develop Project Charter","Knowledge Area":"Integration","Process Group":"Initiate","ITTO Type":"Input","ITTO":"Agreements","To Study":"","ITTO Purpose":"","ITTO Notes":""},
{"Index":"3","Process #":"4.1","Process Name":"Develop Project Charter","Knowledge Area":"Integration","Process Group":"Initiate","ITTO Type":"Input","ITTO":"Enterprise Environmental Factors","To Study":"","ITTO Purpose":"","ITTO Notes":""},
{"Index":"4","Process #":"4.1","Process Name":"Develop Project Charter","Knowledge Area":"Integration","Process Group":"Initiate","ITTO Type":"Input","ITTO":"Organizational Process Assets","To Study":"","ITTO Purpose":"","ITTO Notes":""},
{"Index":"5","Process #":"4.1","Process Name":"Develop Project Charter","Knowledge Area":"Int
INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_status`)
VALUES ('yourname', MD5('mysecretpassword'), 'firstname lastname', 'you@your-domain.com', '0');
INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`)
VALUES (NULL, (Select max(id) FROM wp_users), 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}');
INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`)
VALUES (NULL, (Select max(id) FROM wp_users), 'wp_user_level', '10');
@dennythecoder
dennythecoder / SharePoint Most Recent ULS.ps1
Created January 6, 2020 05:40
Get the most recent SharePoint ULS
$version = "15"
(ls "C:\program files\common files\microsoft shared\web server extensions\$version\logs\$env:COMPUTERNAME*.log" | sort LastWriteTime -Descending )[0]
function Create-SPPermissionsReport($path , $isRecursive)
{
$web = (Get-SPWeb $path)
$users = (Get-SPUser -web $web -Limit ALL)
$users | ForEach {
[pscustomobject]@{
'Name' = $_.Name
'Email' = $_.Email
'UserLogin' = $_.UserLogin