Skip to content

Instantly share code, notes, and snippets.

Clément Hussenot chussenot

Block or report user

Report or block chussenot

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@chussenot
chussenot / _README.md
Created Jul 2, 2019 — forked from kennethkalmer/_README.md
Simple start with InfluxDB & Grafana using Travis as a source of historical data
View _README.md

InfluxDB & Grafana starter pack

Simple example of how easy it is to jam numbers into InfluxDB and graph something with Grafana. I choose to use Travis as a source of historical time-series data.

Dependencies

Get InfluxDB installed with Homebrew

$ brew install influxdb
@chussenot
chussenot / git-gpg.md
Created Jul 31, 2018 — forked from bcomnes/git-gpg.md
my version of gpg on the mac
View git-gpg.md
  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 
    
@chussenot
chussenot / react-cognito-auth-js.js
Created Jul 4, 2018 — forked from gabeweaver/react-cognito-auth-js.js
React + Cognito User Pools + Cognito Identity JS Example
View react-cognito-auth-js.js
/*
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 Jun 13, 2018 — forked from teddyking/cgroup.sh
cgroup u/mounting
View cgroup.sh
#!/bin/bash
set -eu
function ensureMounted() {
source=$1
shift
target=$1
shift
type=$1
@chussenot
chussenot / rocker.rb
Created Jun 13, 2018 — forked from sczizzo/rocker.rb
Toy container runtime in Ruby
View rocker.rb
#!/usr/bin/env ruby
# Dependencies:
# - capsh
# - cgroup-utils
# - systemd
# - ruby
#
require 'fileutils'
require 'logger'
require 'optparse'
View queues.rake
# rubocop:disable Style/HashSyntax
# shoryuken用のタスク
namespace :queues do
desc 'Create default SNS & SQS'
task 'setup' => :environment do
# http://qiita.com/takeyuweb/items/cdc262d97c3e863c15ff
# TODO
end
desc "List all SQS queues"
@chussenot
chussenot / docker-install-rpi3.md
Created Feb 2, 2018 — forked from tyrell/docker-install-rpi3.md
Installing latest Docker on a Raspberry Pi 3
View docker-install-rpi3.md

Introduction

I wrote this gist to record the steps I followed to get docker running in my Raspberry Pi 3. The ARM ported debian version (Jessie) comes with an old version of docker. It is so old that the docker hub it tries to interact with doesn't work anymore :)

Hopefully this gist will help someone else to get docker running in their Raspberry Pi 3.

Installation

From original instructions at http://blog.hypriot.com/post/run-docker-rpi3-with-wifi/

@chussenot
chussenot / iterm2-solarized.md
Created May 1, 2017 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)
View iterm2-solarized.md

Default

Default

Powerlevel9k

Powerlevel9k

@chussenot
chussenot / .tmux.conf
Created Feb 11, 2017 — forked from v-yarotsky/.tmux.conf
Mac OS X tmux config
View .tmux.conf
### INSTALLATION NOTES ###
# 1. Install Homebrew (https://github.com/mxcl/homebrew)
# 2. brew install zsh
# 3. Install OhMyZsh (https://github.com/robbyrussell/oh-my-zsh)
# 4. brew install reattach-to-user-namespace --wrap-pbcopy-pbpaste && brew link reattach-to-user-namespace
# 5. Install iTerm2
# 6. In iTerm2 preferences for your profile set:
# Character Encoding: Unicode (UTF-8)
# Report Terminal Type: xterm-256color
# 7. Put itunesartist and itunestrack into PATH
@chussenot
chussenot / sort.rb
Created Nov 25, 2016 — forked from aspyct/sort.rb
Sample implementation of quicksort, mergesort and binary search in ruby
View sort.rb
# Sample implementation of quicksort and mergesort in ruby
# Both algorithm sort in O(n * lg(n)) time
# Quicksort works inplace, where mergesort works in a new array
def quicksort(array, from=0, to=nil)
if to == nil
# Sort the whole array, by default
to = array.count - 1
end
You can’t perform that action at this time.