background preloader

Francisbesset

Facebook Twitter

Bosser avec les Francis

Je vis ma vie.

Geocaching

Avion RC. M56-190AWFPX - Pièces détachées pour McCulloch - CHS McCulloch. Hacked Gadgets – DIY Tech Blog. Hackaday | Fresh hacks every day. Karting endurance. Elasticsearch zero downtime with FOSElasticaBundle for Symfony when reindexing. When using elasticsearch or elastic, the reindexing process must be an important task to deal with. Indeed, this process must be done with zero downtime, and nothing visible for users. Reindexing can be useful in many cases like : Type/mapping updates. New physical infrastructure with more (or less) nodes. Splitting an index into many others. Any type of cluster/nodes/indexes/configuration updates.

If you want more information, the doc is very clear. But we are going to see how to have this zero downtime with Symfony and FOSElasticaBundle. Elasticsearch (elastic) To work with elasticsearch, the first thing we need, is to get/install… elasticsearch. Docker Start the docker container: docker run -d \ -p 9200:9200 -p 9300:9300 \ ypereirareis/docker-elk-and-plugins Then access to: Vagrant git clone \ git@github.com:ypereirareis/vagrant-elasticsearch-cluster.git \ && cd vagrant-elasticsearch-cluster ... Then access to (with the default IP pattern config): FOSElasticaBundle Install …then… <? Configuration. Créer une API Rest dans une application Symfony | Obtao. Read the English version Comme nous avions besoin d’une connexion entre une application web Symfony et une appli Android, nous avons dû apprendre et comprendre comment créer une API Rest de manière simple et sécurisée, en nous basant sur nos entités existantes. Nous avons choisi WSSE pour l’accès sécurisé, FOSRestBundle pour la restitution de données et JMSSerializerBundle pour la sérialisation.

Nous avions également besoin de séparer les logs pour les erreurs d’authentification WSSE. Lisez notre article pour savoir comment créer un fichier de logs séparé avec Monolog (en anglais). Librairies Bundles Articles Première étape : Installer FOSRestBundle et JMSSerializerBundle Vous aurez besoin de ces deux bundles, donc ajoutez-les à votre fichier composer.json : // composer.json // ... Lancez la commande php composer.phar update pour mettre à jour vos vendors puis enregistrez les bundles dans votre fichier AppKernel.php : Enfin, configurez le FOSRestBundle: Importez le fichier routing_rest.yml. Configurer WSSE sur Symfony avec le FOSRestBundle - Obtao. Read the English version Comme REST doit être sans état (stateless) : chaque requête d’un client vers un serveur doit contenir toute l’information nécessaire pour permettre au serveur de comprendre la requête, sans avoir à dépendre d’un contexte conservé sur le serveur.

Cela libère de nombreuses interactions entre le client et le serveur.Article Wikipedia sur REST Nous avions besoin d’ajouter un nouvel authentication provider dans Symfony2 pour respecter cette contrainte. Nous avons choisi WSSE. Cet article explique comment configurer WSSE sur Symfony, comment l’utiliser avec FOSRestBundle et tester le tout avec Google Chrome. Quelques mots à propos du salt Avant tout, nous voulions expliquer la gestion du mot de passe dans ce cas particulier. Dans FOSUserBundle, un salt est utilisé pour améliorer la sécurité.

Pour le bon fonctionnement de notre authentification, nous aurons donc besoin de générer un passwordDigest coté client. En d’autres termes : Informations Outils Appuyez sur le bouton GET ! Francis Besset's blog. Francisbesset's Profile - GitHub. Francis Besset a.k.a francisbesset - SensioLabs Connect.

Docker

SysAdmin. WebMaster. Dev. Jq. Etape 1 : La création des certificats. Connectez-vous sous root et allez dans le répertoire de configuration de votre serveur Apache2 /etc/apache2 (on peut évidemment choisir un autre répertoire) et créez un répertoire appelé ssl. Vous vous placerez dans ce répertoire afin que les clés et les certificats soient créés à l'intérieur avant d'effectuer les manipulations. Création du certificat serveur Génération de la clé privée On génère la clef privée avec la commande suivante en définissant un nom de fichier : openssl genrsa 1024 > servwiki.key La sortie attendue est la suivante : Generating RSA private key, 1024 bit long modulus ..................++++++ .................................................................++++++ e is 65537 (0x10001) Si vous souhaitez que cette clé ait un mot de passe (qui vous sera demandé à chaque démarrage d'apache, donc à éviter !)

Ceci a pour effet de créer une clé SSL (fichier servwiki.key), ne la perdez pas... c'est votre clé privée... Vous pouvez observer son contenu : less servwiki.key.

Synology

Ultra High Security Password Generator. If some device was not following the WiFi Alliance WPA specification by not hashing the entire printable ASCII character set correctly, it would end up with a different 256-bit hash result than devices that correctly obeyed the specification. It would then be unable to connect to any network that uses the full range of printable ASCII characters. Since we have heard unconfirmed anecdotal reports of such non-compliant WPA devices (and since you might have one), this page also offers "junior" WPA password strings using only the "easy" ASCII characters which even any non-fully-specification-compliant device would have to be able to properly handle.

If you find that using the full random ASCII character set within your WPA-PSK protected WiFi network causes one of your devices to be unable to connect to your WPA protected access point, you can downgrade your WPA network to "easy ASCII" by using one of these easy keys. And don't worry for a moment about using an easy ASCII key. MegaPhrase 05 MPG / Create the security password using a Mega-PassPhrase Generator. Encrypt or Decrypt string, Strong Encryption and Powerful Decryption online, Encrypt or Decrypt email messages. Encode PHP sorce online. Encrypt Text Files. HTML and PHP Encryption. Bit Encryption. Voltage Encryption. Copyright Protection. Email encryption refers to encryption, and often authentication, of email messages, which can be done in order to protect the content.

Windows

Améliorer le suivi d'exploitation avec Logstash & Kibana - ekino. L’exploitation 24/7 de plateformes de production Web est un défi de tous les jours (et nuits !) Pour garantir à nos clients et services internes une qualité de service maximale. En résumé l’exploitation en phase de “run” (on appelle “run” la phase de vie d’une plateforme ou application, par opposition au “build” ou mise en place) consiste en 2 volets : le curatif : résoudre les incidents lorsqu’ils se produisent (redémarrer un Tomcat, identifier une ressource en sur-consommation de CPU, isoler un nœud défaillant, …)le préventif : mettre en place des outils, indicateurs et processus pour anticiper les incidents et mettre en place un plan d’action pour les mitiger (suivre la volumétrie d’un système de fichier et prévoir lorsqu’il sera plein, déplacer une application consommatrice d’I/O disque sur un nœud plus performant, …) Ce second volet est essentiel : anticiper vaut toujours mieux que de travailler dans l’urgence (surtout lorsque cette dernière se produit à 3 heures du matin).

Analyse. Eloquent JavaScript: A Modern Introduction to Programming. Crashfirefox. Using curl to access ftp server. October 6th, 2007 mysurface Posted in Advance, curl, Network | Hits: 192529 | 31 Comments » The title doesn’t sound interesting if you have no idea what is curl. Why we need to use curl to access ftp server, if we can access ftp with tools like ftp in console or gFTP? Well gFTP is a very handy ftp client with gtk front end, as I use it daily to maintain my files in my web servers. But sometimes we need a command that allows us to put into script, then gFTP is not suitable for that. And default ftp command surprise me that we cannot do things inline. Let say, I wanna download a file from a ftp server by passing the username and password within one line of command, so I can put into my script. I can’t do this with default ftp command! Curl provides you a way to access ftp server and download, upload files, listing directories and file, and you can write your routine into a script using curl.

Lets look at how we can do it with curl. curl --user myname:mypassword man curl. Get the Lion installer to work behind a proxy server. When re-installing Lion from the Recovery Partition, the installer needs to check installation eligibility with Apple's servers. If your computer needs to access the Internet through a proxy server for whatever reason, the installer won't pick up on this; it will attempt to make a direct connection, fail, and tell you to contact AppleCare.

You can use the networksetup command in Terminal to get around this. First, access Terminal from within the Installer's Utilities menu. The networksetup command can configure a vast array of network options, a full list of which you can see by typing networksetup --help. The two options we're concerned with for this purpose are -setwebproxy and -setsecurewebproxy.

So putting this all together, to tell the Installer to connect using the proxy server proxy.example.com via Wi-Fi on port 8080, we would type: networksetup -setwebproxy Wi-Fi proxy.example.com 8080 networksetup -setsecurewebproxy Wi-Fi proxy.example.com 8080. Collect & visualize your logs with Logstash, Elasticsearch & Redis | Michael Bouvy. Update of December 6th : although Logstash does the job as a log shipper, you might consider replacing it with Lumberjack / Logstash Forwarder, which needs way less resources, and keep Logstash on your indexer to collect, transform and index your logs data (into ElasticSearch) : check out my latest blog post on the topic. Kibana Dashboard Even if you manage a single Linux server, you probably already know how hard it is to keep an eye on what’s going on with your server, and especially tracking logs data. And this becomes even worse when you have several (physical or virtual) servers to administrate.

Although Munin is very helpful monitoring various informations from my servers / VMs, I felt the need of something more, and bit less static / more interactive. There are 3 kind of logs I especially wanted to track : Apache 2 access logsiptables logsSyslogs As you can see, I am using 4 complementary applications, the role of each one being : Installation Redis Logstash (shippers) Elasticsearch Kibana. Revue des techniques de programmation en shell. L'été est fini, c'est la rentrée ! Pour se remettre en forme, rien de tel qu'une revue des techniques de programmation en shell — ces techniques sont pour le shell de Bourne /bin/sh mais peuvent être utilisées avec les shells compatibles qui permettent parfois des solutions plus faciles.

Sommaire Note: comme ce texte est déjà très long, je propose que ceux qui ont aussi des choses à dire sur ce sujet le fassent dans des dépêches supplémentaires. Le dernier qui a fait ça chez nous est en train de sécher dans un faux plafond Si vous souhaitez faire don de votre corps à un taxidermiste, utilisez l'une des techniques suivantes dans votre programme: les backquotes, la commande echo ou bien analysez la sortie de la commande ls.

Les backquotes, backticks ou contr'apostrophes N'écrivez jamais candidates=`awk '{print($2)}' /etc/fstab` mais plutôt candidates=$(awk '{print($2)}' /etc/fstab) À propos, il est souvent plus facile et plus lisible de définir une fonction auxiliaire: La commande echo Quel @! En.

Less is more ...

Wesbos : ××× Protip: use &times; ... Cool, but obscure unix tools :: Software architect Kristof Kovacs. Just a list of 20 (now 28) tools for the command line. Some are little-known, some are just too useful to miss, some are pure obscure -- I hope you find something useful that you weren't aware of yet! Use your operating system's package manager to install most of them.

(Thanks for the tips, everybody!) Dstat & sar iostat, vmstat, ifstat and much more in one. slurm Visualizes network interface traffic over time. vim & emacs The real programmers' editors. screen, dtach, tmux, byobu Keep your terminal sessions alive. multitail See your log files in separate windows. tpp Presentation ("PowerPoint") tool for terminal. xargs & parallel Executes tasks from input (even multithread). duplicity & rsyncrypto Encrypting backup tools. nethack & slash'em Still the most complex game on the planet. lftp Does FTPS.

Ack A better grep for source code. calcurse & remind + wyrd Calendar systems. newsbeuter & rsstail Command line RSS readers. powertop Helps conserve power on Linux. tig A console UI for git. qalc The best calculator. Mtr. Fartscroll.js | Everyone farts. And now your web pages can too. Everyone farts. And now your web pages can too. Include "fartscroll.js" in your page. You can include the latest version straight from our CDN: <script src=" Initialize the fartscroll plugin after the page has loaded: // Fart every 400 pixels scrolled in the window fartscroll(); // Fart every 800 pixels scrolled fartscroll(800); // Fart every 100 pixels scrolled (probably a bit much) fartscroll(100); // Now I'm just adding more examples to make the page longer fartscroll(50); // SO MANY FARTS fartscroll(5); // I should register fart.io for this fartscroll(500); // I should register fart.io for this fartscroll(400); // Dammit, fart.io is taken fartscroll(600); // Alright, that's probably enough examples fartscroll(400); SHAMELESS PLUG: Want to work on technology that changes the world?

Or just technology that farts? We're hiring developers. Drop us a line! Initiation à CasperJs. Creating a multi hop SSH tunnel by chaining SSH commands and using a jump host « Remi Bergsma's blog. When it not possible to reach a server you want to SSH to directly, you can make use of SSH’s built in capability to chain multiple commands. Suppose you have a network setup like in the image below. Network overview Firewalls or ACL’s prevent direct access to the ‘web server’ in network #2.

In between is a ‘jump host’ in network #1. You could do this manually: and then from that server: But using the -t switch, you can chain them together like this: The -A switch enables forwarding of the ssh-agent. Using this technique, you can also build a SSH tunnel through the jump host: When you type: in a browser, you are connected over a secure tunnel to the web server in Network #2. You can use many chained commands, so this is very flexible. Rate this: i 2 Votes Like this: Like Loading...

Comment sauvegarder vos emails Gmail. Comme beaucoup de monde, j'utilise Gmail (Google Apps pour être précis). Les outils présents dans Gmail, comme le moteur de recherche, sont très puissants et l'espace de stockage est tellement énorme que pour en voir le bout, il faudrait vraiment y aller niveau pièces jointes. De plus, gérer son propre serveur mail, c'est du boulot et je n'ai pas forcement le temps de gérer les crashs, les quotas, les mises à jour de sécurité, les déconnexions du FAI...etc. Et pourtant, le gros point noir de Gmail (et d'autres), c'est que nos emails sont à la merci de la société américaine Google.

Si demain, le géant du net décide de supprimer votre compte pour une raison ou une autre, c'est foutu. Bye Bye les emails. Sauvegarder vos emails Gmail avec Gmail Backup (La méthode gros n00b) Gmail Backup est un petit outil gratuit qui vous permettra de récupérer tous les emails de votre compte au format .eml, donc facilement importables ensuite dans un client mail comme Outlook ou Thunderbird. Concurrency is not Parallelism. The Go Programming Language. Http-headers-status.gif (GIF Image, 2580 × 2023 pixels) - Scaled (32. Top 20 OpenSSH Server Best Security Practices. Witter / stefanosala : @FrancisBesset your ... Say Hello to Octicons. Automatisez et sécurisez votre Mac avec ControlPlane. Lightbox Evolution. Configurer son terminal Bash | .: bordel-de-nerd :. 8 conseils pour jeunes développeurs. Vulnérabilité dans sudo.

3D Printer

Arduino. RaspberryPi. PCB. DCF77. Hack. HOBBY COMPONENTS LTD ULN2803 8-Channel Darlington Driver DIP 18 Pack of 5 items in Hobby Components store on eBay! CyberBricoleur (Powered by Invision Power Board) Blogs. iPhone. Geek. Musique. Services. Astrophoto. Rotating Moon from LRO. Voyager 1 pénètre dans l'espace des étoiles. Transit de Vénus : un grain de beauté sur le soleil mercredi matin. Nous sommes ici ! La Nasa diffuse une photo de la Terre en 8 000 x 8 000 pixels. WIKISKY.ORG. Lune. Friends. Chambres d'hôtes à Civrac de Blaye, au Nord de Bordeaux- Gironde. Geocaching. Mini Jeux. Souvenir @work.

A lire

Restaurant chez chabert dans le vieux lyon, véritable bouchon lyonnais. Accueil. Calendrier | pissenlit. J’ai tout planté ! «