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 json | |
| import requests | |
| URL = 'https://gitlab.com/api/v4/projects' | |
| API_KEY = '' | |
| payload = {'private_token' : API_KEY,'simple' : True} | |
| def main(): | |
| ''' make the connection to local gitlab ''' | |
| conn = requests.get(URL,params=payload) | |
| dict_result = json.loads(conn.text) |
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
| # set the Default Static Variable | |
| # if already set Environment variable, please comment this section | |
| SRC_PATH=/opt/b # src to read recommend full path | |
| DEST_PATH=/opt/a # encrypted to | |
| # assume that the expect output file format is .txt | |
| # Also, make sure that you import the private key before running the file via | |
| # gpg --import private.key | |
| for FILE in $(ls *.gpg) |
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
| # vi: set ft=ruby : | |
| # All Vagrant configuration is done below. The "2" in Vagrant.configure | |
| # configures the configuration version (we support older styles for | |
| # backwards compatibility). Please don't change it unless you know what | |
| # you're doing. | |
| Vagrant.configure("2") do |config| | |
| # The most common configuration options are documented and commented below. | |
| # For a complete reference, please see the online documentation at | |
| # https://docs.vagrantup.com. |
OlderNewer