- set M2_HOME if maven is installed (on zshrc)
- Encrypt dropbox
- powersave
- keyring (as in https://wiki.archlinux.org/index.php/GNOME/Keyring#PAM_method)
- stow more stuff like rofi
[TOC]
""" | |
Setup: | |
Assuming Odoo 8.0 sources at ~/odoo: | |
$ cp odoo-sh.py ~/odoo | |
$ cd ~/odoo | |
$ python -i odoo-sh.py | |
Usage example: | |
>>> env = connect('my-db-name') | |
>>> Users = env['res.users'] |
# | |
su | |
# ivann + general | |
mkdir /root/.ssh | |
curl --silent https://github.com/yelizariev.keys | xargs echo -n >> /root/.ssh/authorized_keys | |
echo -ne " [email protected]\n" >> /root/.ssh/authorized_keys | |
sed -i 's/PermitRootLogin no/PermitRootLogin without-password # changed by Ivan Yelizariev from value "no"/' /etc/ssh/sshd_config |
server { | |
listen 80; | |
#rewrite ^/.*$ https://$host$request_uri? permanent; #Uncomment this line in case you want to use https only | |
server_name NGINX_SERVER_DOMAIN; | |
include odoo_params; | |
location /longpolling { | |
proxy_pass http://SERVER_HOST:8072; | |
} |
[TOC]
First things first, I want to use ag to search through my project files. Coming from fzf, I like to have two bindings for this -- one that respects my projects .gitignore
and one that does not. The latter is helpful if I want to examine a built file or look at a node_module dependency while working on my js project.
I use an alias for file_rec
source to toggle the -u
flag on ag
. Now, <C-P>
searches in my git files, and <C-O>
searches everything.
" denite file search (c-p uses gitignore, c-o looks at everything)
map <C-P> :DeniteProjectDir -buffer-name=git -direction=top file_rec/git<CR>
map :DeniteProjectDir -buffer-name=files -direction=top file_rec
# docker-compose aliases | |
### How to install/use it | |
1. `curl -ko $HOME/.bash_aliases-docker-compose https://gist.githubusercontent.com/jodumont/d8ade3ab173700e3369f04fbe0334fde/raw/ced78642a5682e7ec6ee7fc89367b929ef35f366/bash_aliases-docker-compose` | |
2. `echo -e "\nif [ -f ~/.bash_aliases-docker-compose ]; then \n. ~/.bash_aliases-docker-compose\nfi" >> $HOME/.bashrc` | |
3. `. $HOME/.bashrc` | |
## dcu == Docker-Compose Up | |
alias dcu="docker-compose up -d --remove-orphans" | |
## dcl == Docker-Compose Logs |