Skip to content

Instantly share code, notes, and snippets.

View Shommy's full-sized avatar

Miloš Ćelić Shommy

  • New York
View GitHub Profile
@Shommy
Shommy / auditAD.ps1
Created November 23, 2015 19:01 — forked from nopslider/auditAD.ps1
Find Privileged Accounts in an AD forest, showing accounts with old and non-expiring passwords
<#
This script will create a report of users that are members of the following
privileged groups:
- Enterprise Admins
- Schema Admins
- Domain Admins
- Cert Publishers
- Administrators
- Account Operators
- Server Operators
1. cd /usr/lib/firefox/distribution/searchplugins/locale/en-US/
2. sudo cp google.xml google.xml.backup
3. sudo nano google.xml
4. change <SearchForm>https://www.google.com/</SearchForm>
to <SearchForm>https://www.google.com/ncr/</SearchForm>
5. save changes and restart firefox
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libxml2-dev libxslt-dev libreadline6-dev libyaml-dev
# apt-get -y install libmysqlclient-dev # uncomment for mysql support
cd /tmp
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p286.tar.gz
tar -xvzf ruby-1.9.3-p286.tar.gz
cd ruby-1.9.3-p286/
./configure --prefix=/usr/local
make