Skip to content

Instantly share code, notes, and snippets.

View ccamacho's full-sized avatar
🍼

Carlos Camacho Gonzalez ccamacho

🍼
View GitHub Profile
@ccamacho
ccamacho / os-migrate-howto.md
Last active April 1, 2020 12:09
os-migrate dev env

In this post im putting together the steps im following to work on os-migrate, this is setting up my development environment.

1- Start with a fresh deployed f30 machine.

2- Install the following prerequisites:

@ccamacho
ccamacho / .block
Created January 18, 2020 12:39 — forked from nbremer/.block
Self Organizing Map - Hexagonal Heatmap - Lines
license: mit
@ccamacho
ccamacho / jpg-png-optimize.md
Created October 13, 2019 18:37 — forked from w33zy/jpg-png-optimize.md
Optimize your jpg & png images with jpegoptim and optipng on linux

JPG and PNG image bulk optimization

Install jpegoptim and optipng

apt update && apt install jpegoptim optipng -y

JPG optimization

cd /path/to/your/image/folder
@ccamacho
ccamacho / jpg-png-optimize.md
Created October 13, 2019 18:37 — forked from w33zy/jpg-png-optimize.md
Optimize your jpg & png images with jpegoptim and optipng on linux

JPG and PNG image bulk optimization

Install jpegoptim and optipng

apt update && apt install jpegoptim optipng -y

JPG optimization

cd /path/to/your/image/folder
@ccamacho
ccamacho / howto.md
Created September 9, 2018 11:58 — forked from vranystepan/howto.md
Getting Thumbnails / Previews of your RAW files in Fedora 25

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.

$ 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
...
@ccamacho
ccamacho / mistral_client_snippet.py
Created December 13, 2017 14:29
Mistral client snippet
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 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
@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