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
| hdiutil makehybrid -o ~/Desktop/image.iso ~/path/to/folder/to/be/converted -iso -joliet |
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
| deploy:Desktop jenkins$ cat setup_autopkg.sh | |
| #!/bin/bash | |
| defaults write com.github.autopkg GIT_PATH /usr/bin/git | |
| defaults write com.github.autopkg MUNKI_REPO /Volumes/deploy/munki_repo | |
| autopkg repo-add https://github.com/autopkg/recipes.git | |
| autopkg repo-add https://github.com/autopkg/derak-recipes.git | |
| defaults write com.github.autopkg CACHE_DIR ~/Library/AutoPkg/Cache |
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
| # Open Active Directory Module for Windows PowerShell in Administrative Tools and type the following command. | |
| Get-ADGroupMember -Identity GROUP-A | Add-ADPrincipalGroupMembership -MemberOf GROUP-B | |
| # Get-ADGroupMember gets all the members of GROUP-A and pipes into Add-ADPrincipalGroupMembership cmdlet that added the incoming members to GROUP-B. | |
| # count members | |
| (Get-ADGroupMember -Identity “GROUPNAME”).count | |
| # print group members |
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
| ldapsearch -LLL -x -h ad.company.com -D "uid=username,ou=Users,ou=MyGroup,dc=AD,dc=company,dc=com" -b "ou=MyGroup,dc=AD,dc=company,dc=com" -W |
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/sh | |
| /usr/local/bin/autopkg run -v ${JOB_NAME}.munki MakeCatalogs.munki 2>&1 | tee /Users/Shared/Jenkins/tmp/${JOB_NAME}.log | |
| RESULT=`grep rebuilt /Users/Shared/Jenkins/tmp/${JOB_NAME}.log` | |
| if [ -n "$RESULT" ]; then | |
| echo "${JOB_NAME} added to Munki repository. Build successful." | |
| exit 0 | |
| else | |
| echo "Nothing added to munki. Failing the build even though all is well." | |
| exit 1 |
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
| git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch some_file.py' --prune-empty --tag-name-filter cat -- --all |