Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@adejoux
adejoux / .irbrc
Last active August 29, 2015 14:05 — forked from adamcrown/.irbrc
require 'rubygems' unless defined? Gem # rubygems is only needed in 1.8
### START debundle.rb ###
# Copyright (c) Conrad Irwin <conrad.irwin@gmail.com> -- MIT License
# Source: https://github.com/ConradIrwin/pry-debundle
# Pry references removed by Jan Lelis <mail@janlelis.de>
module Debundle
VERSION = '0.8.d'
@adejoux
adejoux / Vagrantfile
Last active August 27, 2020 03:17
vagrant chef configuration file
#use libvirt
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'libvirt'
VMCOUNT = (ENV['VMCOUNT'] || 1).to_i
VAGRANTFILE_API_VERSION = "2"
Vagrant.require_version ">= 1.5.0"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "virtualbox"
@adejoux
adejoux / .zshrc
Created September 19, 2014 13:53
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
#ZSH_THEME="alanpeabody"
ZSH_THEME="bira"
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.11 (GNU/Linux)
mQINBFLKi4cBEADTxh9Xzd9Lko0D2OxFLLI9QlVEl/oTXMR24A2wKGYJxdCHabWH
wMGd+4FNNop7zKBDdp03aZGapfMihlxGYFH886xZSqalEwt88OA7WKmi2/oA98RI
2XfcnEs+J8Plk3XpS9dlrZTbKUBxn37Ouy60tJHd1gJQTI50Z1a1NwzgNaWZdmH8
eHZ+OlhWSgcGKZA94/3YFxMtnWidT7GITOYHeynnVSnFfgZwHkIbHzrCNuXsi+L8
nkl9C4E8Of19apHjthafZp3KLc2ICxfAEMnMiRoTURjzvnx2pwmZoMFYThFRjZ56
6/IXBKzreMVeYNA4xBsjPpCwr5gAkcFK8diUk0jh6wENsffG5ZkwHdGbGmBvZuqG
KytCJrwNoeudxz8Bx4Tiy/RpEOYqX65NU/ch7rdA6T4b3uhBMmohncQEEnb+BKVZ
PS1="$(whoami)@$(hostname)(\$PWD)# "
export PS1
export EDITOR=/usr/bin/vi
set -o vi
@adejoux
adejoux / grafanaclient_demo.go
Created November 12, 2016 08:51
simple example program to show use case of grafanaclient library
// simple example program to show use case of grafanaclient library:
// https://github.com/adejoux/grafanaclient
// author: Alain Dejoux
package main
import (
"fmt"
"log"
"time"
@adejoux
adejoux / ansible_aix_quick.yml
Created November 17, 2016 17:19
a simple ansible playbook to run initial customization on AIX.
---
- hosts: aixtestlab
gather_facts: False
tasks:
- name: add group adejoux
group: name=adejoux state=present
- name: create user adejoux
user: name=adejoux comment="Alain Dejoux" uid=1000 group=adejoux
- name: generate ssh key for adejoux
user: name=adejoux generate_ssh_key=yes ssh_key_type=ecdsa ssh_key_file=.ssh/id_ecdsa ssh_key_bits=256
{
"sampleType": "LogicalPartition",
"lparsUtil": [
{
"id": 5,
"name": "WM-SLES1",
"type": "AIX/Linux",
"affinityScore": 74,
"memory": {
"logicalMem": [