This file contains 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
# Post install script. | |
# Execute kick.sh to setup the system. | |
d-i preseed/late_command string \ | |
wget https://raw.githubusercontent.com/constrict0r/kick/master/kick.sh -O /target/usr/local/sbin/kick.sh; \ | |
chmod +x /target/usr/local/sbin/kick.sh; \ | |
cp /custom-config.yml /target/usr/local/sbin/custom-config.yml &>/dev/null; \ | |
sed -i '/^\ *deb\ cdrom/s/^\(.*\)$/#\1/' /target/etc/apt/sources.list; \ | |
mkdir /dev/shm; \ | |
mount --bind /dev/pts /target/dev/pts; \ | |
mount --bind /dev/shm /target/dev/shm; \ |
This file contains 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 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 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 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
#!/bin/bash | |
# | |
# @file bash-alias | |
# @brief Add useful bash commands aliases. | |
alias changes="find . -maxdepth 1 -mindepth 1 -type d -exec sh -c '(echo {} && cd {} && git status -s && echo)' \;" | |
alias runit="ansible-playbook -i tests/inventory tests/test-playbook.yml" | |
alias gic="git add . && git commit -m 'Updated repository' && git push" | |
alias fixme="xrandr --newmode '1366x768_60.00' 84.75 1360 1432 1568 1776 768 771 781 798 -hsync +vsync && xrandr --addmode VGA-1 '1366x768_60.00' && xrandr --output VGA-1 --mode '1366x768_60.00'" |
This file contains 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 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 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 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
<domainsnapshot> | |
<name>fresh</name> | |
<description>Fresh installation.</description> | |
</domainsnapshot> | |
<!-- cd /var/lib/libvirt/images --> | |
<!-- sudo virsh snapshot create <VM-Name> fresh.xml --> | |
<!-- sudo virsh snapshot revert <VM-Name> fresh --> |
This file contains 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
--- | |
packages: | |
- bridge-utils | |
- libvirt-daemon-system | |
# ansible-galaxy install constrict0r.constructor | |
# ansible localhost -m include_role -a name=constrict0r.constructor -K -e "configuration=/home/username/resting-configuration.yml" | |
# sudo addgroup libvirtd | |
# sudo adduser username libvirtd | |
# sudo apt install qemu-utils |
NewerOlder