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 | |
| apt update | |
| apt install -y powerline fonts-powerline | |
| #wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf | |
| #wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf | |
| #mv PowerlineSymbols.otf /usr/local/share/fonts/ | |
| #fc-cache -vf /usr/local/share/fonts/ | |
| #mv 10-powerline-symbols.conf /etc/fonts/conf.d/ |
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
| sudo apt-get install -y python-pip | |
| pip install awscli | |
| aws configure | |
| curl https://s3.amazonaws.com/aws-cloudwatch/downloads/latest/awslogs-agent-setup.py -O | |
| sudo python ./awslogs-agent-setup.py --region us-east-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
| sudo apt-get update | |
| sudo apt-get install samba | |
| sudo smbpasswd -a <user_name> | |
| sudo vim /etc/samba/smb.conf | |
| [<folder_name>] | |
| path = /<folder_path_to_share> | |
| valid users = <user_name> | |
| read only = no |
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
| wget https://d1wk0tztpsntt1.cloudfront.net/linux/latest/install | |
| sudo bash install | |
| sudo /opt/aws/awsagent/bin/awsagent status | |
| sudo /etc/init.d/awsagent stop | |
| sudo /etc/init.d/awsagent start |
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
| sudo su | |
| adduser hadoop | |
| usermod -aG sudo hadoop | |
| su - hadoop | |
| sudo vim /etc/ssh/sshd_config | |
| PasswordAuthentication yes | |
| sudo service sshd restart |
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": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Action": [ | |
| "logs:CreateLogGroup", | |
| "logs:CreateLogStream", | |
| "logs:PutLogEvents", | |
| "logs:DescribeLogStreams" |
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 urllib, json | |
| import requests | |
| import boto3 | |
| client = boto3.client( | |
| service_name='sts', | |
| region_name='us-east-2', | |
| aws_access_key_id='ACCESS_KEY', | |
| aws_secret_access_key='SECRET_KEY' | |
| ) |
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 | |
| import json | |
| lambda_client = boto3.client( | |
| service_name='lambda', | |
| region_name='us-east-2', | |
| aws_access_key_id='ACCESS_KEY', | |
| aws_secret_access_key='SECRET_KEY' | |
| ) |
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
| [ | |
| { | |
| 'repeat(30, 60)': { | |
| "model": "common.job", | |
| "pk": '{{index()}}', | |
| "fields": { | |
| "title": '{{lorem(1, "words")}}', | |
| "company_id": '{{integer()}}', | |
| "level": '{{random("beginner", "intermediate", "expert")}}', | |
| "location": "{{country()}}", |
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
| NameVirtualHost *:80 | |
| <VirtualHost *:80> | |
| ServerName job.api.XXXXX.XXX | |
| ServerAlias job | |
| ServerAdmin webmaster@localhost | |
| SetEnv DJANGO_SETTINGS_MODULE job_service.settings.production | |
| <Directory /var/www/html/job.service/job_service> |
OlderNewer