[devyn@ipa ~]$ ipa help commands
automember-add Add an automember rule.
automember-add-condition Add conditions to an automember rule.
automember-default-group-remove Remove default (fallback) group for all unmatched entries.
automember-default-group-set Set default (fallback) group for all unmatched entries.
automember-default-group-show Display information about the default (fallback) automember groups.
automember-del Delete an automember rule.
automember-find Search for automember rules.
automember-mod Modify an automember rule.
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
| Skip to content | |
| Sign up Sign in | |
| This repository | |
| Search | |
| Explore | |
| Features | |
| Enterprise | |
| Pricing | |
| Watch 7 Star 88 Fork 48 maxim-oleinik/symfony-dev-rules | |
| Code Pull requests 1 Pulse Graphs |
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
| Skip to content | |
| Sign up Sign in | |
| This repository | |
| Search | |
| Explore | |
| Features | |
| Enterprise | |
| Pricing | |
| Watch 7 Star 88 Fork 48 maxim-oleinik/symfony-dev-rules | |
| Code Pull requests 1 Pulse Graphs |
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
| user www-data; | |
| worker_processes auto; | |
| worker_cpu_affinity auto; | |
| worker_rlimit_nofile 10000; | |
| worker_shutdown_timeout 30; | |
| pid /run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| # Для Linux 2.6+ - epool, Для FreeBSD - kqueue |
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 | |
| iam = boto3.client('iam') | |
| def find_user_and_groups(): | |
| for userlist in iam.list_users()['Users']: | |
| userGroups = iam.list_groups_for_user(UserName=userlist['UserName']) | |
| print("Username: " + userlist['UserName']) | |
| print("Assigned groups: ") | |
| for groupName in userGroups['Groups']: |
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
| version: '2' | |
| services: | |
| # MongoDB: https://hub.docker.com/_/mongo/ | |
| mongodb: | |
| image: mongo:3 | |
| # Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/5.6/docker.html | |
| elasticsearch: | |
| image: docker.elastic.co/elasticsearch/elasticsearch:5.6.3 | |
| environment: | |
| - http.host=0.0.0.0 |
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/bash | |
| # | |
| # 1, Create AWS IAM user with a policy allowing only AWS SNS Publish command | |
| # 2, Install awscli with 'yum -y install awscli' on zabbix server | |
| # 3, Add /bin/bash shell for zabbix user: usermod -s /bin/bash zabbix | |
| # 4, Deploy this script to: /etc/zabbix/send-aws-sns-sms.sh | |
| # 5, Edit this script and define the required variables | |
| # 6, Run the script manually to test | |
| # 7, Use the script in Zabbix. Create a new Media Type -> Script | |
| # Use zabbix documentation for the script parameter setup |
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
| --- | |
| hosts: all | |
| tasks: | |
| - name: add github ssh key | |
| copy: > | |
| src=files/id_rsa.github | |
| dest=/root/.ssh/id_rsa.github | |
| owner=root | |
| group=root |
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
| #!/usr/bin/env python | |
| import argparse | |
| import json | |
| from ipalib import api | |
| def initialize(): | |
| ''' | |
| This function initializes the FreeIPA/IPA API. This function requires |
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/bash | |
| # hostname server.domain.com | |
| # vi /etc/hostname | |
| # deb http://apt.numeezy.fr wheezy main | |
| # deb-src http://apt.numeezy.fr wheezy main | |
| # wget -qO - http://apt.numeezy.fr/numeezy.asc | apt-key add - | |
| apt-get update |
OlderNewer