Juju 2.x have the ability to add
LXD as a
provisioner, by default it can
easily use a local lxd (juju bootstrap lxd
), but how could we use a remote
lxd?, the following instructions will guide you to achieve this:
SSH into the remote server (e.g. 192.168 …
Juju has the ability to use lxc or kvm to deploy services, this is done by the local provider, but sometimes during development you may want to have one environment up-n-running all the time for testing and you may need another one to run amulet tests, well at the beginning …
This article explains how to deploy a WSGI python web app + a celery worker.
A recommended reading before moving forward with Heroku is The Process Model.
The application that we are going to deploy to heroku has the following components:
These days the tendency among software companies is to have everything under version control systems (i.e. Git, Mercurial), all these is part of two software development strategies: continuous integration and continuous delivery. To read more about them I recommend you to read "Continuous Integration: Improving Software Quality and Reducing …
Before I could really be productive with emacs, I failed a couple of times, because I knew that emacs were powerful, but the default configuration shows you a simple text editor that look awful, without syntax highlight, without anti-alias, a color schema that really sucks.
In GNU/Linux …
I hope you enjoy disecting my emacs config :D
;; to debug the .emacs file
(setq debug-on-error nil)
;; setup the default mode to use
;;Text mode is happier than Fundamental mode ;-)
(setq default-major-mode 'text-mode)
;; define the mail and name
(setq user-mail-address "your@mail.com")
(setq user-full-name "Your Name")
;;;;;;;;;;;;,;
;; UI setup ;;
;;;;;;;;;;;;;;
(require …
This is my configuration for erc
erc-cmd-NP function send the current track being played to the current chat buffer (channel or private).
The connect- functions provide a quick access to the defined IRC server.
;;
;; erc.el
;; Login : <freyes@wampa>
;; Started on Mon Aug 30 23:04:16 2010 Felipe Reyes …
The LaTeX class beamer allows production of high quality presentations using LaTeX and pdf processing. Org-mode has special support for turning an Org-mode file or tree into a beamer presentation.
Here it is an example of how a presentation file should look like
#+TITLE: Org Mode and Beamer …
pg_stat_activity is a view that belongs to the postgresql catalog, it helps you to view the status of the queries that are in execution, the explanation of each column can be found in the postgresql manual The Statistics Collector section (I don't want to do a simply copy-paste, so …
How to install Skype in Debian amd64
$ dpkg --print-foreign-architectures
i386
# dpkg --add-architecture i386
# apt-get update
# apt-get install libqtgui4:i386 \
libqtwebkit4 …
#include <stdio.h>
inline void swap(int *a, int *b){
*a= *a+*b;
*b=*a-*b;
*a=*a-*b;
}
int main() {
int a = 1;
int b = 2;
printf("before: a: %d - b: %d\n", a, b);
swap(&a, &b);
printf("after: a: %d - b: %d\n", a …
def Property(f):
fget, fset, fdel = f()
fdoc = f.__doc__
return property(fget, fset, fdel, fdoc)
class TtyExample (object):
def __init__ (self):
self._name = None
@Property
def name(f):
"The name"
def fget (self):
return self._name
def fset (self, value):
assert isinstance (value, basestring)
assert value …
This is my mercurial configuration (~/.hgrc)
[ui]
username = Foo Bar <foobar@example.com>
merge = emacs
[extensions]
pager =
rebase =
churn =
hgshelve = ~/.hg.d/hgshelve.py
keyword =
fetch =
activity=~/.hg.d/hgactivity/activity.py
mq =
hg_histedit=~/.hg.d/hg_histedit.py
color =
[diff]
git = on
[pager]
pager = LESS='FSRX' less
attend = glog
[keywordmaps …
It's always important to recognize why this happened, well, here in my work a few weeks ago I set up a few new templates for our Cacti, among many useful templates it comes with some very handy templates for MySQL, it comes with a pretty useful …
The Rxvt terminal is a really good terminal emulator, actually it has been my default terminal since at least 4 years ago. I started using it after getting tired of gnome-terminal (it's too fat and heavy for me).
To install it you just must do the follow:
aptitude install rxvt-unicode …
A Software Engineer, Debian enthusiast, free and open source software developer (or at least I try)