This file contains 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 requests | |
import json | |
import argparse | |
import logging | |
github_api_url = "https://<github URL>/api/v3" | |
ghe_access_token = 'your github personal access token' | |
#logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO, filename='ghe_org_repo_list.log') | |
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) |
This file contains 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 logging | |
import argparse | |
import os | |
import botocore | |
import json | |
import boto3 | |
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) |
This file contains 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
1- Install mercurial | |
- apt-get install mercurial | |
2- Checkout bitbucket repo | |
- hg clone <repo url> -r <branch> | |
- EX - hg clone https://bitbucket.org/rptlab/reportlab -r default | |
3 - Create a git repo: | |
- cd reportlab | |
- git init | |
- git checkout -b master |
This file contains 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
Documentation: | |
http://docs.graylog.org/en/3.0/pages/configuration/rest_api.html | |
http://docs.graylog.org/en/2.3/pages/users_and_roles/permission_system.html | |
https://github.com/Graylog2/graylog2-server/issues/4133 | |
https://github.com/Graylog2/graylog2-server/blob/2.3.1/graylog2-server/src/main/java/org/graylog2/shared/security/RestPermissions.java#L49 | |
Internal API documentation: | |
https://<your graylog address>/api/api-browser/ | |
Get permissions list: |
This file contains 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
References: | |
https://docs.microsoft.com/pt-br/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=vs-2017 | |
https://docs.microsoft.com/pt-br/visualstudio/install/workload-and-component-ids?view=vs-2017 | |
https://docs.microsoft.com/pt-br/visualstudio/install/workload-component-id-vs-community?view=vs-2017 | |
https://docs.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=vs-2017 | |
Powershell commands: | |
setx /M PATH "%PATH%;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin; |
This file contains 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": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": [ | |
"iot:UpdateThing", | |
"iot:GetThingShadow", | |
"iot:UpdateThingShadow", |
This file contains 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
psql -h <endpoint/ip> -p <port> -d <dbname> -U <user> -W <password> |
This file contains 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
\copy (<SQL Query - no ;>) To '/home/user/query.csv' With header CSV delimiter as ';' |
This file contains 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
https://www.youtube.com/watch?v=6sWec7b0JIc | |
https://www.youtube.com/watch?v=xBLjXdyh3zs | |
https://www.youtube.com/watch?v=JsijdbjVlXw | |
https://www.youtube.com/watch?v=ExpkMy6DJ6o | |
https://docs.conan.io/en/latest/ |
This file contains 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
- Create user | |
aws iam create-user --user-name <username> | |
- Create login profile (to allow AWS Console access) | |
aws iam create-login-profile --user-name <value> --password <value> --password-reset-required | |
- Create access key (for programatic access) | |
aws iam create-access-key --user-name <username> | |
- Add user to group |
OlderNewer