Skip to content

Instantly share code, notes, and snippets.

View chussenot's full-sized avatar

Clément Hussenot chussenot

View GitHub Profile
from django.db import models
class Entry(models.Model):
name = models.CharField(max_length=20)
date = models.DateTimeField()
description = models.TextField()
created = models.DateTimeField(auto_now_add=True)
Sante = models.BooleanField(default=False)
Environnement = models.BooleanField(default=False)
Travail = models.BooleanField(default=False)
[core]
pager = diff-so-fancy | less --tabs=4 -RFX
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
editor = nvim -f
autocrlf = false
safecrlf = true
excludesfile = ~/.gitignore
[pull]
rebase = true
[push]
# 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 February 2, 2018 11:02 — forked from tyrell/docker-install-rpi3.md
Installing latest Docker on a Raspberry Pi 3

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/

[core]
pager = diff-so-fancy | less --tabs=4 -RFX
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
editor = nvim -f
autocrlf = false
safecrlf = true
excludesfile = ~/.gitignore
[pull]
rebase = true
[push]
# Compiled Python files
*.pyc
# Folder view configuration files
.DS_Store
Desktop.ini
# Files that might appear on external disks
.Spotlight-V100
.Trashes
# General options
set -g default-terminal "xterm-256color"
# Ring the bell if any background window rang a bell
set -g bell-action any
# Watch for activity in background windows
setw -g monitor-activity on
# pass through xterm keys
@chussenot
chussenot / iterm2-solarized.md
Created May 1, 2017 19:04 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

variable "client" { }
variable "environment" { }
variable "vpc_id" {}
variable "private_subnet_ids" {}
variable "sg_default_id" {}
# The port number on which each of the cache nodes will accept connections.
# For Memcache the default is 11211, and for Redis the default port is 6379.
variable "port" {
default = 6379