Skip to content

Instantly share code, notes, and snippets.

@heyvoon
heyvoon / Remediate_JavaAutoupdateIsOn.ps1
Created May 19, 2015 11:01
This script will disable automatic updates if it is enabled.
<#
This script will disable automatic updates if it is enabled.
Name: Remediate_JavaAutoupdateIsOn.ps1
Created: 16.05.2015
Version: 1.0
Author: Teksoporte.es
Homepage: http://blog.teksoporte.es
#>
@heyvoon
heyvoon / Discover_JavaAutoupdateIsOn.ps1
Last active August 29, 2015 14:21
Discover_JavaAutoupdateIsOn.ps1
<#
This script will check if automatic updates is disabled and return a Compliant/Non-Compliant string.
Name: Discover_JavaAutoupdateIsOn.ps1
Created: 16/05/2015
Version: 1.0
Author: Teksoporte.es
Homepage: http://blog.teksoporte.es
#>
@chirag64
chirag64 / xrandr.sh
Last active May 24, 2024 15:43 — forked from debloper/xrandr.sh
Added license on user request
#!/bin/bash
# Copyright © 2021 Chirag Bhatia
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOF
@nsabine
nsabine / add_user.sh
Created September 17, 2013 19:51
Shell script to add a user to LDAP. Based on OpenLDAP and RFC 2307 memberuid group attributes.
#!/bin/bash
#
# add_user.sh: Add user to LDAP
# Author: Nick Sabine
#
# Defaults
LDAP_BASE="dc=ORG,dc=local"
LDAP_ACCOUNTS_DN="ou=people,${LDAP_BASE}"
LDAP_USER_GROUP="cn=user_group,ou=groups,${LDAP_BASE}"