Skip to content

Instantly share code, notes, and snippets.

Carlos Camacho ccamacho

Block or report user

Report or block ccamacho

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ccamacho
ccamacho / howto.md
Created Sep 9, 2018 — forked from vranystepan/howto.md
Getting Thumbnails / Previews of your RAW files in Fedora 25
View howto.md

Howto

Install these programms

sudo dnf install raw-thumbnailer
sudo dnf install ufraw

Try now if everything works, and your thumbnails show up. If not, try the following part.

View rhel-subscription-flow.md
$ sudo subscription-manager register --username <RHN_USERNAME> --password <RHN_PASSWORD>

$ sudo subscription-manager list --available

---------------------------------------------------
...
Subscription Name:   Red Hat Enterprise Linux Developer Suite
Pool ID:             1234567890
...
View mistral_client_snippet.py
from __future__ import print_function
import copy
import errno
import getpass
import glob
import hashlib
import json
import logging
import os
@ccamacho
ccamacho / zram.sh
Created Oct 3, 2017 — forked from sultanqasim/zram.sh
ZRAM config for Raspberry Pi 3
View zram.sh
#!/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 Oct 3, 2017 — forked from sultanqasim/zram.sh
ZRAM config for Raspberry Pi 3
View zram.sh
#!/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 / install-sharelatex.md
Created Mar 16, 2017 — forked from jbeyerstedt/install-sharelatex.md
how to install and setup sharelatex on ubuntu 16.04
View install-sharelatex.md

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 / pedantically_commented_playbook.yml
Created Nov 2, 2016 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
View pedantically_commented_playbook.yml
---
# ^^^ 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.
View main.yml
---
- 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
View main.yml
---
- include_vars: secrets.yml
- apt: pkg={{ item }} state=present update_cache=yes
with_items:
- build-essential
- mime-support
- libfuse-dev
- libcurl4-openssl-dev
@ccamacho
ccamacho / gist:960c6b1d0e916dbe9641ebdf87868ead
Created Oct 13, 2016 — forked from tofarley/gist:8285845
My Blender render farm ansible playbook.
View gist:960c6b1d0e916dbe9641ebdf87868ead
---
- 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
You can’t perform that action at this time.