Skip to content

Instantly share code, notes, and snippets.

View andres-lowrie's full-sized avatar
Dat Data Tho

Andres Lowrie andres-lowrie

Dat Data Tho
View GitHub Profile
andres-lowrie / .shellrc
Last active April 13, 2024 19:47
vim manpager
export MANPAGER="vim -u ~/.minvimrc -M +MANPAGER -"
export MANPAGER='nvim +Man!'
andres-lowrie / .spacemacs
Created April 19, 2020 16:37
spacemacs window split and focus
;; Buffer
(spacemacs/declare-prefix "w" "window-prefix")
(spacemacs/set-leader-keys "w/" 'split-window-right-and-focus)
(spacemacs/set-leader-keys "w-" 'split-window-below-and-focus)
let blacklists = ["http://localhost/*","*","*"]
set sortlinkhints
let hintcharacters = "asdfgqwertzxc"
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl | sh
predefined variables :
- inventory_hostname (fqdn) (normally the same as ansible.fqdn)
- inventory_hostname_short
To know the return codes returned by ansible modules, just use plain ansible -vvv to see them :
ansible -i ~/ansible/ -vvv -m copy -a 'src=files/sysinfo dest=/etc/sysinfo' | success >> {
"changed": true,