aria2c -j5 --max-upload-limit=2K file_1.torrent file_2.torrent file_3.torrent file_4.torrent file_5.torrent > aria2c.log 2>&1 &
wget http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
tar -xvf wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
cd wkhtmltox/bin/
sudo mv wkhtmltopdf /usr/bin/wkhtmltopdf
sudo mv wkhtmltoimage /usr/bin/wkhtmltoimage
select | |
STR_TO_DATE(concat(tgl, ' Monday'),'%x%v %W') date_start, | |
STR_TO_DATE(concat(tgl, ' Sunday'),'%x%v %W') date_end | |
from | |
( | |
select | |
date_format(updated_at, "%Y%v") as tgl, | |
count(1) as counter | |
from table | |
group by tgl |
Prereq:
apt-get install zsh
apt-get install git-core
Getting zsh to work in ubuntu is weird, since sh
does not understand the source
command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
Please read the manual carefuly
- Creating sudoers user (don’t use root)
- do update first
sudo apt-get update
- do update first
Version numbers should be the ones you want. Here I do it with the last ones available at the moment of writing.
The simplest way to install elixir is using your package manager. Sadly, at the time of writing only Fedora shows
the intention to keep its packages up to date. There you can simply sudo dnf install erlang elixir
and you are good to go.
Anyway, if you intend to work with several versions of erlang or elixir at the same time, or you are tied to
a specific version, you will need to compile it yourself. Then asdf
is your best friend.
# -*- coding: utf-8 -*- | |
__author__ = """Julien Duponchelle""" | |
__email__ = '[email protected]' | |
__version__ = '0.2.0' | |
def parse(content): | |
""" | |
:param content: A JSON API document already | |
:returns: The JSON API document parsed |
Postgres allows the use of any existing database on the server as a template when creating a new database. I'm not sure whether pgAdmin gives you the option on the create database dialog but you should be able to execute the following in a query window if it doesn't:
CREATE DATABASE newdb WITH TEMPLATE originaldb OWNER dbuser;
Still, you may get:
ERROR: source database "originaldb" is being accessed by other users