Skip to content

Instantly share code, notes, and snippets.

View chussenot's full-sized avatar

Clément Hussenot chussenot

View GitHub Profile
wget https://dl.influxdata.com/telegraf/releases/telegraf-1.8.2_windows_amd64.zip
unzip telegraf-1.8.2_windows_amd64.zip
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC8OwVjXgQVsWx3vYguz4WTVx1MGtsPP7Xc/BdvrYh0ekDKCUp7V3rTnSIgW6u6f5AfAOEa2jWZyULQAqUpdsHfXZPhGINT93F/vu1IkdE8VP9RFpI1eoY6N1Te1PnyNo3OSHyKeTMbRWGNqvvOPFRSlmlFNCQy9ts/bT+EweSlWDQuHQ9qfKzJMA2yLD4SyeVBVVR3y7WFLQbpEm66ggE7chc6PsM4S0LB6tejD9ZSNpqEhDZ1o4anxwNrUKDkrzKhIarcFCYDN73wsRztC0sgypvg9ix1Xn7F556+/IiOP1m54S36FGn/lJJwNXUvh/pel402T42ajhKq+ZKsfQhV6EQxc9LT4kHxg8KBDeHTgWmnzmChI/yv+1yYJ6x5mImu+rx8f5DI5PL+hiiIKAVuycNJId1TlVGkl5YzAEaI2++yL7EVPQNG87dA1KjTCC0RU6WeB/38584Ut73j89OnB6oyjxk8XkG6D4qnNmUqM7BfO7YGkmqOcQigdkQOWuTMBW3YMuV0jkwEQzaTCWQnlpU1aa4ys55dm14k1En0UVcyZmgTnlVuQHSenKMjVpek57tG5nYSFDr1A6CvsYB/ZkbdL/dnrDmlHJWweh6VWV+qLqrmAZak2B0ehrcm3vf5TH/k7ukBOWdQu5qrZX1Ii1LF2W59DAdXYlIoVkAZNQ== Samir KERROUMI (git.vpgrp.io)
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCdqj4j27hzkG7nVcccMRGDLoPA6PR1SThWkBdOAXUinJZd4GwFYm6vFlfLl23Ve6XiUm6WdIW4s9GIIk35UfCvVCO5Xjqj5v4yf8ey8qXZ2R1CzFb4/p/s8SR0tDhCskDlNUBiuKEQLnc3kLIK4Yub/5Ixamveo0Czro14mP+1nAwks5o19KtcXextAqHNeEk/y17GN0vmGM+1fr/p2XPm+K9jE8dExPmjQp1edPJnw99ViaABFVTwAeua0m8qrTN1lbYa+h7sc4dqU/UVSq/XIv9um5Z3a+Jr+vxEZYk4J0l+uKn6z7D1dl2Wg018MNX6fXKB771U+2+4o6nBdxELP92N2G5XoI6K3S39reaPoTNHr2by1NGkhY6EqsRxeY6UBd9tzHs/RdEG+URGC6bYHoSXxmNKBbWLhmgZKtIgpYJ0YaB3UHe4ihlhpEsh5azRA8Ba5cedSj6VVkZa8hsAe+KKI/i3/t9gGhnkwc3QKjMxM+TZgZBnJp07RPqhhzAoNyI2xKBaqVpMa0B3aI1k9UnShE2rXl83dFoeZC43izKLCwk+fHBG0HMzvdM65s4Ls/Z3fWpBcTkSqEf6z00z7KcC2LwPoB+qvZuePXm8tDYEIxevxuK/kLxltii/56L+BVz6Qyst6SkGSNcyXSZ6v8bi9tQpyCU82aKGAFPuaw== Khaled ERJILI (git.vpgrp.io)
@chussenot
chussenot / git-gpg.md
Created July 31, 2018 12:43 — forked from bcomnes/git-gpg.md
my version of gpg on the mac
  1. brew install gnupg21, pinentry-mac (this includes gpg-agent and pinentry)

  2. Generate a key: $ gpg2 --gen-key

  3. Take the defaults. Whatevs

  4. Tell gpg-agent to use pinentry-mac:

    $ vim ~/.gnupg/gpg-agent.conf 
    
[core]
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
editor = nvim -f
autocrlf = false
safecrlf = true
excludesfile = ~/.gitignore
pager = diff-so-fancy | less --tabs=4 -RFX
[pull]
rebase = true
[push]
# Another quick function to shorten something like this:
# ps aux | grep PROCESS_NAME. (Usage: psa NAME)
psa () {
ps aux | grep $1
}
myuptime () {
uptime | awk '{ print "Uptime:", $3, $4, $5 }' | sed 's/,//g'
return;
}
# Kibana is served by a back end server. This setting specifies the port to use.
#server.port: 5601
# Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values.
# The default is 'localhost', which usually means remote machines will not be able to connect.
# To allow connections from remote users, set this parameter to a non-loopback address.
server.host: '0.0.0.0'
# Enables you to specify a path to mount Kibana at if you are running behind a proxy. This only affects
# the URLs generated by Kibana, your proxy is expected to remove the basePath value before forwarding requests
@chussenot
chussenot / react-cognito-auth-js.js
Created July 4, 2018 12:13 — forked from gabeweaver/react-cognito-auth-js.js
React + Cognito User Pools + Cognito Identity JS Example
/*
This example was built using standard create-react-app out of the box with no modifications or ejections
to the underlying scripts.
In this example, i'm using Google as a social provider configured within the Cognito User Pool.
Each step also represents a file, so you can see how I've chosen to organize stuff...you can do it however
you'd like so long as you follow the basic flow (which may or may not be the official way....but its what I found that works.
The docs are pretty horrible)
@chussenot
chussenot / cgroup.sh
Created June 13, 2018 22:05 — forked from teddyking/cgroup.sh
cgroup u/mounting
#!/bin/bash
set -eu
function ensureMounted() {
source=$1
shift
target=$1
shift
type=$1
@chussenot
chussenot / rocker.rb
Created June 13, 2018 21:25 — forked from sczizzo/rocker.rb
Toy container runtime in Ruby
#!/usr/bin/env ruby
# Dependencies:
# - capsh
# - cgroup-utils
# - systemd
# - ruby
#
require 'fileutils'
require 'logger'
require 'optparse'