Skip to content

Instantly share code, notes, and snippets.

View davlgd's full-sized avatar

David Legrand davlgd

View GitHub Profile

Keybase proof

I hereby claim:

  • I am david-legrand on github.
  • I am davlgd (https://keybase.io/davlgd) on keybase.
  • I have a public key whose fingerprint is C508 D847 4655 467F 2E58 D86A 3435 4A80 ABE9 28E6

To claim this, I am signing this object:

@davlgd
davlgd / bench.sh
Created May 11, 2012 17:39
Blender Ubuntu Compile / Bench Script
#! /bin/bash
### Blender compile & bench for Ubuntu
### Author : LEGRAND David - PC INpact
###
### david@pcinpact.com
### http://www.pcinpact.com
###
### test.blend is needed for benchmark
### http://www.eofw.org/bench/
@davlgd
davlgd / gist:3246241
Created August 3, 2012 09:24
Ceci est un test
Voila, si tu veux blogguer depuis Github, c'est possible avec un simple Gist
* Exemple de puce ;)
Un lien vers le meilleur site du monde : [PCINpact](http://www.pcinpact.com)
@davlgd
davlgd / gist:5604823
Last active December 17, 2015 11:49
Morceau de code à rajouter à Ghostery pour ajouter un tracking des différents sites. Code à rajouter dans la méthode init() du fichier background.js Le fichier se trouve dans le répertoire suivant sous Linux / Chromum ou Windows, dans le cas de la version 4.1.1 : ~/.config/chromium/Default/Extensions/mlomiejdfkolichcflejclcbmpeaniij/4.1.1_0/js/ …
// On check qu'un onglet est mis à jour et que la procédure est terminée
chrome.tabs.onUpdated.addListener(function(tab_id, tab_infos, tab) {
if (tab_infos.status == "complete")
{
// On récupère les infos utiles
var url = tab.url;
var count = getFoundAppsCount(tab_id);
var matches = url.match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i);
var domain = matches && matches[1];
@davlgd
davlgd / init.coffee
Created August 17, 2017 13:36
atom-gpg tuning
getGnuPGed = (event) ->
if event.type is ('custom:gpg-full-encrypt' or 'custom:gpg-full-decrypt' or 'custom:gpg-full-sign')
encEditor = atom.workspace.getActiveTextEditor()
encEditor.moveToTop()
encEditor.selectAll()
setTimeout ( -> encEditor.copySelectedText())
, 100
atom.commands.add 'atom-text-editor', 'custom:gpg-full-encrypt', ->
editor = atom.workspace.getActiveTextEditor()
@davlgd
davlgd / Post-build event command line
Last active August 26, 2017 13:05
Powershell script to zip files from a Visual Studio build to
cd "$(TargetDir)"
powershell.exe -ExecutionPolicy Unrestricted -f "Zip Hash and Sign.ps1"
@davlgd
davlgd / Progam.cs
Created December 21, 2017 13:29
HelloWord - Etape 1
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HelloWorld
{
class Program
{
@davlgd
davlgd / Progam.cs
Created December 21, 2017 13:37
HelloWorld - Etape 2
string textToShow = "Hello, World !";
Console.Write(textToShow);
Console.Read();
@davlgd
davlgd / Program.cs
Created December 21, 2017 13:44
HelloWorld - Etape 3
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
Console.ForegroundColor = ConsoleColor.Green;
@davlgd
davlgd / Form1.cs
Last active December 22, 2017 09:04
AlticeStockChecker - Etape 2
public Form1()
{
InitializeComponent();
this.Text = Application.ProductName;
WebClient wc = new WebClient();
string webPageCode = wc.DownloadString("https://finance.yahoo.com/quote/ATC.AS?p=ATC.AS");
}