Monter un répertoire avec l'option ''bind'' de la commande ''mount''
Il est parfois utile de monter non pas un volume, mais un dossier dans un autre. Ceci peut ressembler à un lien logique mais c'est beaucoup plus puissant, notamment :
pour un chroot dans un compte FTP pour monter des fichiers dans un système de fichiers en lecture seule (où on ne peut donc pas créer de liens) (CD,…) pour monter des fichiers (fichiers compressés squashfs,…) Cela est possible avec l'option "bind". ...
cd modules git git clone --branch master http://git.drupal.org/project/prepopulate.git cd prepopulate git checkout 7.x-2.x less README.txt
By ea.Farris, based on an idea from chx.
Maintained by Addison Berry (add1sun).
Prepopulate is an attempt to solve the problem that resulted from
the discussion at http://www.drupal.org/node/27155 where the $node object,
it was (correctly, I believe) decided, should
not be prefilled from the $_GET variables, and instead, the power of the
FormsAPI should be used to modify the #default_value of the form
This functionality will make things like bookmarklets easier to write,
since it basically allows forms to be prefilled from the URL, using a
http://www.example.com/node/add/blog?edit[title]=this is the title&edit[body]=body goes here
Refer to the USAGE.txt file or the online handbook at http://drupal.org/node/228167 for more examples.
I try to migrate my old d6 iftbqp.com to d7* *(And it is done with the better news I had from the drupal since years !) * I'll try to rebuild content types and field, then migrate the old stuff in the new site using feeds_sql module. What needs to be migrated : * Blog * Articles * Bookmarks * Pages * Images (peintures etc) Let's test feeds_sql on the blog migration. We will use the blog module, so we probably don't need to put a lot of fields in the basic "blog" content type.
drush en feeds_sql feeds_ui tokenOk, apres quelques heures de travail là dessus, voici un exemple de configuration dans un aegir : dans le local.settings.php :
<?php $databases['d6']['default'] = array( 'database' => 'dagadi', 'username' => 'dagada', 'password' => 'p4ssw0rd', 'host' => 'localhost', 'port' => '', 'driver' => 'mysql', 'prefix' => '' );"d6" étant le nom que vous retrouverez dans l'interface feeds_sql.
ssh root@IP passwd (changer de mot de passe) aptitude update && aptitude dist-upgrade aptitude install sudo adduser YOURNAME visudo (insert:) YOURNAME ALL=(ALL) ALL (CTRL-X pour quitter et sauver) CTRL-D (logout) ssh YOURNAME@IP sudo nano /etc/ssh/sshd_config #from http://lani78.wordpress.com/2008/08/08/generate-a-ssh-key-and-disable-password-authentication-on-ubuntu-server/
after configuring vino (vino-preferences), on the other machine run vncviewer -fullscreen 192.168.xxx.xxx:0
This is the blog about my journey discovering nginx. I wanted this to be a chronological log of my progress, just like a captain's log (hello Star Trek fan's ;)).
Okay, now it's time to go and make a patch! All we really want are the two latest commits, stuff them in a file and send them to someone to apply them. But, since we created a separate branch, we don't have to worry about commits at all! git format-patch master --stdout > fix_empty_poster.patch
Media Queries Media queries allow you style sheets to apply specific styles depending on the current size of the browser. Normally these need to go a the root of your CSS document but thankfully Sass has a media bubbling behavior that will ensure they find their way to where they belong and you are free to define them in a place that makes sense to you, even nesting them inside other selectors. @media screen and (max-width: 1000px)
Since there is no :first-word pseudo-element in CSS, this script can be used in its place. It works in Firefox, Netscape 6 , IE4 /Win, Opera 7 , Konqueror 3, Safari, and IE5/Mac.
git config core.filemode falsecore.fileMode If false, the executable bit differences between the index and the working copy are ignored; useful on broken filesystems like FAT. See git-update-index(1). True by default.
Un petit projet pour toujours avoir une clé avec un système minimal pour démarrer un "PC". On essayera d'avoir une version encryptée On devrait avoir plusieurs tailles d'images, peut-être plusieurs version (SID) On essayera de comprendre comment marche le projet Debian Live. Pour l'instant, de mon côté c'est pas fort fort… … Un jour, on essayera, à l'occasion, d'avoir un serveur X sans X11. Je ne sais pas pourquoi, j'ai toujours rêvé de voir ça…
A Big List of Star Codes Also known as Vertical Service Codes Here is the list of "Star Codes". I do not mean for it to be exhaustive. These codes work in the US and I believe Canada. These services are only available to land-line or cellular telephones. Some require additional services be purchased from the telephone company to use them. *40 - Change Forward-To Number :followed by directory number is used to change the forwarded-to number for Call Forwarding when line is busy.
Both vdi and qcow images are compressed, so a a 10 Gb .vid or .qcow will take less space on your hard drive. Conversion, however, requires you to first convert the .vdi to a raw image, which will require the full 10 Gb, so plan accordingly. Assume your VirtualBox image is called “ubuntu.vdi” Step 1. Convert the VB disk vdi image to a raw image format. #VBoxManage clonehd --format RAW ubuntu.vdi ubuntu.img
This article is the ultimate guide to installing and managing GIMP add-ons like brushes, plug-ins, scripts.
This guy saved my day!!!
The problem was that Windows could not interpret the file as UTF-8 on itself. it reads it as asci and then ä becomes a 2 character interpretation Ã¤ (ascii 195 164) trying to convert it, I found a solution that works for me: iconv -f UTF-8 -t WINDOWS-1252//TRANSLIT --output=outfile.csv inputfile.csv now I can view the special chars correctly in editors For SQLServer compability, converting UTF-8 to UTF-16 will work even better ... just the filesize grows quite a bit
This is a simple NAT script that allows you to connect a laptop machine to a WiFi network and then hook a desktop machine to the ethernet port of the laptop machine.
#! /bin/bash echo Configure a laptop as a wlan0 to eth0 NAT router: echo WAN = wlan0, DHCP echo LAN = eth0, 192.168.1.1, 255.255.255.0 # Accept all traffic iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD ACCEPT # General new connection rate limiting for DOS and Brute Force protection
I am at a café somewhere, pluged with wifi (wlan0)
- My friend has a computer without wifi and I want him to surf
- I have a CROSSOVER cable
apt-get install dhcpd * bound it to my internet port (wlan0) * plug my friend in my eth0 interface (or eth1...) Routing / bridging ================== * bridge will isolate my machine from his but will ISF ask for a wifi connexion ? * routing will hide him behind my machine (the gateway) NAT === wlan0 = the network adapter with internet (external or WAN).
If you have a tag named '12345' then you would just do this: git tag -d 12345 git push origin :refs/tags/12345 That will remove '12345' from the remote repository.
This page gives the essential Git commands for working with this project's source files.
In a BASH script, I launched an application and use %u201C$!%u201D variable to grab it%u2019s process ID. I would like to perform some action on the application%u2019s main window (e.g. move or resize it). However, this requires knowing the application%u2019s window ID. How do I find the application%u2019s window ID, using only it%u2019s process ID as a starting point?
Problem: to add files at ./shells/smallApps/* to Git at ./.git/ when I do not have the files at ./.git/info/exclude nor at any .gitignore -files.
Many exciting new functions and features are being thought up for CSS3. We will try and showcase some of them on this page, when they get implemented in either Firefox, Konqueror, Opera or Safari/Webkit.
Whether distributed or centralized, all revision-control systems come with complicated sets of tradeoffs. How do you find the best match between tool and team?
I have a somewhat odd error, which means that whenever I have a tag cloud which is redirected with the taxonomy_redirect module, all tags are rendered with the class "level0" I can follow the code all the way through, and the level shows correctly in the term object. But whenever it is put through the theming function $output .= l($term->name, taxonomy_term_path($term), array('attributes' => array('class' => "tagadelic level$term->weight", 'rel' => 'tag'))) ." \n"; it suddenly turns to zero. For the tag clouds which are not redirected it works fine.