-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nicety for those using VSCode #1
Open
maxgallup
wants to merge
9
commits into
vusec:main
Choose a base branch
from
maxgallup:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
5a0879e
lab1: You Got Framed
hammertux d6728f1
feat: added devcontainer support
maxgallup c4fc0b5
chore: edited readme
maxgallup fb02f82
fix: adapted gitignore
maxgallup 031a3a5
feat: added gef
maxgallup 00725f6
fix: cleanup
maxgallup a32958e
feat: added devbox support
maxgallup 1e12829
feat: updated readme + docker only support
maxgallup 1a00ed3
fix: updated readme
maxgallup File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
FROM ubuntu:22.04 | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt update && apt upgrade -y | ||
|
||
RUN apt update --fix-missing && apt install -y \ | ||
sudo \ | ||
build-essential \ | ||
curl \ | ||
git \ | ||
make \ | ||
python3 \ | ||
python-is-python3 \ | ||
wget | ||
|
||
RUN apt update --fix-missing && apt install -y \ | ||
clang \ | ||
llvm \ | ||
lld \ | ||
gdb \ | ||
qemu-system | ||
|
||
|
||
# Add custom user "dev" with sudo permissions | ||
RUN useradd dev -u 1000 -m -s /bin/bash && \ | ||
echo "dev ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers | ||
USER dev | ||
|
||
|
||
# Install GEF for sanity & its dependencies | ||
RUN sudo apt install -y file && bash -c "$(wget https://gef.blah.cat/sh -O -)" | ||
|
||
# Terminal prompt customizations | ||
COPY custom/gu /usr/local/bin/gu | ||
COPY custom/.bashrc /home/dev/.bashrc | ||
RUN sudo chown dev:dev /usr/local/bin/gu | ||
RUN sudo chown dev:dev /home/dev/.bashrc | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# customized PS1 prompt to indicate we are in a container | ||
PS1="\W \e[01;31m$\e[m " | ||
|
||
# If not running interactively, don't do anything | ||
case $- in | ||
*i*) ;; | ||
*) return;; | ||
esac | ||
|
||
# don't put duplicate lines or lines starting with space in the history. | ||
# See bash(1) for more options | ||
HISTCONTROL=ignoreboth | ||
|
||
# append to the history file, don't overwrite it | ||
shopt -s histappend | ||
|
||
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) | ||
HISTSIZE=1000 | ||
HISTFILESIZE=2000 | ||
|
||
# custom | ||
alias l="ls -lah" | ||
alias ..="cd .." | ||
|
||
# git aliases | ||
alias gs="git status" | ||
alias gc="git commit -m " | ||
alias ga="git add " | ||
alias gp="git push" | ||
alias gpl="git pull" | ||
alias gl="git log --pretty=oneline" | ||
|
||
# check the window size after each command and, if necessary | ||
# update the values of LINES and COLUMNS. | ||
shopt -s checkwinsize | ||
|
||
# make less more friendly for non-text input files, see lesspipe(1) | ||
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" | ||
|
||
|
||
# Alias definitions in bash_aliases | ||
if [ -f ~/work/scripts/.bash_aliases ]; then | ||
. ~/work/scripts/.bash_aliases | ||
fi | ||
|
||
# enable programmable completion features (you don't need to enable | ||
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile | ||
# sources /etc/bash.bashrc). | ||
if ! shopt -oq posix; then | ||
if [ -f /usr/share/bash-completion/bash_completion ]; then | ||
. /usr/share/bash-completion/bash_completion | ||
elif [ -f /etc/bash_completion ]; then | ||
. /etc/bash_completion | ||
fi | ||
fi | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"name": "aos-dev", | ||
|
||
"build": { | ||
"dockerfile": "Dockerfile" | ||
}, | ||
|
||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"streetsidesoftware.code-spell-checker", | ||
] | ||
} | ||
}, | ||
"capAdd": ["SYS_PTRACE"], | ||
"securityOpt": [ "seccomp=unconfined" ], | ||
|
||
// If you need more ports forwarded, add them here | ||
"forwardPorts": [ | ||
], | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.vscode | ||
__pycache__ | ||
obj | ||
.gdbrc* | ||
*jos* |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Welcome to the OpenLSD framework. | ||
|
||
# Usage with VSCode and Docker | ||
VSCode ships an extension called [Dev Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) which allows you to open a repository inside of a Docker container that has all necessary development tools installed. This isolates your development environment from your host machine. Simply install the extension, then run the _"Dev Containers: Rebuild and Reopen inside Container"_ command from VSCode's command palette. It will take a while to build the container, however after that it will be cached and can be opened quickly. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't use VS, and I am not responsible for this repo, but I know a
curl | sh
when I see one