Skip to content

Added Ubuntu 20.04 #20

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions 19.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ RUN apt update && \
apt -y install locales

RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

RUN mkdir -p /root/tools

Expand Down Expand Up @@ -78,9 +78,9 @@ RUN apt update && \
mv apktool /bin/ && \
chmod 755 /bin/apktool && \
chmod 755 /bin/apktool.jar
# Install PIL
RUN pip install Pillow

# Install PIL
RUN pip install Pillow

# Install frida and the frida tools
RUN pip install frida frida-tools
Expand All @@ -94,7 +94,7 @@ RUN cd /root/tools && \
# Install fzf
RUN cd /root/tools && \
git clone --depth 1 https://github.com/junegunn/fzf.git /root/.fzf && \
/root/.fzf/install --all --key-bindings --completion
/root/.fzf/install --all --key-bindings --completion

RUN apt-get update && \
apt-get install --no-install-recommends -y software-properties-common
Expand Down Expand Up @@ -132,7 +132,7 @@ RUN curl -LO https://github.com/BurntSushi/ripgrep/releases/download/0.9.0/ripgr
rm ripgrep_0.9.0_amd64.deb

# Bash 4.4 for vim mode
# RUN wget http://ftp.gnu.org/gnu/bash/bash-4.4.tar.gz && \
# RUN wget http://ftp.gnu.org/gnu/bash/bash-4.4.tar.gz && \
# tar zxvf bash-4.4.tar.gz && \
# cd bash-4.4 && \
# ./configure && \
Expand Down Expand Up @@ -176,7 +176,7 @@ RUN cd /root/tools && \
rm DynamoRIO*tar.gz && \
wget https://github.com/DynamoRIO/dynamorio/releases/download/cronbuild-7.91.18058/DynamoRIO-i386-Linux-7.91.18058-0.tar.gz && \
tar zxvf DynamoRIO*tar.gz && \
rm DynamoRIO*tar.gz
rm DynamoRIO*tar.gz

# Install Valgrind
Run apt update && \
Expand Down Expand Up @@ -228,7 +228,7 @@ RUN wget -O ~/.gdbinit-gef-extras.sh -q https://github.com/hugsy/gef/raw/master/

# Install go
RUN wget https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go*tar.gz
tar -C /usr/local -xzf go*tar.gz

COPY .tmux.conf /root/.tmux.conf
COPY test.sh /root/test.sh
Expand Down
110 changes: 110 additions & 0 deletions 20.04/.tmux.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
set-option -g default-terminal "screen-256color"

set-option -g prefix C-a
bind-key C-a last-window

set -g status-interval 1
set -g status-justify centre # center align window list
set -g status-left-length 20
set -g status-right-length 140
set -g status-left '#[fg=green]#H #[fg=black]• #[fg=green,bright]#(uname -r | cut -c 1-6)#[default]'
set -g status-right '#[fg=green,bg=default,bright]#(tmux-mem-cpu-load -i 1) #[fg=red,dim,bg=default]#(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",") #[fg=white,bg=default]%a%l:%M:%S %p#[default] #[fg=blue]%Y-%m-%d'

# C-b is not acceptable -- Vim uses it
set-option -g prefix C-a
bind-key C-a last-window

# Start numbering at 1
set -g base-index 1

# Allows for faster key repetition
set -s escape-time 0

# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on

# Allows us to use C-a a <command> to send commands to a TMUX session inside
# another TMUX session
bind-key a send-prefix

# Activity monitoring
setw -g monitor-activity on
set -g visual-activity on

# Vi copypaste mode
# set-window-option -g mode-keys vi
# bind P paste-buffer
# bind-key -T copy-mode-vi v send-keys -X begin-selection
# bind-key -T copy-mode-vi y send-keys -X copy-selection
# bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
# bind -T copy-mode-vi y send-keys -X copy-pipe 'xclip -in -selection clipboard'

bind-key - split-window
bind-key \ split-window -h

# hjkl pane traversal
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R

bind-key C command-prompt -p "Name of new window: " "new-window -n '%%'"

# reload config
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."

# auto window rename
set-window-option -g automatic-rename

# rm mouse mode fail
# set -g mode-mouse off

# color
set -g default-terminal "screen-256color"

# status bar
# set-option -g status-utf8 on

set-option -g history-limit 50000

# https://github.com/edkolev/dots/blob/master/tmux.conf
# Updates for tmux 1.9's current pane splitting paths.
if-shell "[[ `tmux -V` == *1.9* ]]" 'unbind c; bind c new-window -c "#{pane_current_path}"'
if-shell "[[ `tmux -V` == *1.9* ]]" 'unbind s; bind s split-window -v -c "#{pane_current_path}"'
if-shell "[[ `tmux -V` == *1.9* ]]" "unbind '\"'; bind '\"' split-window -v -c '#{pane_current_path}'"
if-shell "[[ `tmux -V` == *1.9* ]]" 'unbind v; bind v split-window -h -c "#{pane_current_path}"'
if-shell "[[ `tmux -V` == *1.9* ]]" 'unbind %; bind % split-window -h -c "#{pane_current_path}"'

#### COLOUR (Solarized dark)

# default statusbar colors
set-option -g status-bg black #base02
set-option -g status-fg yellow #yellow
set-option -g status-attr default

# default window title colors
set-window-option -g window-status-fg brightblue #base0
set-window-option -g window-status-bg default
#set-window-option -g window-status-attr dim

# active window title colors
set-window-option -g window-status-current-fg brightred #orange
set-window-option -g window-status-current-bg default
#set-window-option -g window-status-current-attr bright

# pane border
set-option -g pane-border-fg black #base02
set-option -g pane-active-border-fg brightgreen #base01

# message text
set-option -g message-bg black #base02
set-option -g message-fg brightred #orange

# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange

# clock
set-window-option -g clock-mode-colour green #green
Loading