A flow based on this article
Comments from Adam on the original version of this gist can be found here
A flow based on this article
Comments from Adam on the original version of this gist can be found here
# hello |
(foo)paolo@tk:tmp $ speedtest | |
Retrieving speedtest.net configuration... | |
Retrieving speedtest.net server list... | |
Testing from Vodafone Italia DSL (xxx.xxx.xxx.xxx)... | |
Selecting best server based on latency... | |
b'Hosted by ItaliaOnline (Milan) [36.29 km]: 80.79 ms' | |
Testing download speed........................................ | |
Download: 11.47 Mbit/s | |
Testing upload speed.................................................. | |
Upload: 0.70 Mbit/s |
PHP Warning: Module 'xdebug' already loaded in Unknown on line 0 | |
[Tue Sep 15 23:00:06.762394 2015] [mpm_prefork:notice] [pid 3902] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.11 configured -- resuming normal operations | |
[Tue Sep 15 23:00:06.762460 2015] [core:notice] [pid 3902] AH00094: Command line: '/usr/sbin/apache2' | |
[Tue Sep 15 23:00:10.512779 2015] [rewrite:trace3] [pid 3908] mod_rewrite.c(468): [client 10.0.2.2:38666] 10.0.2.2 - - [127.0.0.1/sid#7f76b1984de0][rid#7f76b18450a0/initial] [perdir /var/www/myproject/] strip per-dir prefix: /var/www/myproject/ -> | |
[Tue Sep 15 23:00:10.513543 2015] [rewrite:trace3] [pid 3908] mod_rewrite.c(468): [client 10.0.2.2:38666] 10.0.2.2 - - [127.0.0.1/sid#7f76b1984de0][rid#7f76b18450a0/initial] [perdir /var/www/myproject/] applying pattern '.' to uri '' | |
[Tue Sep 15 23:00:10.513682 2015] [rewrite:trace1] [pid 3908] mod_rewrite.c(468): [client 10.0.2.2:38666] 10.0.2.2 - - [127.0.0.1/sid#7f76b1984de0][rid#7f76b18450a0/initial] [perdir /var/www/myproject/] pass throu |
#!/usr/bin/env python | |
# | |
# Copyright 2010 Facebook | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); you may | |
# not use this file except in compliance with the License. You may obtain | |
# a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
cd ~/tmp/ | |
wget ftp://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz | |
tar zxf libffi-3.2.1.tar.gz | |
cd ~/tmp/libffi-3.2.1 | |
./configure --prefix=/home/user/tmp/libffi | |
make | |
make install | |
PKG_CONFIG_PATH=/home/user/tmp/libffi/lib/pkgconfig/ LD_LIBRARY_PATH=/home/user/tmp/libffi/lib/ pip install bcrypt | |
Finally add LD_LIBRARY_PATH information to Apache's start script (located in /home/user/webapps/foobar/apache2/bin) |
<main> | |
<header> | |
<h1>Web Typography</h1> | |
<h1>Demystified</h1> | |
</header> | |
<h1>A section</h1> | |
<section> | |
<h2>Section heading</h2> | |
<p>A paragraph: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p> |
#!/bin/bash | |
# used to backup a live cd session without persistence possibility | |
# (just forgot to run the live cd in persistent mode) | |
set -e | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
# http://askubuntu.com/a/99151/18140 |
$ sudo ./runbackup.sh | |
[sudo] password for paolo: | |
Create into sysvg a snapshot of lvroot named backup_snapshot_root | |
Logical volume "backup_snapshot_root" created | |
Mounting root snapshot to filesystem... | |
Create into sysvg a snapshot of lvhome named backup_snapshot_home | |
Logical volume "backup_snapshot_home" created | |
Mounting home snapshot to filesystem... | |
Create into sysvg a snapshot of lvvar named backup_snapshot_var | |
Logical volume "backup_snapshot_var" created |
(attic)paolo@tk:~/local2/venvs/attic$ sudo ./runbackup.sh | |
[sudo] password for paolo: | |
Create into sysvg a snapshot of lvroot named backup_snapshot_root | |
Logical volume "backup_snapshot_root" created | |
Mounting root snapshot to filesystem... | |
Create into sysvg a snapshot of lvhome named backup_snapshot_home | |
Logical volume "backup_snapshot_home" created | |
Mounting home snapshot to filesystem... | |
Create into sysvg a snapshot of lvvar named backup_snapshot_var | |
Logical volume "backup_snapshot_var" created |