Skip to content

Instantly share code, notes, and snippets.

View ccamacho's full-sized avatar
🍼

Carlos Camacho Gonzalez ccamacho

🍼
View GitHub Profile
cd
sudo apt-get update
sudo apt-get install openvpn easy-rsa
sudo touch /etc/openvpn/server.conf
sudo gunzip -c /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz > server.conf
sudo mv server.conf /etc/openvpn/
Change "dh dh1024.pem" to "dh dh2048.pem"
Uncomment:
@ccamacho
ccamacho / tripleoui
Last active September 22, 2016 14:06
(03:49:22 PM) jtomasek: ccamacho: I've been using this tool up to now https://github.com/flofuchs/o3-virt-setup
(03:50:25 PM) jtomasek: ccamacho: although it should be much easier to install GUI as it is going to get installed as part of undercloud. mandre has last puppet patch pending to achieve that afaik
(03:52:12 PM) mandre: jtomasek: that last patch was merged yesterday
(03:52:13 PM) jpich: jtomasek, ccamacho: That patch merged earlier today :) https://review.openstack.org/#/c/363167/
@ccamacho
ccamacho / add release note with reno
Created September 23, 2016 10:05
add release note with reno
reno new <slug> #Slug... add-support-metricd-workers
vim releasenotes/note/<slug>-<id>.yaml
#Edit the release note with the content of the update.
#Check http://docs.openstack.org/developer/reno/usage.html
#Example https://github.com/openstack/puppet-keystone/blob/master/releasenotes/notes/os_service_default-9caeeb340d4bb303.yaml
@ccamacho
ccamacho / gist:960c6b1d0e916dbe9641ebdf87868ead
Created October 13, 2016 14:04 — forked from tofarley/gist:8285845
My Blender render farm ansible playbook.
---
- name: Create render slaves on Rackspace Cloud
hosts: renderslaves
user: root
connection: local
gather_facts: False
tasks:
- name: Provision a set of instances
local_action:
module: rax
---
- include_vars: secrets.yml
- apt: pkg={{ item }} state=present update_cache=yes
with_items:
- build-essential
- mime-support
- libfuse-dev
- libcurl4-openssl-dev
---
- include_vars: secrets.yml
- apt: pkg=fuse state=absent
- apt: pkg={{ item }} state=present update_cache=yes
with_items:
- build-essential
- libcurl4-openssl-dev
- libxml2-dev
- mime-support
@ccamacho
ccamacho / pedantically_commented_playbook.yml
Created November 2, 2016 18:12 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@ccamacho
ccamacho / install-sharelatex.md
Created March 16, 2017 10:50
how to install and setup sharelatex on ubuntu 16.04

dependencies

database and stuff

sudo apt-get update
sudo apt-get install -y redis-server
sudo apt-get install -y mongodb

docker

sudo apt-get install -y apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D

@ccamacho
ccamacho / zram.sh
Created October 3, 2017 14:41 — forked from sultanqasim/zram.sh
ZRAM config for Raspberry Pi 3
#!/bin/bash
# Raspberry Pi ZRAM script
# Tuned for quad core, 1 GB RAM models
# put me in /etc/init.d/zram.sh and make me executable
# then run "sudo update-rc.d zram.sh defaults"
modprobe zram
echo 3 >/sys/devices/virtual/block/zram0/max_comp_streams
echo lz4 >/sys/devices/virtual/block/zram0/comp_algorithm
@ccamacho
ccamacho / zram.sh
Created October 3, 2017 14:41 — forked from sultanqasim/zram.sh
ZRAM config for Raspberry Pi 3
#!/bin/bash
# Raspberry Pi ZRAM script
# Tuned for quad core, 1 GB RAM models
# put me in /etc/init.d/zram.sh and make me executable
# then run "sudo update-rc.d zram.sh defaults"
modprobe zram
echo 3 >/sys/devices/virtual/block/zram0/max_comp_streams
echo lz4 >/sys/devices/virtual/block/zram0/comp_algorithm