imochoa / dotfiles Goto Github PK
View Code? Open in Web Editor NEWcollection of the setting that I like as well as some scripts to automate the post-install setup process
License: MIT License
collection of the setting that I like as well as some scripts to automate the post-install setup process
License: MIT License
sudo apt install openssh-server
sudo apt install intel-gpu-tools
https://stackoverflow.com/questions/5559029/quickly-switching-buffers-in-vim-normal-mode
nnoremap bb :buffers:b
it opens the :ls / :buffers command and pre-types the :b so that you just have to type the buffer number as you'll see a list with all the buffers and their numbers.
I also have
nnoremap :b#
follow
https://gist.github.com/boreycutts/6417980039760d9d9dac0dd2148d4783
plus install
sudo apt install libxcb-shape0-dev pkgconf
and build this first
cd /tmp
git clone https://github.com/Airblader/xcb-util-xrm
cd xcb-util-xrm
git submodule update --init
./autogen.sh --prefix=/usr
make
sudo make install
From
https://www.reddit.com/r/linuxquestions/comments/4owfz8/problem_installing_i3gaps_in_ubuntu_1604/
add
sudo apt-get install -y i3lock-fancy
sudo snap install slack --classic
https://askubuntu.com/questions/1092742/where-should-i-put-appimages-files
You can put AppImages anywhere you want and run them from there -- even USB thumbdrives or network shares.
However, the official recommendation by the AppImage developers is to create an extra directory, ${HOME}/Applications/ (or ${HOME}/.local/bin/ or ${HOME}/bin/) and store all AppImages there.
sudo apt-get install -y exfat-fuse exfat-utils
Use:
https://stackoverflow.com/questions/15040132/how-to-wget-the-more-recent-file-of-a-directory
to make a nicer download + install script
To get the cwd for a window with I3
CoC requires:
sudo snap install node --classic --channel=8
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
https://github.com/docker/compose/releases
sudo curl -L https://github.com/docker/compose/releases/download/1.25.4/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo apt-get install -y xclip entr
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
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$
https://faq.i3wm.org/question/115/how-to-configure-gtk-theme-support/%3C/p%3E.html
~/.config/gtk-3.0/settings.ini
~/.gtkrc-2.0
https://github.com/xournalpp/xournalpp
sudo add-apt-repository ppa:andreasbutti/xournalpp-master
sudo apt update
sudo apt install xournalpp
sudo apt install -y neofetch
https://computingforgeeks.com/install-termite-terminal-on-ubuntu-18-04-ubuntu-16-04-lts/
sudo apt-get update -y
sudo apt-get install -y sxiv
sudo apt install -y openvpn easy-rsa
prefer xclip over xsel
sudo apt-get install -y linux-tools-common linux-tools-generic linux-cloud-tools-generic linux-tools-`uname -r` linux-cloud-tools-`uname -r`
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
sudo apt-get install -y texlive texlive-latex-extra pandoc texlive-xetex
fontawesome:
apt install fonts-font-awesome
sudo apt-get install fonts-noto-color-emoji
rebuild fonts cache!
fc-cache -fv
with
apt-get update upgrade autoremove
for neovim
:VimBootstrapUpdate
:PluginUpdate
etc.
add workspace assigning
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
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.)
systemctl --user restart pulseaudio
From the ubuntu podcast season 13 episode 4
https://stackoverflow.com/questions/52699608/wand-policy-error-error-constitute-c-readimage-412
tested
<policy domain="coder" rights="read | write" pattern="PDF" />
Problematic
snap install libreoffice
sudo add-apt-repository ppa:linuxuprising/shutter && sudo apt-get update && sudo apt-get install shutter
sudo apt-get install -y texstudio texlive-latex-extra
sudo apt-get install texlive texlive-xetex pandoc pandoc-citeproc
sudo apt install -y arandr
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
pulseaudio -k && sudo alsa force-reload
https://www.dell.com/community/Linux-General/Ubuntu-Desktop-20-04-LTS/td-p/7562171
http://dell.archive.canonical.com/updates/dists/
should be
20.04 codename is Focal Fossa
You should go in the dell-foca folder :
http://dell.archive.canonical.com/updates/dists/focal-dell/Release
To download or upgrade packages, you should be using apt and have your /etc/apt/sources.list properly configured.
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
sudo apt install openssh-server
sudo apt-get install -y python3 python-dev python3-dev build-essential libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.