mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 05:29:09 -07:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
3
.git-crypt/.gitattributes
vendored
Normal file
3
.git-crypt/.gitattributes
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# Do not edit this file. To specify the files to encrypt, create your own
|
||||||
|
# .gitattributes file in the directory where your files are.
|
||||||
|
* !filter !diff
|
||||||
Binary file not shown.
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
private_dotfiles/** filter=git-crypt diff=git-crypt
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,5 +1,3 @@
|
|||||||
private_dotfiles
|
|
||||||
private_dotfiles/**
|
|
||||||
installed-prefs
|
installed-prefs
|
||||||
*.swp
|
*.swp
|
||||||
*~
|
*~
|
||||||
|
|||||||
@@ -9,6 +9,10 @@ packages I like installed, and an ever-growing setup script. There are various
|
|||||||
options to install just parts of it, such as on a machine where I only have a
|
options to install just parts of it, such as on a machine where I only have a
|
||||||
user account but no root.
|
user account but no root.
|
||||||
|
|
||||||
|
This now uses [git-crypt](https://github.com/AGWA/git-crypt) to protect
|
||||||
|
`private_dotfiles` for things I don't want to splash all over the internet. :)
|
||||||
|
I still wouldn't check in anything terribly sensitive, like private keys.
|
||||||
|
|
||||||
### Usefulness ###
|
### Usefulness ###
|
||||||
Mostly I post this to github so I can quickly grab the things I want, but it
|
Mostly I post this to github so I can quickly grab the things I want, but it
|
||||||
might also be useful to others. Feel free to raise an issue if you have any
|
might also be useful to others. Feel free to raise an issue if you have any
|
||||||
@@ -22,6 +26,8 @@ MINIMAL: Don't do things that require git clones or installation of anything
|
|||||||
not included in my .skel. (Defaults to 0, installs everything.)
|
not included in my .skel. (Defaults to 0, installs everything.)
|
||||||
INSTALL_KEYS: Install GnuPG and SSH keys. SSH keys are placed in
|
INSTALL_KEYS: Install GnuPG and SSH keys. SSH keys are placed in
|
||||||
authorized_keys. (Defaults to 1, installs keys.)
|
authorized_keys. (Defaults to 1, installs keys.)
|
||||||
|
TRUST_ALL_KEYS: Allow all keys to be used for SSH login, versus a small subset.
|
||||||
INSTALL_PKGS: Install common packages, if on a Debian-like system.
|
INSTALL_PKGS: Install common packages, if on a Debian-like system.
|
||||||
(Defaults to opposite of $MINIMAL.)
|
(Defaults to opposite of $MINIMAL.)
|
||||||
|
SAVE: Save the install options to ${BASEDIR}/installed-prefs
|
||||||
```
|
```
|
||||||
|
|||||||
10
bin/google-chrome
Executable file
10
bin/google-chrome
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
CHROME=`which google-chrome`
|
||||||
|
|
||||||
|
if [ `id -u` != "0" ] ; then
|
||||||
|
exec $CHROME "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
|
CMD="${CHROME} --user-data-dir=${HOME}/.chrome-data-dir \"$@\""
|
||||||
|
su -c "${CMD}" chromeuser
|
||||||
@@ -8,12 +8,9 @@ fi
|
|||||||
BASEDIR=`dirname $0`
|
BASEDIR=`dirname $0`
|
||||||
|
|
||||||
cat >/etc/apt/sources.list.d/kali.list <<KALI_EOF
|
cat >/etc/apt/sources.list.d/kali.list <<KALI_EOF
|
||||||
deb http://http.kali.org/kali sana main non-free contrib
|
deb http://http.kali.org/kali kali-rolling main contrib non-free
|
||||||
deb-src http://http.kali.org/kali sana main non-free contrib
|
|
||||||
deb http://security.kali.org/kali-security/ sana/updates main contrib non-free
|
|
||||||
deb-src http://security.kali.org/kali-security/ sana/updates main contrib non-free
|
|
||||||
KALI_EOF
|
KALI_EOF
|
||||||
|
|
||||||
/usr/bin/apt-key add ${BASEDIR}/kali-repo.key
|
/usr/bin/apt-key add ${BASEDIR}/keys/gpg/kali-repo.key
|
||||||
/usr/bin/apt-get update
|
/usr/bin/apt-get update
|
||||||
/usr/bin/apt-get install -y kali-linux-full
|
/usr/bin/apt-get install -y kali-linux-full
|
||||||
|
|||||||
@@ -15,16 +15,6 @@ servers = (
|
|||||||
ssl_verify = "no";
|
ssl_verify = "no";
|
||||||
autoconnect = "yes";
|
autoconnect = "yes";
|
||||||
},
|
},
|
||||||
{
|
|
||||||
address = "chat.freenode.net";
|
|
||||||
chatnet = "freenode";
|
|
||||||
port = "7000";
|
|
||||||
use_ssl = "yes";
|
|
||||||
ssl_cert = "~/.irssi/matir.pem";
|
|
||||||
ssl_verify = "yes";
|
|
||||||
ssl_cafile = "~/.irssi/instantssl.crt";
|
|
||||||
autoconnect = "yes";
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
address = "irc.hackint.eu";
|
address = "irc.hackint.eu";
|
||||||
chatnet = "hackint";
|
chatnet = "hackint";
|
||||||
@@ -48,6 +38,17 @@ servers = (
|
|||||||
use_ssl = "yes";
|
use_ssl = "yes";
|
||||||
ssl_verify = "no";
|
ssl_verify = "no";
|
||||||
autoconnect = "yes";
|
autoconnect = "yes";
|
||||||
|
},
|
||||||
|
{
|
||||||
|
address = "chat.freenode.net";
|
||||||
|
chatnet = "freenode";
|
||||||
|
port = "7000";
|
||||||
|
use_ssl = "yes";
|
||||||
|
ssl_cert = "~/.irssi/matir.pem";
|
||||||
|
ssl_verify = "yes";
|
||||||
|
ssl_capath = "/etc/ssl/certs";
|
||||||
|
family = "inet";
|
||||||
|
autoconnect = "yes";
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -91,7 +92,9 @@ channels = (
|
|||||||
{ name = "#radare"; chatnet = "freenode"; autojoin = "yes"; },
|
{ name = "#radare"; chatnet = "freenode"; autojoin = "yes"; },
|
||||||
{ name = "#vulnhub"; chatnet = "freenode"; autojoin = "yes"; },
|
{ name = "#vulnhub"; chatnet = "freenode"; autojoin = "yes"; },
|
||||||
{ name = "#redditnet"; chatnet = "geekshed"; autojoin = "yes"; },
|
{ name = "#redditnet"; chatnet = "geekshed"; autojoin = "yes"; },
|
||||||
{ name = "#rpisec"; chatnet = "rpisec"; autojoin = "yes"; }
|
{ name = "#rpisec"; chatnet = "rpisec"; autojoin = "yes"; },
|
||||||
|
{ name = "#offsec"; chatnet = "freenode"; autojoin = "yes"; },
|
||||||
|
{ name = "#offtopicsec"; chatnet = "freenode"; autojoin = "yes"; }
|
||||||
);
|
);
|
||||||
|
|
||||||
aliases = {
|
aliases = {
|
||||||
@@ -271,6 +274,13 @@ statusbar = {
|
|||||||
barend = { priority = "100"; alignment = "right"; };
|
barend = { priority = "100"; alignment = "right"; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
awl_2 = {
|
||||||
|
items = {
|
||||||
|
barstart = { priority = "100"; };
|
||||||
|
awl_2 = { };
|
||||||
|
barend = { priority = "100"; alignment = "right"; };
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
settings = {
|
settings = {
|
||||||
@@ -293,14 +303,9 @@ settings = {
|
|||||||
awl_shared_sbar = "OFF";
|
awl_shared_sbar = "OFF";
|
||||||
awl_viewer = "no";
|
awl_viewer = "no";
|
||||||
awl_block = "-15";
|
awl_block = "-15";
|
||||||
awl_maxlines = "2";
|
awl_maxlines = "3";
|
||||||
awl_height_adjust = "2";
|
awl_height_adjust = "2";
|
||||||
};
|
awl_hide_empty = "0";
|
||||||
};
|
|
||||||
logs = {
|
|
||||||
"~/irc.log.Window7" = {
|
|
||||||
level = "ALL";
|
|
||||||
items = ( { type = "window"; name = "7"; } );
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
windows = {
|
windows = {
|
||||||
@@ -407,3 +412,4 @@ windows = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
mainwindows = { 1 = { first_line = "1"; lines = "78"; }; };
|
mainwindows = { 1 = { first_line = "1"; lines = "78"; }; };
|
||||||
|
logs = { };
|
||||||
|
|||||||
@@ -292,3 +292,6 @@ abstracts = {
|
|||||||
# hilight with specified color, $0 = color, $1 = text
|
# hilight with specified color, $0 = color, $1 = text
|
||||||
sb_act_hilight_color = "$0$1-%n";
|
sb_act_hilight_color = "$0$1-%n";
|
||||||
};
|
};
|
||||||
|
formats = {
|
||||||
|
"Irssi::Script::adv_windowlist" = { awl_display_header = ""; };
|
||||||
|
};
|
||||||
|
|||||||
@@ -11,3 +11,4 @@ Host *
|
|||||||
ForwardX11 no
|
ForwardX11 no
|
||||||
ForwardX11Trusted no
|
ForwardX11Trusted no
|
||||||
ServerAliveInterval 120
|
ServerAliveInterval 120
|
||||||
|
CheckHostIP no
|
||||||
|
|||||||
@@ -31,6 +31,9 @@ zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
|
|||||||
|
|
||||||
# Load oh-my-zsh
|
# Load oh-my-zsh
|
||||||
if [ -d $HOME/.oh-my-zsh ] ; then
|
if [ -d $HOME/.oh-my-zsh ] ; then
|
||||||
|
# Override gnome-keyring
|
||||||
|
unset SSH_AUTH_SOCK
|
||||||
|
unset SSH_AGENT_PID
|
||||||
ZSH=$HOME/.oh-my-zsh
|
ZSH=$HOME/.oh-my-zsh
|
||||||
ZSH_THEME="matir"
|
ZSH_THEME="matir"
|
||||||
ZSH_CUSTOM="$HOME/.zsh_custom"
|
ZSH_CUSTOM="$HOME/.zsh_custom"
|
||||||
|
|||||||
10
install.sh
10
install.sh
@@ -5,9 +5,11 @@ set errexit
|
|||||||
|
|
||||||
function prerequisites {
|
function prerequisites {
|
||||||
if which zsh > /dev/null ; then
|
if which zsh > /dev/null ; then
|
||||||
if [[ `getent passwd $USER | cut -d: -f7` != */zsh ]] ; then
|
if [[ $- == *i* ]] ; then
|
||||||
echo 'Enter password to change shell.' >&2
|
if [[ `getent passwd $USER | cut -d: -f7` != */zsh ]] ; then
|
||||||
chsh -s `which zsh`
|
echo 'Enter password to change shell.' >&2
|
||||||
|
chsh -s `which zsh`
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
install_git https://github.com/robbyrussell/oh-my-zsh.git $HOME/.oh-my-zsh
|
install_git https://github.com/robbyrussell/oh-my-zsh.git $HOME/.oh-my-zsh
|
||||||
else
|
else
|
||||||
@@ -200,6 +202,7 @@ function install_chrome {
|
|||||||
run_as_root /usr/bin/dpkg -i ${TMPD}/google-chrome.deb || \
|
run_as_root /usr/bin/dpkg -i ${TMPD}/google-chrome.deb || \
|
||||||
run_as_root /usr/bin/apt-get install -qq -f -y || \
|
run_as_root /usr/bin/apt-get install -qq -f -y || \
|
||||||
( echo "Could not install chrome." >&2 && return 1 )
|
( echo "Could not install chrome." >&2 && return 1 )
|
||||||
|
rm -rf ${TMPD}
|
||||||
}
|
}
|
||||||
|
|
||||||
function read_saved_prefs {
|
function read_saved_prefs {
|
||||||
@@ -271,6 +274,7 @@ ARCH=`uname -m`
|
|||||||
(( $INSTALL_PKGS )) && is_deb_system && install_apt_pkgs
|
(( $INSTALL_PKGS )) && is_deb_system && install_apt_pkgs
|
||||||
install_dotfile_dir "${BASEDIR}/dotfiles"
|
install_dotfile_dir "${BASEDIR}/dotfiles"
|
||||||
test -d "${BASEDIR}/private_dotfiles" && \
|
test -d "${BASEDIR}/private_dotfiles" && \
|
||||||
|
test -d "${BASEDIR}/.git/git-crypt" && \
|
||||||
install_dotfile_dir "${BASEDIR}/private_dotfiles"
|
install_dotfile_dir "${BASEDIR}/private_dotfiles"
|
||||||
install_basic_dir "${BASEDIR}/bin" "${HOME}/bin"
|
install_basic_dir "${BASEDIR}/bin" "${HOME}/bin"
|
||||||
(( $MINIMAL )) || postinstall
|
(( $MINIMAL )) || postinstall
|
||||||
|
|||||||
BIN
private_dotfiles/irssi/sasl.auth
Normal file
BIN
private_dotfiles/irssi/sasl.auth
Normal file
Binary file not shown.
BIN
private_dotfiles/ssh/config
Normal file
BIN
private_dotfiles/ssh/config
Normal file
Binary file not shown.
Reference in New Issue
Block a user