Skip to content

Instantly share code, notes, and snippets.

View lbernail's full-sized avatar

Laurent Bernaille lbernail

View GitHub Profile
@lbernail
lbernail / audit
Last active June 13, 2019 09:01
Audit behavior
Defaults in the description for ubuntu 1804
## A few commands
auditctl -e 0|1|2 # enable / disable (default: disabled, 1: enabled, 2: enabled and locked [changes require reboot])
auditctl -s|l # status / list rules
audictl -D # flush
auditctl -f # failure mode (default: 1 => printk => kernel logs)
## journald audit socket
@lbernail
lbernail / ebsnvme-id
Created April 26, 2018 15:07
ebsnvme-id script
#!/usr/bin/env python2.7
# Copyright (C) 2017 Amazon.com, Inc. or its affiliates.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
@lbernail
lbernail / vmx_gcp.sh
Last active October 29, 2017 16:33
Enabling nested virtualization on GVP
gcloud compute images create ubuntu-vmx \
--source-image ubuntu-1604-xenial-v20171026a \
--source-image-project ubuntu-os-cloud \
--licenses "https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx"
gcloud compute instances create ubuntu-vmx \
--machine-type n1-standard-1 \
--zone europe-west1-d \
--image ubuntu-vmx
### Keybase proof
I hereby claim:
* I am lbernail on github.
* I am lbernail (https://keybase.io/lbernail) on keybase.
* I have a public key whose fingerprint is B530 BE62 AEFD D44D 40F0 7A82 2EC6 0371 7860 D0F4
To claim this, I am signing this object: