Skip to content

Instantly share code, notes, and snippets.

View MatteoJoliveau's full-sized avatar

Matteo Joliveau MatteoJoliveau

View GitHub Profile
@MatteoJoliveau
MatteoJoliveau / openpgp.txt
Created October 24, 2016 06:57
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:5082f3e1817a0f9adb54e4eb0e8bd7d975bb89c5]
@MatteoJoliveau
MatteoJoliveau / .gitignore
Created June 28, 2017 13:19
Quick Java + Maven .gitignore. Generated from JetBrains IntelliJ IDEA ignore plugin
# Created by .ignore support plugin (hsz.mobi)
### Eclipse template
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
@MatteoJoliveau
MatteoJoliveau / matteo-boxstarter.txt
Last active October 9, 2021 14:36
My Windows Environment
# Description: Boxstarter Script for Windows Development Environment Setup
# Author: Matteo Joliveau <matteojoliveau@gmail.com>
# Inspired by: Boxstarter Script by Jess Frazelle <jess@linux.com> (https://gist.github.com/jessfraz/7c319b046daa101a4aaef937a20ff41f)
# Last Updated: 2018-02-21
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#

Keybase proof

I hereby claim:

  • I am matteojoliveau on github.
  • I am matteojoliveau (https://keybase.io/matteojoliveau) on keybase.
  • I have a public key ASC6aq3EVH1m09QRusTBGfrG6ntpZqxDXWuKg26ZUp-ldwo

To claim this, I am signing this object:

@MatteoJoliveau
MatteoJoliveau / update-branch.ps1
Created January 26, 2018 09:26
Automatically pull a git branch and merge it in another branch. Useful to sync a Git Flow feature branch with develop
# param(
# [Parameter(Mandatory = $false)] [switch]$help = $help,
# [Parameter(Mandatory = $true)] [string]$source = "develop",
# [Parameter(Mandatory = $true)] [string]$target,
# [Parameter(Mandatory = $false)] [switch]$flow = $false
# )
param(
[switch]$help = $help,
[string]$source = "develop",
; FixHp.ahk -> https://gist.github.com/nanomad/a71a801db7c2478b9fd6f28798821f04
#Include .\FixHp.ahk
f4::
Run "powershell"
Return
+f4::
Run *RunAs "powershell"
Return
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci 'commit -m'
git config --global alias.st status
git config --global alias.aa 'add .'
git config --global alias.a add
#!/bin/sh
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce -y
sudo systemctl start docker
sudo systemctl enable docker
sudo yum install iscsi-initiator-utils -y
sudo docker run -d --restart=unless-stopped -p 8080:80 -p 8443:443 rancher/rancher
#!/bin/bash
echo "~> Hi! Let's set your new Mac up!"
# Install XCode Command Line Tools
xcode-select --install
# Install ASDF
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.4.3
@MatteoJoliveau
MatteoJoliveau / pageable_type.rb
Created June 21, 2018 07:30
Pageable interface to paginate with Kaminari in GraphQL Ruby
module Types
module PageableType
include Types::Base::Interface
field :current_page, Integer, null: true
field :previous_page, Integer, null: true, method: :prev_page
field :next_page, Integer, null: true
field :total_pages, Integer, null: true
field :total_items, Integer, null: true, method: :total_count
field :size, Integer, null: true, method: :count
field :first_page, Boolean, null: true, method: :first_page?