aws iam deactivate-mfa-device --user-name user@example.com --serial-number \
arn:aws:iam::12345:mfa/user\@example.com
aws iam delete-virtual-mfa-device --serial-number arn:aws:iam::12345:mfa/user\@example.comgcloud container images list-tags gcr.io/project/repo --filter='-tags:*' \
--format='get(digest)' --limit=unlimited | parallel -I{} gcloud container images delete \
--quiet gcr.io/project/repo@{}
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
| import boto3 | |
| s3 = boto3.resource('s3') | |
| bucket = s3.Bucket('glacier-bucket') | |
| for obj_sum in bucket.objects.all(): | |
| obj = s3.Object(obj_sum.bucket_name, obj_sum.key) | |
| if obj.storage_class == 'GLACIER': | |
| # Try to restore the object if the storage class is glacier and | |
| # the object does not have a completed or ongoing restoration | |
| # request. |
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
| FROM python:2.7.15 | |
| COPY main.py /app/main.py | |
| RUN pip install pipenv | |
| RUN pipenv install --system --deploy | |
| EXPOSE 8080 | |
| WORKDIR /app |
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
| import jenkins.* | |
| import jenkins.model.* | |
| Jenkins.instance.getExtensionList('org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval')[0].get().preapproveAll() |
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
| pipeline { | |
| agent any | |
| parameters { | |
| string(defaultValue: '', description: 'The name of the organization working on this repository.', name: 'orgName') | |
| } | |
| stages{ | |
| stage("Create Repo Piplines") { | |
| steps { |
- Example of sample Docker container setup with Chef - https://github.com/maxivak/template-docker-chef-provisioning
-
Chef provisioning is a framework that allows clusters to be managed by the chef-client and the Chef server in the same way nodes are managed: with recipes.
-
Chef provisioning is a collection of resources that enable the creation of machines and machine infrastructures using the chef-client.
- Allow docker inside lxc containers
- https://stackoverflow.com/questions/39557576/docker-run-hello-world-still-fails-permission-denied
- https://forum.proxmox.com/threads/docker-in-lxc-container.45204/
lxc.apparmor.profile: unconfined
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
| $firstalphachar(%artist%)/$replace(%albumartist%-%album%/$if($gt(%totaldiscs%,1),%discnumber%$num(%tracknumber%,2),$num(%tracknumber%,2))-$lower(%artist%)-$lower(%title%), ,_) |