Skip to content

Instantly share code, notes, and snippets.

View ccamacho's full-sized avatar
🍼

Carlos Camacho Gonzalez ccamacho

🍼
View GitHub Profile
#Install required package
sudo yum install -y opensc
authconfig --smartcardmodule=/usr/lib64/opensc-pkcs11.so --update
# To activate the DNIe
# Open firefox
# Preferencies->Advanced->Certificates->Security Devices -> Load
# Module name: OpenSC PKCS#11.
@ccamacho
ccamacho / spell_cheat.txt
Created April 14, 2016 07:46
Cheat sheet spell site
git clone https://github.com/openstack/tripleo-docs
cd tripleo-docs
for f in $(find . -name '*.rst' -or -name '*.txt'); do echo $f ; aspell list < $f | sort | uniq -c ; done | more
@ccamacho
ccamacho / commands-image-edit.txt
Last active April 29, 2016 19:46
commands image edit
sudo yum install libguestfs-tools -y
mkdir /tmp/overcloud-full
guestmount -a overcloud-full.qcow2 -i --rw /tmp/overcloud-full
##Make changes here..
#Edit /opt/puppet-modules/.... to fit your needs...
sudo umount /tmp/overcloud-full
glance image-delete overcloud-full
glance image-create --name overcloud-full --file overcloud-full.qcow2 --disk-format qcow2 --container-format bare
@ccamacho
ccamacho / answers.yml.example
Last active June 8, 2016 10:48
Answer file to deploy stable/liberty using Inlunch
### REPO SETUP ###
# dictionary (keys are repo names, values are base URLs)
instack_host_repos_baseurls:
# bash snippet
instack_host_repos_cmd: |
export STABLE_RELEASE=liberty
export basearch=liberty
sudo curl -o /etc/yum.repos.d/delorean-liberty.repo https://trunk.rdoproject.org/centos7-liberty/current/delorean.repo
@ccamacho
ccamacho / deployment-instructions-liberty.txt
Last active September 21, 2016 14:18
Deploy OpenStack Liberty
#Execute on the hypervisor:
sudo useradd stack
echo "stack:stack" | chpasswd
echo "stack ALL=(root) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/stack
sudo chmod 0440 /etc/sudoers.d/stack
su - stack
sudo yum -y install epel-release
sudo yum -y install yum-plugin-priorities
#Execute on the hypervisor:
sudo useradd stack
echo "stack:stack" | chpasswd
echo "stack ALL=(root) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/stack
sudo chmod 0440 /etc/sudoers.d/stack
su - stack
sudo yum -y install epel-release
###
#Change it for different OpenStack versions.
#Execute on the hypervisor:
sudo useradd stack
echo "stack:stack" | chpasswd
echo "stack ALL=(root) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/stack
sudo chmod 0440 /etc/sudoers.d/stack
su - stack
sudo yum -y install epel-release
sudo yum -y install yum-plugin-priorities
###
@ccamacho
ccamacho / Deploying tripleo master
Last active July 4, 2016 11:32
Deploying tripleo master
#Execute on the hypervisor:
sudo useradd stack
echo "stack:stack" | chpasswd
echo "stack ALL=(root) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/stack
sudo chmod 0440 /etc/sudoers.d/stack
su - stack
sudo yum -y install epel-release
sudo yum -y install yum-plugin-priorities
Deployment tips for puppet-tripleo
----------------------------------
This section will describe different ways of debugging puppet-tripleo changes.
Deploying puppet-tripleo using gerrit patches or source code repositories
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In some cases, dependencies should be merged first in order to test newer
patches when adding new features to THT. With the following procedure, the user
How to use the ADXL345 with a Raspberry Pi 3
Shoping list:
Solder: https://www.amazon.es/gp/product/B005I4QCB4 13.40
Solder support: https://www.amazon.es/gp/product/B001BMSBD4 6.30
Solder wire: https://www.amazon.es/gp/product/B000LFTN1G 5.72
Flux: https://www.amazon.es/gp/product/B00CIOVF8W 5.93
JUmper kit: https://www.amazon.es/gp/product/B0144HG2RE 6.99
Raspberry Pi 3: https://www.amazon.es/gp/product/B01CD5VC92 41.95