Liens et nouvelles

15 août, 2012 - 21:08 | Marque page | marco
31 juillet, 2012 - 22:09 | Marque page | marco

ssh root@IP passwd (changer de mot de passe) aptitude update &...

16 juillet, 2012 - 17:43 | Marque page | marco

after configuring vino (vino-preferences),

on the other machine run

vncviewer -fullscreen 192.168.xxx.xxx:0

17 juin, 2012 - 12:22 | Marque page | marco

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 ;)).

26 mai, 2012 - 08:18 | Marque page | marco

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

10 mai, 2012 - 16:05 | Marque page | marco

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)
#page-wrapper
margin: 1em
top: 0

Here we specify that if the browser width ever dips below 1,000 pixels, we should remove the top margin, drop the rest of the margins from 5em to 1 and stop using up so much real estate for borders. This helps on smaller screens and netbooks, but to...

4 avril, 2012 - 08:39 | Marque page | marco

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.

31 mars, 2012 - 20:40 | Marque page | marco
27 mars, 2012 - 09:20 | Marque page | marco

git config core.filemode false

core.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.

26 mars, 2012 - 22:29 | Marque page | marco

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…

26 mars, 2012 - 14:35 | Marque page | marco

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.

*42- Change Forward-To Number: followed by directory number is used to change the forwarded-to number for Call Forwarding when phone not answered.

*44 - Voice Activated Dialing - Customers will dial this code to access their VAD directory in order to add,...

25 mars, 2012 - 15:51 | Marque page | marco

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

Note: The ubunut.img is a raw disk image, it will be quite large (as many GB as your virtual drive is, see above).

Step 2 : convert the raw image to a qcow

#qemu-img convert -f raw ubuntu.img -O qcow2 ubuntu.qcow

Upload the ubuntu.qcow to web/ftp server and Import it as appliance from VxDataCenter

1 février, 2012 - 10:45 | Marque page | marco

This article is the ultimate guide to installing and managing GIMP add-ons like brushes, plug-ins, scripts.

21 décembre, 2011 - 21:48 | Marque page | marco

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

10 novembre, 2011 - 17:22 | Marque page | marco

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
iptables -I INPUT -p TCP -m state --state NEW -m limit --limit 30/minute --limit-burst 5 -j ACCEPT

# Configure a port for the LAN hooked to eth0
ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up...

10 novembre, 2011 - 17:14 | Marque page | marco

Mes notes:

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).
eth1 = the network adapter to which a second computer is attached (internal or LAN).
192.168.0.x = IP subnet for eth1

sudo iptables -A FORWARD -o...

10 novembre, 2011 - 17:07 | Marque page | marco

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.

10 novembre, 2011 - 17:06 | Marque page | marco

This page gives the essential Git commands for working with this project's source files.

9 novembre, 2011 - 21:32 | Marque page | marco

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?

13 mai, 2011 - 09:02 | Marque page | marco

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.

25 août, 2009 - 20:58 | Marque page | marco

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?