summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.bashrc17
-rw-r--r--.profile3
-rw-r--r--.vimrc5
-rw-r--r--bin/create_docker_network2
-rw-r--r--bin/create_docker_volume3
5 files changed, 30 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
new file mode 100644
index 0000000..f5c2787
--- /dev/null
+++ b/.bashrc
@@ -0,0 +1,17 @@
+alias x="exit"
+alias c=" clear"
+alias icanhazip="curl icanhazip.com"
+alias install="sudo apt install"
+alias rmp="sudo apt remove --purge"
+alias update="sudo apt update"
+alias upgrade="sudo apt upgrade"
+alias clean="sudo apt clean && sudo apt autoremove"
+alias mk="touch"
+alias grep="grep --color=auto"
+alias svim="sudo vim"
+alias ping="ping -c 5"
+alias cls="clear && ls"
+alias rsg="cat /dev/urandom | tr -dc 'a-zA-Z0-9@-_*&%=)(' | fold -w 128 | head -n 1"
+alias d="docker"
+alias g="git"
+alias grep.lines='grep -rnw . -e'
diff --git a/.profile b/.profile
new file mode 100644
index 0000000..b33b6e9
--- /dev/null
+++ b/.profile
@@ -0,0 +1,3 @@
+if [ -d "$HOME/bin" ] ; then
+ PATH="$HOME/bin:$PATH"
+fi
diff --git a/.vimrc b/.vimrc
new file mode 100644
index 0000000..fb2eb44
--- /dev/null
+++ b/.vimrc
@@ -0,0 +1,5 @@
+let mapleader = "\<Tab>"
+nnoremap <Leader>w :w<CR>
+nnoremap <Leader>q :q!<CR>
+nnoremap <Leader>ws :w !sudo tee %<CR>
+nnoremap <Leader>wq :wq<CR>
diff --git a/bin/create_docker_network b/bin/create_docker_network
new file mode 100644
index 0000000..5b573bc
--- /dev/null
+++ b/bin/create_docker_network
@@ -0,0 +1,2 @@
+#!/bin/bash
+docker network create -d bridge $1
diff --git a/bin/create_docker_volume b/bin/create_docker_volume
new file mode 100644
index 0000000..5732d18
--- /dev/null
+++ b/bin/create_docker_volume
@@ -0,0 +1,3 @@
+#!/bin/bash
+mkdir /var/opt/$1
+docker volume create --driver local --opt type=none --opt device=/var/opt/$1 --opt o=bind $1