mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-06 22:55:10 +01:00
Compare commits
48 Commits
wikitags
...
4a0f0f1c23
| Author | SHA1 | Date | |
|---|---|---|---|
| 4a0f0f1c23 | |||
| 5ff06e4ad3 | |||
| d4625dd8e2 | |||
| 9cef24836b | |||
| 58084b41ea | |||
| 01274819e9 | |||
| 3ef6363915 | |||
| 3bb1890b81 | |||
| 32e3d1bf89 | |||
| b32537ca36 | |||
| 52ed5b6558 | |||
| a1c2b3c692 | |||
| c420e20e56 | |||
| 72d55c14ce | |||
| 2e1bff51ea | |||
| e7e344b6ad | |||
| 13b5a8eac0 | |||
| b6553f2771 | |||
| bee15e099e | |||
| ec654b26a6 | |||
| 89d3acc10a | |||
| b8c811bce7 | |||
| 525f2e06be | |||
| b89f39b335 | |||
| 1d70c460e3 | |||
| 838aa1df81 | |||
| d9bbe483ba | |||
| e9957332e5 | |||
| d47442b87c | |||
| 4c56ee025c | |||
| a525440918 | |||
| 96e9320f89 | |||
| 92306f8125 | |||
| a39e8e6e9e | |||
| ad33a56d7b | |||
| 06de4bad70 | |||
| ea30a5fd0a | |||
| 43fd8e34f5 | |||
| bb3363ae79 | |||
| 8a36201565 | |||
| b4305f1131 | |||
| 4839507e05 | |||
| f8ea1fe55f | |||
| 00c670d0e1 | |||
| b0b09d49c8 | |||
| 8111aaf0ad | |||
| f8f695ac64 | |||
| 1508e83271 |
@@ -109,11 +109,6 @@ alias pip_upgrade="pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs
|
||||
# 20140908 reload tmux config
|
||||
alias tmux_reload="tmux source-file ~/.tmux.conf"
|
||||
|
||||
# project-oriented aliases
|
||||
alias dcpvag='workon dcp; cd ~/workspace/sanoma/content-library/; vagrant ssh'
|
||||
alias dcpsrc='cd ~/development/current/content-library/src/content_library/; . ~/development/env/bin/activate'
|
||||
alias dcpcelery='python manage.py celery worker -Q celery -l info'
|
||||
|
||||
# update/install Calibre ebook manager
|
||||
alias updatecalibre='sudo -v && wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('"'"'Download failed\n'"'"'); exec(sys.stdin.read()); main()"'
|
||||
|
||||
@@ -126,6 +121,9 @@ alias weather='ansiweather'
|
||||
|
||||
alias pypi_up='python setup.py register sdist --formats=zip upload'
|
||||
|
||||
# Use midnight commander without mouse being annoying
|
||||
alias mc='mc -d'
|
||||
|
||||
# if you're really annoyed with a runaway process
|
||||
function fuck() {
|
||||
if killall -9 "$2"; then
|
||||
|
||||
1
.bashrc
1
.bashrc
@@ -177,6 +177,7 @@ if [ -e ~/.ssh/config.d ]; then
|
||||
[ -e ~/.ssh/config ] && mv ~/.ssh/config ~/.ssh/config.bak.$(date -Is)
|
||||
# Lets preserve order, so you can have 00_generic 10_homestuff 20_work1 21_work2 and such
|
||||
find ~/.ssh/config.d/* -type f -print0 | sort -z | xargs -0 -n1 cat > ~/.ssh/config
|
||||
chmod 600 ~/.ssh/config
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -27,6 +27,11 @@ set -U grcplugin_ls --color
|
||||
if test -x ~/.local/bin
|
||||
set PATH $PATH ~/.local/bin
|
||||
end
|
||||
# Local Rust apps installed through cargo
|
||||
if test -x ~/.cargo/bin
|
||||
set PATH $PATH ~/.cargo/bin
|
||||
end
|
||||
# Scripts from my dotfiles repo
|
||||
if test -x ~/.dot/dotfiles/bin
|
||||
set PATH $PATH ~/.dot/dotfiles/bin
|
||||
end
|
||||
@@ -64,6 +69,9 @@ alias la 'ls -A'
|
||||
alias l 'ls -CF'
|
||||
alias lll 'ls --color=always -alF | less -R'
|
||||
|
||||
alias exa 'exa --icons --header --group-directories-first'
|
||||
alias exatree 'exa --icons --header --group-directories-first --long --tree'
|
||||
|
||||
## Git
|
||||
alias gu "git pull --all"
|
||||
alias gp "git push; git push --tags"
|
||||
@@ -84,9 +92,9 @@ alias ffnightly 'env MOZ_USE_XINPUT2=1 /usr/local/bin/firefoxnightly/firefox'
|
||||
|
||||
## SSH, for compatibility, as our terminfo now is non-standard 'tmux-256color-italic' in tmux
|
||||
#alias ssh 'env TERM=xterm-256color ssh'
|
||||
function ssh
|
||||
env TERM=screen-256color ssh $argv
|
||||
end
|
||||
#function ssh
|
||||
# env TERM=screen-256color ssh $argv
|
||||
#end
|
||||
|
||||
## Grepping
|
||||
alias findfile 'find . | grep -v .svn | grep -v .hg | grep -v .git | grep'
|
||||
|
||||
@@ -65,3 +65,12 @@
|
||||
insteadOf = "bitbucket:"
|
||||
[pull]
|
||||
rebase = false
|
||||
[safe]
|
||||
directory = /storage/emulated/0/Git/phren
|
||||
directory = /storage/emulated/0/Git/divaultphren
|
||||
directory = /storage/emulated/0/Git/mydocs
|
||||
directory = /data/data/com.termux/files/home/.dot/dotfiles/
|
||||
directory = /storage/emulated/0/Git/dammit.nl
|
||||
directory = /mnt/chromeos/PlayFiles/Documents/phren
|
||||
directory = /mnt/chromeos/PlayFiles/Documents/divaultphren
|
||||
directory = /mnt/chromeos/PlayFiles/Documents/mydocs
|
||||
|
||||
@@ -169,3 +169,69 @@ Wii
|
||||
gymkleding
|
||||
kutweer
|
||||
whoa
|
||||
bistrokrieltjes
|
||||
dumbbells
|
||||
naproxen
|
||||
nerden
|
||||
E-depot
|
||||
Carcassonne
|
||||
groepsles
|
||||
kennismakingsdag
|
||||
Jira
|
||||
chippies
|
||||
Battlefield
|
||||
webinar
|
||||
phren
|
||||
farfalle
|
||||
streamen
|
||||
ieuw
|
||||
kattenpoep
|
||||
kerstontbijt
|
||||
ThinkPad
|
||||
spelavond
|
||||
comics
|
||||
refinement
|
||||
datacentrum
|
||||
zometeen
|
||||
hyper
|
||||
inductieplaat
|
||||
level
|
||||
Europaplein
|
||||
Blendle
|
||||
prutten
|
||||
mirai
|
||||
kernel
|
||||
VPN
|
||||
schrapend
|
||||
wastafelkraan
|
||||
cracottes
|
||||
cracotte
|
||||
Picard
|
||||
nerdcave
|
||||
Röyksopp
|
||||
Linnaeushof
|
||||
recruiter
|
||||
Decathlon
|
||||
aqua
|
||||
Cineworld
|
||||
Panta
|
||||
Rhei
|
||||
hey
|
||||
Zoë
|
||||
voilà
|
||||
Daan's
|
||||
Pinkeltje
|
||||
awesome
|
||||
webhaak
|
||||
klassendienst
|
||||
rewrite
|
||||
Plex
|
||||
automagiseren
|
||||
slaapmasker
|
||||
puntpaprika
|
||||
Roblox
|
||||
Samsung
|
||||
Galaxy
|
||||
iPad
|
||||
Matt
|
||||
powernap
|
||||
|
||||
7
.vimrc
7
.vimrc
@@ -432,10 +432,10 @@ Plug 'skanehira/preview-markdown.vim'
|
||||
let g:preview_markdown_vertical = 1
|
||||
|
||||
" Navigate through and from markdown files
|
||||
"Plug 'chmp/mdnav'
|
||||
Plug 'aquatix/mdnav', { 'branch': 'fixes' }
|
||||
" Only open these local files in vim, use pyfile for all others:
|
||||
let g:mdnav#Extensions = '.md, .MD, .markdown, .todo, .txt, .rst'
|
||||
" let g:mdnav#DebugMode = 'true'
|
||||
|
||||
|
||||
" wiki.vim
|
||||
@@ -486,7 +486,10 @@ au BufNewFile,BufRead *.j2,*.jinja2 set ft=jinja
|
||||
Plug 'ludovicchabant/vim-gutentags'
|
||||
" know when Gutentags is generating tags (prints 'TAGS' in status-line)
|
||||
set statusline+=%{gutentags#statusline()}
|
||||
let g:gutentags_ctags_exclude = ["*.min.*", "build", ".bundle", ".git", "log", "node_modules", "tmp", "vendor", "*.vim/bundle/*", "*.vim/plugged/*"]
|
||||
let g:gutentags_ctags_exclude = ["*.min.*", "build", ".bundle", ".git", "log", "node_modules", ".obsidian/*", "tmp", "vendor", "*.vim/bundle/*", "*.vim/plugged/*"]
|
||||
" use ripgrep to create list of files to index, which should help with
|
||||
" ignoring non-versioned files, for example with .gitignore
|
||||
let g:gutentags_file_list_command = 'rg --files'
|
||||
"let g:gutentags_trace = 1
|
||||
|
||||
|
||||
|
||||
@@ -29,29 +29,31 @@ Futura-Std-Bold-Oblique_19041.ttf
|
||||
Futura-Std-Book_19044.ttf
|
||||
Futura-Std-Book-Oblique_19043.ttf'
|
||||
|
||||
FONTS_OVERPASS=$'overpass-bold-italic.otf
|
||||
overpass-bold.otf
|
||||
overpass-extrabold-italic.otf
|
||||
overpass-extrabold.otf
|
||||
overpass-extralight-italic.otf
|
||||
overpass-extralight.otf
|
||||
overpass-heavy-italic.otf
|
||||
overpass-heavy.otf
|
||||
overpass-italic.otf
|
||||
overpass-light-italic.otf
|
||||
overpass-light.otf
|
||||
overpass-regular.otf
|
||||
overpass-semibold-italic.otf
|
||||
overpass-semibold.otf
|
||||
overpass-thin-italic.otf
|
||||
overpass-thin.otf'
|
||||
FONTS_OVERPASS=$'Overpass-BlackItalic.ttf
|
||||
Overpass-Black.ttf
|
||||
Overpass-BoldItalic.ttf
|
||||
Overpass-Bold.ttf
|
||||
Overpass-ExtraBoldItalic.ttf
|
||||
Overpass-ExtraBold.ttf
|
||||
Overpass-ExtraLightItalic.ttf
|
||||
Overpass-ExtraLight.ttf
|
||||
Overpass-Italic.ttf
|
||||
Overpass-LightItalic.ttf
|
||||
Overpass-Light.ttf
|
||||
Overpass-MediumItalic.ttf
|
||||
Overpass-Medium.ttf
|
||||
Overpass-Regular.ttf
|
||||
Overpass-SemiBoldItalic.ttf
|
||||
Overpass-SemiBold.ttf
|
||||
Overpass-ThinItalic.ttf
|
||||
Overpass-Thin.ttf'
|
||||
|
||||
FONTS_JETBRAINS=$'JetBrainsMono-Bold-Italic.ttf
|
||||
FONTS_JETBRAINS=$'JetBrainsMono-BoldItalic.ttf
|
||||
JetBrainsMono-Bold.ttf
|
||||
JetBrainsMono-ExtraBold-Italic.ttf
|
||||
JetBrainsMono-ExtraBoldItalic.ttf
|
||||
JetBrainsMono-ExtraBold.ttf
|
||||
JetBrainsMono-Italic.ttf
|
||||
JetBrainsMono-Medium-Italic.ttf
|
||||
JetBrainsMono-MediumItalic.ttf
|
||||
JetBrainsMono-Medium.ttf
|
||||
JetBrainsMono-Regular.ttf'
|
||||
|
||||
@@ -88,27 +90,47 @@ Knack RegularOblique Plus Nerd File Types Plus Font Awesome Plus Octicons Plus P
|
||||
Knack Bold Nerd Font Complete Mono.ttf
|
||||
Knack Regular Nerd Font Complete Mono.ttf
|
||||
Knack Bold Italic Nerd Font Complete Mono.ttf
|
||||
Knack Italic Nerd Font Complete Mono.ttf'
|
||||
Knack Italic Nerd Font Complete Mono.ttf
|
||||
overpass-bold-italic.otf
|
||||
overpass-bold.otf
|
||||
overpass-extrabold-italic.otf
|
||||
overpass-extrabold.otf
|
||||
overpass-extralight-italic.otf
|
||||
overpass-extralight.otf
|
||||
overpass-heavy-italic.otf
|
||||
overpass-heavy.otf
|
||||
overpass-italic.otf
|
||||
overpass-light-italic.otf
|
||||
overpass-light.otf
|
||||
overpass-regular.otf
|
||||
overpass-semibold-italic.otf
|
||||
overpass-semibold.otf
|
||||
overpass-thin-italic.otf
|
||||
overpass-thin.otf'
|
||||
|
||||
if [ -e ~/.dot_is_server ]; then
|
||||
# Update from the repo
|
||||
echo "== Nerd fonts ======"
|
||||
PARENT_DIR="/stuff/system/fonts"
|
||||
SOURCE_DIR="/stuff/system/fonts/nerd-fonts/patched-fonts"
|
||||
DEST_DIR="/stuff/system/sync/fonts/active"
|
||||
if [ -d "$SOURCE_DIR" ] && [ -d "$DEST_DIR" ]; then
|
||||
#if [ -d "$PARENT_DIR" ] && [ -d "$SOURCE_DIR" ] && [ -d "$DEST_DIR" ]; then
|
||||
if [ -d "$PARENT_DIR" ] && [ -d "$DEST_DIR" ]; then
|
||||
cd "$PARENT_DIR"
|
||||
# git pull --all
|
||||
#git clone --depth=1 https://github.com/ryanoasis/nerd-fonts.git
|
||||
cd "$SOURCE_DIR"
|
||||
git pull --all
|
||||
while read -r FONT; do
|
||||
echo "Copied font: $FONT"
|
||||
cp -a "$SOURCE_DIR/$FONT" "$DEST_DIR"
|
||||
done <<< "$FONTS_CODING"
|
||||
else
|
||||
echo "$SOURCE_DIR or $DEST_DIR not found, aborting"
|
||||
echo "$PARENT_DIR, $SOURCE_DIR or $DEST_DIR not found, aborting"
|
||||
fi
|
||||
|
||||
# Update from the repo
|
||||
echo "== Jetbrains Mono ======"
|
||||
SOURCE_DIR="/stuff/system/fonts/JetBrainsMono/ttf"
|
||||
SOURCE_DIR="/stuff/system/fonts/JetBrainsMono/fonts/ttf"
|
||||
DEST_DIR="/stuff/system/sync/fonts/active"
|
||||
if [ -d "$SOURCE_DIR" ] && [ -d "$DEST_DIR" ]; then
|
||||
cd "$SOURCE_DIR"
|
||||
@@ -123,7 +145,7 @@ if [ -e ~/.dot_is_server ]; then
|
||||
|
||||
# Update from the repo
|
||||
echo "== Overpass ======"
|
||||
SOURCE_DIR="/stuff/system/fonts/Overpass/desktop-fonts/overpass"
|
||||
SOURCE_DIR="/stuff/system/fonts/Overpass/fonts/ttf"
|
||||
DEST_DIR="/stuff/system/sync/fonts/active"
|
||||
if [ -d "$SOURCE_DIR" ] && [ -d "$DEST_DIR" ]; then
|
||||
cd "$SOURCE_DIR"
|
||||
|
||||
48
bin/mac.sh
Executable file
48
bin/mac.sh
Executable file
@@ -0,0 +1,48 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Stolen from https://raw.githubusercontent.com/Cybertinus/macvendor_extractor/master/mac.sh
|
||||
|
||||
##########
|
||||
# CONFIG #
|
||||
##########
|
||||
|
||||
# Download from http://standards-oui.ieee.org/oui/oui.txt
|
||||
ouilocation="${HOME}/.dot/oui.txt"
|
||||
|
||||
#################
|
||||
# ACTUAL SCRIPT #
|
||||
#################
|
||||
|
||||
if [ ! -f "${ouilocation}" ] ; then
|
||||
echo "OUI location can not be found at ${ouilocation}. Have you updated the config?" 1>&2
|
||||
read -p "Do you want to download it now [y/N]? " -n 1 -r
|
||||
echo # (optional) move to a new line
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||
then
|
||||
wget https://standards-oui.ieee.org/oui/oui.txt -O "${ouilocation}"
|
||||
else
|
||||
echo "Aborted"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ $(find "${ouilocation}" -mtime +30 -print) ]]; then
|
||||
echo "File ${ouilocation} is older than 30 days"
|
||||
fi
|
||||
|
||||
if [ -z "${1}" ] ; then
|
||||
echo 'No mac address specified, please do so as first argument' 1>&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
macaddress="$(echo "${1}" | sed -e 's/[-.:]//g' | tr '[:lower:]' '[:upper:]')"
|
||||
macaddress="${macaddress:0:6}"
|
||||
echo -n "${1} = "
|
||||
|
||||
vendor="$(awk "/^${macaddress}/ {print substr(\$0,index(\$0,\$4))}" "${ouilocation}")"
|
||||
if [ -z "${vendor}" ] ; then
|
||||
echo "Not specified in ${ouilocation}"
|
||||
else
|
||||
echo "${vendor}"
|
||||
fi
|
||||
|
||||
33
bin/pgadmin4
33
bin/pgadmin4
@@ -1,33 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
PGADMINVENV="pgadmin4"
|
||||
VENVDIR="$HOME/.virtualenvs/${PGADMINVENV}"
|
||||
|
||||
if [ ! -d "$VENVDIR" ] || [ ! -e "${VENVDIR}/lib/python2.7/site-packages/pgadmin4/pgAdmin4.py" ] || [ ! -e "${VENVDIR}/lib/python2.7/site-packages/pgadmin4/config_local.py" ]; then
|
||||
if [[ -z "$VIRTUAL_ENV" ]]; then
|
||||
# Only activate the virtualenv if we aren't in one already
|
||||
source /usr/share/virtualenvwrapper/virtualenvwrapper.sh
|
||||
mkvirtualenv "${PGADMINVENV}"
|
||||
echo "Downloading the wheel from https://www.pgadmin.org/download/pgadmin-4-python-wheel/ ..."
|
||||
pip install https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v1.6/pip/pgadmin4-1.6-py2.py3-none-any.whl
|
||||
echo "SERVER_MODE = False" >> "${VENVDIR}/lib/python2.7/site-packages/pgadmin4/config_local.py"
|
||||
fi
|
||||
|
||||
# Install
|
||||
#echo
|
||||
#echo "Download the wheel from https://www.pgadmin.org/download/pgadmin-4-python-wheel/"
|
||||
#echo
|
||||
#echo "Install with:"
|
||||
#echo "workon pgadmin4"
|
||||
#echo "pip install ./pgadmin4-1.6-py2.py3-none-any.whl"
|
||||
#echo "echo "SERVER_MODE = False" >> ${VENVDIR}/lib/python2.7/site-packages/pgadmin4/config_local.py"
|
||||
else
|
||||
if [[ -z "$VIRTUAL_ENV" ]]; then
|
||||
# Only activate the virtualenv if we aren't in one already
|
||||
source /usr/share/virtualenvwrapper/virtualenvwrapper.sh
|
||||
workon "${PGADMINVENV}"
|
||||
fi
|
||||
|
||||
# Start
|
||||
python "${VENVDIR}/lib/python2.7/site-packages/pgadmin4/pgAdmin4.py"
|
||||
fi
|
||||
@@ -6,6 +6,5 @@ find . -type f -name '*.zip' -exec sh -c '
|
||||
zipdir=$(basename "$file" .zip)
|
||||
#echo "$zipdir $file"
|
||||
unzip -d "$zipdir" "$file"
|
||||
read line </dev/tty
|
||||
done
|
||||
' sh {} +
|
||||
|
||||
26
bin/update_proton_ge
Executable file
26
bin/update_proton_ge
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
# make temp working directory
|
||||
mkdir /tmp/proton-ge-custom
|
||||
cd /tmp/proton-ge-custom
|
||||
|
||||
# download tarball
|
||||
echo "Downloading tarball of latest release..."
|
||||
curl -sLOJ $(curl -s https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/latest | grep browser_download_url | cut -d\" -f4 | egrep .tar.gz)
|
||||
|
||||
# download checksum
|
||||
echo "Downloading checksum..."
|
||||
curl -sLOJ $(curl -s https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/latest | grep browser_download_url | cut -d\" -f4 | egrep .sha512sum)
|
||||
|
||||
# check tarball with checksum
|
||||
echo "Checking..."
|
||||
sha512sum -c *.sha512sum
|
||||
# if result is ok, continue
|
||||
|
||||
# make steam directory if it does not exist
|
||||
mkdir -p ~/.steam/root/compatibilitytools.d
|
||||
|
||||
# extract proton tarball to steam directory
|
||||
echo "Extracting to Steam folder..."
|
||||
tar -xf GE-Proton*.tar.gz -C ~/.steam/root/compatibilitytools.d/
|
||||
echo "All done :)"
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
cd ~/mydocs/work/divault
|
||||
cd ~/divaultplan
|
||||
git pull
|
||||
cd ~/divaultphren
|
||||
git pull
|
||||
#vim -c ":vsp planning_2015.todo" notes_2015.md notes_2014.md
|
||||
vim -c "set nofoldenable" ~/mydocs/work/divault/planning_2021.todo ~/divaultphren/index.md
|
||||
vim -c "set nofoldenable" ~/divaultplan/planning_2023.todo ~/divaultphren/index.md
|
||||
|
||||
Reference in New Issue
Block a user