#Utilities
Web development utilities
See http://stackoverflow.com/questions/1943727/find-all-files-with-blank-or-ws-at-bof-or-eof
for f in `find . -type f`; do
for t in head tail; do
$t -1
.mcheckbox-container { | |
display: inline-block; | |
vertical-align: middle; | |
height: 160px; | |
overflow: auto; | |
} | |
.mcheckbox-table { | |
margin-right: 20px; | |
width: 100%; | |
} |
#! /usr/bin/python | |
""" | |
AGTKS (abidibo's GTK library) | |
This library containes reusable GTK classes. | |
@author abidibo (Stefano Contini) <[email protected]> | |
@license MIT License (http://opensource.org/licenses/MIT) | |
@date 2013 | |
""" | |
from gi.repository import Gtk, Gdk |
#! /usr/bin/python | |
from gi.repository import Gtk, Gdk, GObject | |
from agtk import MainWindow | |
""" | |
@brief AWR Graphic User Interface | |
""" | |
class AWRGUI: | |
""" | |
@brief Constructor |
#Utilities
Web development utilities
See http://stackoverflow.com/questions/1943727/find-all-files-with-blank-or-ws-at-bof-or-eof
for f in `find . -type f`; do
for t in head tail; do
$t -1
#Vifm
##Basic operations
###Files create a file
:touch filename
##git mergetool
In the middle file (future merged file), you can navigate between conflicts with ]c
and [c
.
Choose which version you want to keep with :diffget //2
or :diffget //3
(the //2
and //3
are unique identifiers for the target/master copy and the merge/branch copy file names).
:diffupdate (to remove leftover spacing issues)
:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)
# Environment | |
(http://www.abidibo.net/blog/2012/04/30/deploy-django-applications-nginx-uwsgi-virtualenv-south-git-and-fabric-part-1/) | |
$ cd /var/www/ | |
$ mkdir myproject | |
$ cd myproject | |
$ virtualenv --no-site-packages venv | |
$ source ./venv/bin/activate | |
$ pip install django | |
$ pip install South |
Two graphic cards:
a typical platform includes both a lower-performance integrated unit by Intel and a high-performance one by Nvidia.
Optimus should save battery life by automatically switching the power of the discrete graphics processing unit (GPU) off when it is not needed and switching it on when needed again.
Run
$ lspci -vnn | grep '\''[030[02]\]'
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller])
<?php | |
/** | |
* @file class.Image.php | |
* @brief Contiene la classe Image per il trattamento di immagini | |
* | |
* @copyright 2014 Otto srl (http://www.opensource.org/licenses/mit-license.php) The MIT License | |
* @author abidibo [email protected] | |
*/ | |
define('THUMBNAIL_DIR', CONTENT_DIR.OS.'thumbnail'); |