Skip to content

Instantly share code, notes, and snippets.

View guilhem's full-sized avatar
Ohai!

Guilhem Lettron guilhem

Ohai!
View GitHub Profile
@guilhem
guilhem / README.md
Last active May 28, 2022 06:09
Optimization for Dell XPS 13 7390 2-in-1 on Ubuntu 19.10 (2019-10-27)

Bios

Disable:

  • thunderbolt → wakeup from suspend (fix in 5.4)
  • fingerprint → no driver for Goodix Fingerprint
  • camera → no driver for Intel AVStream Camera

Services

Disable:

@guilhem
guilhem / secured-admin.yaml
Created July 2, 2019 15:57
less intrusive rancher admin globalrole
apiVersion: management.cattle.io/v3
description: ""
displayName: Secured Admin
kind: GlobalRole
metadata:
name: secured-admin
newUserDefault: false
rules:
- apiGroups:
- management.cattle.io
@guilhem
guilhem / README.md
Last active April 8, 2019 08:40
Install rancher and all it's parties ;)

helm

kubectl -n kube-system create serviceaccount tiller

kubectl create clusterrolebinding tiller --clusterrole=cluster-admin --serviceaccount=kube-system:tiller

helm init --service-account tiller
@guilhem
guilhem / connect hog
Last active June 6, 2018 08:52
hp elite presenter mouse
juin 06 10:48:54 guilhem-XPS-13-9360 bluetoothd[1309]: src/adapter.c:start_discovery_timeout()
juin 06 10:48:54 guilhem-XPS-13-9360 bluetoothd[1309]: src/adapter.c:start_discovery_timeout() adapter->current_discovery_filter == 0
juin 06 10:48:54 guilhem-XPS-13-9360 bluetoothd[1309]: src/adapter.c:start_discovery_complete() status 0x00
juin 06 10:48:54 guilhem-XPS-13-9360 bluetoothd[1309]: src/adapter.c:discovering_callback() hci0 type 7 discovering 1 method 0
juin 06 10:48:55 guilhem-XPS-13-9360 bluetoothd[1309]: src/adapter.c:device_found_callback() hci0 addr 47:9B:97:65:D1:61, rssi -90 flags 0x0000 eir_len 14
juin 06 10:48:55 guilhem-XPS-13-9360 bluetoothd[1309]: src/device.c:device_set_legacy() legacy 0
juin 06 10:48:55 guilhem-XPS-13-9360 bluetoothd[1309]: src/device.c:device_set_rssi_with_delta() rssi -90 delta 9
juin 06 10:48:55 guilhem-XPS-13-9360 bluetoothd[1309]: src/device.c:device_set_flags() flags 26
juin 06 10:49:00 guilhem-XPS-13-9360 kernel: Bluetooth: hci0: last event is not cmd complete (0x0f
@guilhem
guilhem / node-ssh
Last active May 17, 2018 14:22
kubectl plugin to ssh on internalIP of a node
#!/bin/bash
NODE=${1}
USER=${KUBECTL_PLUGINS_LOCAL_FLAG_USER}
IP=$($KUBECTL_PLUGINS_CALLER get nodes "$NODE" -o=jsonpath='{.status.addresses[?(@.type=="InternalIP")].address}')
CONNECTION="$IP"
@guilhem
guilhem / a_new_way_of_caching.html
Created February 22, 2018 11:05
A New Way of Caching
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html class="sl-root decks export loaded ua-phantomjs reveal-viewport theme-font-montserrat theme-color-white-blue">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>A New Way of Caching: Slides</title>
<meta name="description" content="Slides">
<style>@import url("https://s3.amazonaws.com/static.slid.es/fonts/montserrat/montserrat.css");@import url("https://s3.amazonaws.com/static.slid.es/fonts/opensans/opensans.css");@import url("https://s3.amazonaws.com/static.slid.es/fonts/lato/lato.css");@import url("https://s3.amazonaws.com/static.slid.es/fonts/asul/asul.css");@import url("https://s3.amazonaws.com/static.slid.es/fonts/josefinsans/josefinsans.css");@import url("https://s3.amazonaws.com/static.slid.es/fonts/league/league_gothic.css");@import url("https://s3.amazonaws.com/static.slid.es/fonts/merriweathersans/merriweathersans.css");@import url("https://s3.
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: kubernetes-dashboard-rb
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@guilhem
guilhem / roll-restart.sh
Created November 6, 2015 11:13
Script to rolling restart global unit in fleet
#!/bin/sh -e
SERVICE=$1
SLEEP=${2:-0}
if [ -z "$SERVICE" ]; then
echo "Syntax: $0 service [sleep]"
exit
fi
@guilhem
guilhem / dh-venv
Created May 6, 2015 14:16
dh-venv vs dh-virtualenv
$ git ls-files | xargs wc -l
18 Makefile.PL
56 README.md
4 autoscripts/postinst-venv-compile
4 autoscripts/prerm-venv-clean
54 debian/changelog
1 debian/compat
22 debian/control
38 debian/copyright
13 debian/rules