GithubHelp home page GithubHelp logo

imochoa / dotfiles Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 1.29 MB

collection of the setting that I like as well as some scripts to automate the post-install setup process

License: MIT License

Shell 49.39% Dockerfile 0.24% Vim Script 18.32% Python 29.60% CSS 1.40% Makefile 0.17% Vim Snippet 0.87%

dotfiles's People

Watchers

 avatar

dotfiles's Issues

add xcwd

To get the cwd for a window with I3

neovim setup

CoC requires:
sudo snap install node --classic --channel=8

stretchly with app image


wget -O ~/Applications/stretchlyx86_64.AppImage https://github.com/hovancik/stretchly/releases/download/v0.21.1/stretchly-0.21.1-x86_64.AppImage

chmod u+x ~/Applications/stretchlyx86_64.AppImage 
sudo ln -s ~/Applications/stretchlyx86_64.AppImage /usr/local/bin/stretchly

neovim

set inccommand=nosplit
inccsearch? incremental search

  au WinEnter *pid:* call feedkeys('i')

From neovim/neovim#2076 (comment)

What about the rest?

nnoremap <a-j> <c-w>j
nnoremap <a-k> <c-w>k
nnoremap <a-h> <c-w>h
nnoremap <a-l> <c-w>l
vnoremap <a-j> <c-\><c-n><c-w>j
vnoremap <a-k> <c-\><c-n><c-w>k
vnoremap <a-h> <c-\><c-n><c-w>h
vnoremap <a-l> <c-\><c-n><c-w>l
inoremap <a-j> <c-\><c-n><c-w>j
inoremap <a-k> <c-\><c-n><c-w>k
inoremap <a-h> <c-\><c-n><c-w>h
inoremap <a-l> <c-\><c-n><c-w>l
cnoremap <a-j> <c-\><c-n><c-w>j
cnoremap <a-k> <c-\><c-n><c-w>k
cnoremap <a-h> <c-\><c-n><c-w>h
cnoremap <a-l> <c-\><c-n><c-w>l
if has('nvim')
  tnoremap <a-j> <c-\><c-n><c-w>j
  tnoremap <a-k> <c-\><c-n><c-w>k
  tnoremap <a-h> <c-\><c-n><c-w>h
  tnoremap <a-l> <c-\><c-n><c-w>l
  au WinEnter *pid:* call feedkeys('i')
endif

Do I have this?

if [ -n "$NVIM_LISTEN_ADDRESS" ]; then
  export VISUAL="nvr -cc split --remote-wait +'set bufhidden=wipe'"
else
  export VISUAL="nvim"
fi

vim snippets

copy all lines that match error (as well as the upper & lower neighboring lines) and append them to the end of the file!

:g/error/-2,+2t$

add programs

sudo apt-get update -y
sudo apt-get install -y sxiv

openvpn

sudo apt install -y openvpn easy-rsa

perf profiling

sudo apt-get install -y linux-tools-common linux-tools-generic linux-cloud-tools-generic linux-tools-`uname -r` linux-cloud-tools-`uname -r`

3D

sudo add-apt-repository -y ppa:freecad-maintainers/freecad-stable
sudo apt update -y
sudo apt install -y freecad freecad-common freecad-python2 freecad-python3



cd ~/Applications
sudo apt-get install -y scons  pkg-config libglfw3-dev libgtk-3-dev git
git clone https://github.com/guillaumechereau/goxel
cd goxel
make release
sudo ln -s ~/Applications/goxel/goxel /usr/local/bin/goxel

fonts

fontawesome:

apt install fonts-font-awesome

sudo apt-get install fonts-noto-color-emoji

rebuild fonts cache!
fc-cache -fv

Add an update script

with

apt-get update upgrade autoremove

for neovim

:VimBootstrapUpdate
:PluginUpdate

etc.

i3

sudo add-apt-repository -y ppa:kgilmer/speed-ricer
sudo apt-get update -y
sudo apt-get install -y i3-gaps i3-gaps-wm polybar fonts-source-code-pro-ttf nordic moka-icon-theme i3-snapshot
# https://github.com/regolith-linux/i3-snapshot

cookie cutter

 sudo apt-get install cookiecutter

Look into different templates (e.g. docker-compose.yml with db, pgadmin, and a worker, worker queue, python project etc.)

shutter

sudo add-apt-repository ppa:linuxuprising/shutter && sudo apt-get update && sudo apt-get install shutter

python + pdf

sudo apt-get install texlive texlive-xetex pandoc pandoc-citeproc

arandr

sudo apt install -y arandr

not necessary -> docker-machine install

From
https://docs.docker.com/machine/install-machine/#install-machine-directly

base=https://github.com/docker/machine/releases/download/v0.16.0 &&
  curl -L $base/docker-machine-$(uname -s)-$(uname -m) >/tmp/docker-machine &&
  sudo mv /tmp/docker-machine /usr/local/bin/docker-machine &&
  chmod +x /usr/local/bin/docker-machine

And bash completion scripts:

base=https://raw.githubusercontent.com/docker/machine/v0.16.0
for i in docker-machine-prompt.bash docker-machine-wrapper.bash docker-machine.bash
do
  sudo wget "$base/contrib/completion/bash/${i}" -P /etc/bash_completion.d
done

utlisnips

python decorator template

def document_call(fn):
    argspec = inspect.getfullargspec(fn)
    positional_count = len(argspec.args) - len(argspec.defaults)
    defaults = dict(zip(argspec.args[positional_count:], argspec.defaults))

    @functools.wraps(fn)
    def wrapper(*args, **kwargs):
        used_kwargs = kwargs.copy()
        used_kwargs.update(zip(argspec.args[positional_count:], args[positional_count:]))

        dict2print = {k: used_kwargs.get(k, d) for k, d in defaults.items()}
        print(f'function {fn.__name__} '
              f'called with positional args {args[:positional_count]} '
              f'and keyword args {dict2print}',
              )
        return fn(*args, **kwargs)

    return wrapper

python setup

sudo apt-get install -y python3 python-dev python3-dev      build-essential libssl-dev libffi-dev      libxml2-dev libxslt1-dev zlib1g-dev 

Add the vev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.