Skip to content

Instantly share code, notes, and snippets.

@jc1987
jc1987 / windows version
Created May 14, 2014 22:34
find the windows version (32 or 64 bit)
wmic os get osarchitecture
@jc1987
jc1987 / add a document to elastic documents with windows bash
Created May 20, 2014 23:35
add a document to elastic documents with windows bash
curl -XPUT "http://localhost:9200/twitterr/tweet/1" -d "{\"user\" : \"kimchy\", \"post_date\" : \"2009-11-15T14:12:12\",\"message\" : \"trying out Elasticsearch\"}"
@jc1987
jc1987 / gist:5f7920e268f101d680f2
Created May 20, 2014 23:40
custom field elastic search
curl -XPUT "http://localhost:9200/twitterr/tweet/112" -d "{\"user\" : \"kimchy\", \"post_date\" : \"2009-11-15T14:12:12\",\"message\" : \"trying out Elasticsearch\",\"customField99\" : \"fjoehgi\" }"
@jc1987
jc1987 / partageFolderVM
Created July 7, 2014 09:55
partageFolderVM
sudo mount.vboxsf PartageWindows /path/to/folder/to/share
@jc1987
jc1987 / proxydebian
Created July 11, 2014 14:24
proxydebian
• Créer /etc/apt/apt.conf.d/proxy contenant:
Acquire::http::Proxy "http://login:motdepasse@adresseproxy:port";;
Acquire::ftp::Proxy "http://login:motdepasse@adresseproxy:port";;
• à la fin de /etc/wgetrc mettre:
http_proxy = http://adresseproxy:port/
https_proxy = http://adresseproxy:port/
ftp_proxy = http://adresseproxy:port/
proxy_user = login
proxy_password = motdepasse
@jc1987
jc1987 / gist:ad52a4fe36e8f3d18b74
Created July 28, 2014 13:36
session en symfony2 pbleme
framework:
session:
handler_id: ~
@jc1987
jc1987 / designer.html
Created July 30, 2014 09:30
designer
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
#core_animated_pages {
width: 420px;
height: 582px;
overflow: hidden;
grey #404040
@jc1987
jc1987 / gist:a08db29a9df9a53e5239
Created October 6, 2014 12:44
homogeneize end of lines
sed -i "s/\r//g" "path/to/file"
homogeneize the file end lines
var e = $('[data-toggle="popover"]');
e.popover({
html:true,
trigger:'hover',
delay: {hide: 5000},
placement: 'bottom',
container: e,
})
;