*.log
-DONE.md
\ No newline at end of file
+DONE.md
+.github_access_token
+env/*
+*.json
+OneTrust.ipynb
\ No newline at end of file
"titleBar.inactiveBackground": "#21573299",
"titleBar.inactiveForeground": "#e7e7e799"
},
- "peacock.color": "#215732"
+ "peacock.color": "#215732",
+ "python.pythonPath": "c:\\src\\dotfiles\\env\\Scripts\\python.exe"
}
\ No newline at end of file
function Find-LargeFiles() {
- Get-ChildItem c:\ -r| sort -descending -property length | select -first 10 name, Length, Location
+ Get-ChildItem c:\ -r| sort -descending -property length | select -first 10 name, Length, FullName
+}
+
+function List-DriveSpace() {
+ Get-PSDrive C | Select-Object Used,Free
}
docker run -v /c/src:/etc/src dxa4481/trufflehog /etc/src/SecOps-Tools
}
+function Export-VSCodeExtensions {
+ code --list-extensions | Out-File -FilePath /src/dotfiles/vscode-extensions.txt
+ Get-Content -Path /src/dotfiles/vscode-extensions.txt
+}
+
#requires -version 5.1
#ConvertTo-ASCIIArt.ps1
# TODO Install Chocolatey
-# PoshGit
-PowerShellGet\Install-Module posh-git -Scope CurrentUser -Force
-
-
-if($false) {
- choco install docker-desktop
-}
-
-if($false) {
- choco install gnupg
- gpg --full-generate-key
-}
# Install Python3 and Pip
# Install Stub PowerShell Profile that sources the one from DotFiles
choco install zap
}
-# Install GNU Make for Windows
-if($false) {
- choco install make
-}
## TODO: Can I set this via command line: chrome://flags/#enable-force-dark
if($doBootStrap) {
choco install archi
}
-if($false) {
- choco install powershell-core
-}
\ No newline at end of file
+# Install dev tools
+./install/dev.ps1
\ No newline at end of file
--- /dev/null
+"""
+Recently Updated Open GitHub Issues
+"""
+
+import http.client
+
+conn = http.client.HTTPSConnection("api.github.com")
+
+payload = ""
+token = open('./.github_access_token').read()
+headers = { 'authorization': "token {}".format(token),
+ 'User-Agent': 'Python Jupyter Notebook'}
+conn.request("GET", "/issues?state=open&sort=updated", payload, headers)
+
+res = conn.getresponse()
+data = res.read()
+
+results = data.decode("utf-8")
+
+data_file = 'gh_open.json'
+f = open(data_file, "w")
+f.write(results)
+f.close()
+print("Updated {} with {} length".format(data_file, len(results)))
+
+import pandas
+
+pdata = pandas.read_json(data_file)
+# print(pdata.title.head(3))
+
+from simple_rest_client import api
+
+token = open('./.github_access_token').read()
+headers = { 'authorization': "token {}".format(token),
+ 'User-Agent': 'Python Jupyter Notebook'}
+gh = api.API(api_root_url="https://api.github.com", headers=headers,
+ append_slash=False,
+ json_encode_body=True)
+
+gh.add_resource(resource_name='issues')
+gh.issues.actions
+
+results = gh.issues.list(params=query)
+titles = list(map(lambda t : t["title"], results.body))
+
+from simple_rest_client import api
+
+token = open('./.github_access_token').read()
+headers = { 'authorization': "token {}".format(token),
+ 'User-Agent': 'Python Jupyter Notebook'}
+gh = api.API(api_root_url="https://api.github.com", headers=headers,
+ append_slash=False,
+ json_encode_body=True)
+
+gh.add_resource(resource_name='issues')
+gh.issues.actions
+
+titles = list(map(lambda t : t["title"], results.body))
\ No newline at end of file
--- /dev/null
+PyGitHubcertifi==2020.6.20
+chardet==3.0.4
+Deprecated==1.2.10
+idna==2.10
+PyGithub==1.53
+PyJWT==1.7.1
+requests==2.24.0
+urllib3==1.25.11
+wrapt==1.12.1
\ No newline at end of file
--- /dev/null
+py -m venv env
touch ~/.installed/gimp
fi
-ls -al ~/.installeear
+ls -al ~/.installed
--- /dev/null
+if(-Not(Test-Path -Path ~/.installed)) {
+ New-Item -ItemType Directory -Path ~/.installed
+}
+
+if(-Not(Test-Path -Path ~/.installed/dev)) {
+ choco install docker-desktop
+ choco install powershell-core
+ choco install make # Install GNU Make for Windows
+ choco install act-cli # GitHub action runner
+ # PowerShell git aware prompt
+ PowerShellGet\Install-Module posh-git -Scope CurrentUser -Force
+ New-Item -ItemType File -Path ~/.installed/dev
+}
+
+if(-Not(Test-Path -Path ~/.ssh/id_rsa.pub)) {
+ choco install gnupg
+ gpg --full-generate-key
+}
+
+Get-ChildItem -Path ~/.installed
\ No newline at end of file
"folders": [
{
"path": "."
- },
- {
- "path": ".."
}
],
"settings": {
"titleBar.inactiveBackground": "#42b88399",
"titleBar.inactiveForeground": "#15202b99"
},
- "peacock.color": "#42b883"
+ "peacock.color": "#42b883",
+ "python.dataScience.jupyterServerURI": "local"
}
}
\ No newline at end of file
+++ /dev/null
-storage "consul" {
- address = "127.0.0.1:8500"
- path = "vault/"
-}
-
-listener "tcp" {
- address = "127.0.0.1:8200"
- tls_disable = 1
-}
\ No newline at end of file