*.log
-DONE.md
\ No newline at end of file
+DONE.md
+.github_access_token
+env/*
+*.json
+OneTrust.ipynb
+*.conf
\ No newline at end of file
"titleBar.inactiveBackground": "#21573299",
"titleBar.inactiveForeground": "#e7e7e799"
},
- "peacock.color": "#215732"
+ "peacock.color": "#215732",
+ "python.pythonPath": "/usr/bin/python3"
}
\ No newline at end of file
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
--- /dev/null
+<#
+.SYNOPSIS
+ Converts a Microsoft Teams Project Board Excel export into Markdown.
+
+.PARAMETER Path
+ The path to an Excel file exported from a Microsoft Teams project.
+
+.PARAMETER StartRow
+ The first row of data in the Teams project Excel export.
+ Defaults to 5.
+
+.EXAMPLE
+
+> ./Teams2Markdown.ps1 -Path C:\tmp\TeamsExport.xlsx | Out-File c:\tmp\TeamsMarkdown.md
+
+.NOTES
+
+This script requires the Import-Excel module, available in PowerShell gallery.
+
+> Install-Module Import-Excel
+
+#>
+param(
+ [string]$Path,
+ [int]$StartRow = 5
+)
+
+$xlData = Import-Excel -Path $Path -StartRow $StartRow
+
+ # $xlData | Select-Object -First 2 | Format-List
+
+$xlData | Sort-Object { $_."Bucket Name" } | ForEach-Object {
+
+ if(!$_."Task Name" -eq "") {
+ ""
+ "## $($_."Task Name") - $($_."Bucket Name")"
+ ""
+
+ if(!$_."Description" -eq "") {
+ "$($_."Description")"
+ }
+
+ if(!$_."Checklist Items" -eq "") {
+ $_."Checklist Items".split(';') | ForEach-Object {
+ "+ $($_)"
+ }
+ }
+ }
+}
+
+"Generated by [Teams2Markdown Script][1]."
+"[1]: https://github.com/edthedev/dotfiles/blob/master/Toybox/Teams2Markdown.ps1"
\ No newline at end of file
--- /dev/null
+<#
+.SYNOPSIS
+Some notes on using the SalesForce API.
+
+.NOTES
+
+Requires PsIni
+
+> Install-Module PsIni
+
+#>
+
+# --- Arrange
+$FileContent = Get-IniContent ".salesforce.conf"
+$url = $FileContent['salesforce']['url']
+$api_url = "$url/services/data"
+
+# --- Act
+
+$aboutAPI = curl $api_url
+
+# --- Assert
+
+# Write-Output $api_url
+# $aboutAPI | Format-List
+$basicAPIInfo = $aboutAPI.Content | ConvertFrom-Json
+return $basicAPIInfo
+
+# Write-Output $aboutAPI.
# 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
mkdir -p ~/.installed
-## Setup Git and Vim
if [ ! -d ~/dotfiles ]; then
+ echo "************** Setup Git and Vim"
sudo apt-get install git vim-nox
cd ~; git clone git@github.com:edthedev/dotfiles.git
fi
# sudo apt-get install vim-nox
if [ ! -f ~/.vimrc ]; then
+ echo "************** Configure Git and link Vimrc"
git config --global user.email "edward@delaporte.us"
git config --global user.name "Edward Delaporte"
git config --global core.editor /usr/bin/vim
fi
if [ ! -f ~/.installed/i3 ]; then
+ echo "************** Install i3 Window Manager"
sudo apt-get install i3
touch ~/.installed/i3
fi
## Setup PowerShell
if [ ! -f ~/.config/powershell/Microsoft.PowerShell_profile.ps1 ]; then
+ echo "************** Install PowerShell and setup profile"
sudo apt-get install powershell
chsh --shell /usr/bin/pwsh
mkdir -p ~/.config/powershell/
## Create SSH Keys
if [ ! -f ~/.ssh/id_rsa ]; then
+ echo "************** Generate an SSH key"
ssh-keygen
fi
## Setup Screen
if [ ! -f ~/.screenrc ]; then
+ echo "************** Install Screen"
sudo apt-get install screen
ln -s ~/dotfiles/screenrc ~/.screenrc
fi
## Setup Vundle for Vim
if [ ! -d ~/.vim/bundle ]; then
+ echo "************** Setup Vundle for Vim"
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim +BundleInstall +qall
fi
if [ ! -d ~/.installed/code ]; then
+ echo "************** Install Visual Studio Code"
# sudo apt install snapd
# sudo snap install --classic code
wget https://packagecloud.io/headmelted/codebuilds/gpgkey -O - | sudo apt-key add -
--- /dev/null
+Docs are in
+/usr/local/share/doc/vice
+
+Run command is:
+C64DTV
\ 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
+# Reminder how to Setup I3 Window Manager on Raspberry Pi
+
+Modify this file to add `~/.config/lxsession/LXDE-pi/desktop.conf`
+
+```
+[Session]
+window_manager=/usr/bin/i3
+```
+
+Remember `alt+d` to run commands.
+
+You might need to hit `alt+2` as space 1 seems to get filled with the GTK desktop.
--- /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
--- /dev/null
+sudo apt-get update
+sudo apt-get upgrade
+sudo apt-get install exfat-fuse
+sudo apt-get install exfat-utils
\ No newline at end of file
--- /dev/null
+#/bin/bash
+
+code-oss --install-extension ban.spellright
+code-oss --install-extension benjpas.close-all
+code-oss --install-extension fabiospampinato.vscode-markdown-todo
+code-oss --install-extension geeklearningio.graphviz-markdown-preview
+code-oss --install-extension Gruntfuggly.todo-tree
+code-oss --install-extension janisdd.vscode-edit-csv
+code-oss --install-extension johnpapa.vscode-peacock
+code-oss --install-extension mechatroner.rainbow-csv
+code-oss --install-extension ms-python.python
+code-oss --install-extension ms-toolsai.jupyter
+code-oss --install-extension oderwat.indent-rainbow
+code-oss --install-extension pajoma.vscode-journal
+code-oss --install-extension telesoho.vscode-oss-markdown-paste-image
+code-oss --install-extension vscodevim.vim
+code-oss --install-extension yzane.markdown-pdf
+code-oss --install-extension yzhang.markdown-all-in-one
--- /dev/null
+cd ~/src
+mkdir vice-src
+cd ~/src/vice-src
+
+sudo apt install autoconf automake build-essential byacc dos2unix flex libavcodec-dev libavformat-dev libgtk2.0-cil-dev libgtkglext1-dev libmp3lame-dev libmpg123-dev libpcap-dev libpulse-dev libreadline-dev libswscale-dev libvte-dev libxaw7-dev subversion yasm libgtk3.0-cil-dev xa65 libsdl2-dev libsdl2-image-dev libgtk-3-dev libglew-dev
+
+mkdir -p src
+
+cd src
+
+svn checkout https://svn.code.sf.net/p/vice-emu/code/trunk trunk
+
+cd trunk/vice
+
+./autogen.sh
+
+./configure --disable-pdf-docs
+
+make -j4
+
+sudo make install
\ No newline at end of file
"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