Change iPhone hostname without iTunes

Vendredi 26 août 2011

May be you are like me and you won’t connect your iPhone on your Mac or PC. But recently i wanted to change my hostname (in games and others applications my name was « iPhone » –boring). So i search on the web, but i doesn’t find how to change the iPhone hostname. After a long time, i finally find the solution.

To change your iPhone hostname without iTunes, you can juste use this command in the iPhone terminal :
sudo scutil --set HostName myNewHostname.local

Enjoy :)

Greg

Add all new files at once with svn

Mardi 23 novembre 2010

Each time you want to commit, you must add new files that you created in the project, svn provides just the function svn status which lists non-ignored new files with « ? », and the function svn add which can add a file or several files.

If you have to add 30 files, it’s really boring to cut/paste all files with « ? ». I searched a way to do this in one command, and i found this great command on a blog.

svn st | grep "^?" | awk '{ print $2}' | while read f; do svn add $f; done

With this simple line you can add all new files present in « svn status » with ?.

Greg

Massive find replace unix

Lundi 8 novembre 2010

A little post to explain how to make a massive find – replace in unix environment with find and sed.
An example which take all files with the php extension.

First you can do a simple command to list the modifications that will be done :
find . -name '*.php' -exec sed -n "s/string_to_replace/new_string/p" {} \;

If you see that all match are right, you can execute the final command :
find . -name '*.php' -exec sed -i "s/string_to_replace/new_string/g" {} \;

A very useful command, but use it with caution !

Greg

Repository Cydia

Dimanche 24 octobre 2010

I Have a cydia repository, principally to put my SBSetting theme named iNzoSB. I manage the repository manually, so it’s not often updated.

You can add the repository to cydia via this url :

http://cydia.neoziro.com/

Here a preview of my retina SBSetting theme, you can view it on macthemes too (http://www.macthemes.net/forum/viewtopic.php?pid=694601).

iNzoSB

Greg

Mise en ligne du site

Jeudi 21 octobre 2010

Voilà la nouvelle version de mon site est en ligne, la première aura bien duré mais il était temps de changer. Pour cette nouvelle version j’ai abandonné le flash et je me suis plus orienté vers les nouveaux standards tel que le HTML5 et le CSS3.

Biensûr le parcours a évolué, les projets aussi, la principal nouveauté est quand même le blog que j’essayerai d’entretenir malgré mon emploi du temps complètement overbooké !

J’ai quand même laissé la v1 pour la nostalgie ;)

Bonne visite.

Greg

Greg |

0 Commentaire