This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
dependency: | |
name: galaxy | |
driver: | |
name: docker | |
lint: | |
name: yamllint | |
platforms: | |
- name: stretch | |
image: debian:9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Doom | |
# github | |
img_base_url = "https://raw.githubusercontent.com/" | |
img_url = img_base_url + author + "/img/master/" + project + "/" | |
# gitlab |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ansible. | |
*.retry | |
.galaxy_install_info | |
# Binaries. | |
*.jpg | |
# Buffers. | |
*~ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Backup - from the host machine run: | |
docker exec CONTAINER mysqldump -u root --password=PASS DATABASE > CONTAINER.sql | |
# Restore - from the host machine run: | |
cat CONTAINER.sql | docker exec -i CONTAINER mysql -u root --password=PASS DATABASE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker volume ls => List all volumes. | |
docker rm volume_id => Delete volume with id volume_id. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Descargar y ejecutar. | |
docker run -v /home/constrict0r/repos/ciencia-para-el-mal/jupyter/:/home/jovyan -p 8888:8888/tcp --name ciencia-para-el-mal -ti jupyter/scipy-notebook:latest | |
# Conectarse a la terminal. | |
docker exec -it ciencia-para-el-mal /bin/bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add the 1366x768_60.00 mode, dont' use sudo. | |
xrandr --newmode "1366x768_60.00" 84.75 1360 1432 1568 1776 768 771 781 798 -hsync +vsync | |
# Run xrandr an check the output, don't use sudo. | |
xrandr | |
# Screen 0: minimum 320 x 200, current 2390 x 768, maximum 8192 x 8192 | |
# LVDS-1 connected 1366x768+1024+0 (normal left inverted right x axis y axis) 293mm x 165mm | |
# 1366x768 59.98*+ 39.99 | |
# ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Editor. | |
C-d => Delete character. | |
C-x C-f => Open file. | |
C-g => Get me out of everything!!! | |
C-x u => Undo. | |
C-x C-b => Buffers list. | |
C-x b => Go to previous buffer. | |
C-x k => Close current buffer. | |
C-s => Incremental search forward. | |
C-r => Incremental search backwards. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Verify if variable contains text. | |
if [[ "$my_var" =~ 'my-word' ]]; then | |
echo 'Contains it.' | |
fi | |
# Replace text inside variable. | |
my_var="${my_var//search/replacement}" | |
# Trim string. | |
my_var="${my_var## }" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git remote remove <origin-name> | |
# Sometimes is necessary to fetch prunning the deleted branches origins. | |
git fetch -p |
NewerOlder