Skip to content

Instantly share code, notes, and snippets.

Working with Ad-Hoc Ansible command

  • Add SSH Credentials ssh-add /path/to_cred_file.pem

  • contents of inventory.yml

   inventory.yml
   [dockerbuild]
   59.68.67.67
## Download & Install Python 2.7.x using the msi
https://www.python.org/downloads/
## Download pip from https://bootstrap.pypa.io/get-pip.py (Use PowerShell) to D:\Temp
PS C:\> Invoke-WebRequest -Uri 'https://bootstrap.pypa.io/get-pip.py' -OutFile D:\temp\get-pip.py
## Copy get-pip.py to Scripts folder under Python > Tools > Scripts
## Make sure you started PowerShell on an elevated window (Runas Administrator) as it needs to write to 'Program Files(x86)'

Setup New Mac

Install Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install, Setup Python

## Most useful
## Control > System and Security > System
control /name microsoft.System
## System Properties = Control > System and Security > System > Advanced System Settings
%Windir%\System32\SystemPropertiesAdvanced.exe
## Control > System and Security > Admin Tools
control /name microsoft.AdministrativeTools
GPO
Office 2010 SP1 Admin Templates:
Explanation: http://technet.microsoft.com/en-us/library/cc178992.aspx
Download: http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=18968
# How to create custom .adm or .admx files to add search providers to the toolbar search box in IE7
http://support.microsoft.com/kb/918238
# Allowing Standard Users to Install Network Printers on Windows 7 without Prompting for Administrative Credentials
@AdilHindistan
AdilHindistan / Cleanup Win10 QuickAccess
Created July 9, 2016 16:23
Cleanup recent (quick access) shortcuts for Windows 10
#AH - Cleanup Win10 QuickAccess / Recent
rm "$($env:appdata)\Microsoft\windows\Recent\*" -force -recurse
##AH - AdilHindistan - AD LastLogonTimeStamp
Summary:
Use LastLogonTimeStamp (replicated)
Use PasswordLastSet (ldap name: PwdLastSet) on GC (it get's replicated to GC. See Gist: https://gist.github.com/AdilHindistan/10896299)
http://msdn.microsoft.com/en-us/library/ms676824(VS.85).aspx
Last-Logon-Timestamp Attribute
This is the time that the user last logged into the domain.
Whenever a user logs on, the value of this attribute is read from the DC.
##AH - Adil Hindistan
How to find dll exported functions
===================================
D:\>"D:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\dumpbin.exe" /exports d:\Windows\system32\inetcpl.cpl
Microsoft (R) COFF/PE Dumper Version 12.00.30501.0
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file d:\Windows\system32\inetcpl.cpl
@AdilHindistan
AdilHindistan / .gitignore
Created March 17, 2016 01:13 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
Verifying that +adilhindistan is my blockchain ID. https://onename.com/adilhindistan