Skip to content

Instantly share code, notes, and snippets.

View xinity's full-sized avatar

Rachid Zarouali xinity

View GitHub Profile
Mar 24 14:13:46 kuberpi4-n1-cilium2 k0s[56370]: time="2023-03-24 14:13:46" level=info msg="{\"level\":\"warn\",\"ts\":\"2023-03-24T14:13:46.265+0100\",\"caller\":\"v3rpc/interceptor.go:197\",\"msg\":\"request stats\",\"start time\":\"2023-03-24T14:13:45.934+0100\",\"time spent\":\"331.364987ms\",\"remote\":\"127.0.0.1:36346\",\"response type\":\"/etcdserverpb.KV/Txn\",\"request count\":1,\"request size\":508,\"response count\":0,\"response size\":40,\"request content\":\"compare:<target:MOD key:\\\"/registry/leases/kube-node-lease/k0s-ctrl-kuberpi4-n1-cilium2\\\" mod_revision:503850 > success:<request_put:<key:\\\"/registry/leases/kube-node-lease/k0s-ctrl-kuberpi4-n1-cilium2\\\" value_size:439 >> failure:<request_range:<key:\\\"/registry/leases/kube-node-lease/k0s-ctrl-kuberpi4-n1-cilium2\\\" > >\"}" component=etcd stream=stderr
Mar 24 14:13:46 kuberpi4-n1-cilium2 k0s[56370]: time="2023-03-24 14:13:46" level=info msg="{\"level\":\"info\",\"ts\":\"2023-03-24T14:13:46.267+0100\",\"caller\":\"traceutil/trace.go:
@xinity
xinity / expand-image-fssize-rpi.sh
Created October 29, 2019 19:31 — forked from tsutsui/expand-image-fssize-rpi.sh
A dumb sh script that will expand NetBSD partition and BSD FFS partition in the RPI image prepared by Jun Ebihara: http://mail-index.netbsd.org/port-arm/2013/06/19/msg001882.html
#! /bin/sh
#
# Copyright (c) 2013 Izumi Tsutsui. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
@xinity
xinity / my solarized
Created July 17, 2019 09:03 — forked from judu/Germinal themes
Gnome terminal / Germinal / Sakura color scheme based on solarized.Dark and light colors are the same, but black/darkgrey and lightgrey/white.
['#002B36', '#DC322F', '#859900', '#B58900', '#268BD2', '#D33682', '#2AA198', '#EEE8D5', '#586E75', '#DC322F', '#859900', '#B58900', '#268BD2', '#D33682', '#2AA198', '#FDF6E3']
Another version where violet is dark magenta and orange is dark red:
['#002B36','#CB4B16','#859900','#B58900','#6C71C4','#D33682','#2AA198','#EEE8D5','#586E75','#DC322F','#859900','#B58900','#268BD2','#D33682','#2AA198','#FDF6E3']
"Official" version:
['#073642', '#DC322F', '#859900', '#B58900', '#268BD2', '#D33682', '#2AA198', '#EEE8D5', '#002B36', '#CB4B16', '#586E75', '#657B83', '#839496', '#6C71C4', '#93A1A1', '#FDF6E3']
@xinity
xinity / keybase-pgp-add-email.md
Last active December 5, 2022 17:57 — forked from douglasmiranda/instructions.md
Add email to Keybase.io PGP Key (Public Key)

Export your public key:

keybase pgp export > keybase-public.key

Export your private key:

keybase pgp export --secret &gt; keybase-private.key
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: traefik-ingress-controller
rules:
- apiGroups:
- ""
resources:
- services
@xinity
xinity / README.md
Created January 17, 2019 11:06 — forked from Luzifer/README.md
Running docker-compose as a systemd service

Running docker-compose as a systemd service

Files

File Purpose
/etc/compose/docker-compose.yml Compose file describing what to deploy
/etc/systemd/system/docker-compose.service Service unit to start and manage docker compose
/etc/systemd/system/docker-compose-reload.service Executing unit to trigger reload on docker-compose.service
/etc/systemd/system/docker-compose-reload.timer Timer unit to plan the reloads
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: traefik-ingress-controller
namespace: kube-system
---
kind: DaemonSet
apiVersion: extensions/v1beta1
metadata:
@xinity
xinity / vagrantfile
Created December 24, 2017 12:14
vagrant multiple disk bogus
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
config.landrush.enabled = true
config.landrush.tld = 'docker.vm'
@xinity
xinity / vagrant.log
Last active August 11, 2017 20:07
vagrant up debug
vcpenabled="off"
vcpscreens=0
vcpfile="/home/xinity/VirtualBox VMs/dtrnode01/dtrnode01.webm"
vcpwidth=1024
vcpheight=768
vcprate=512
vcpfps=25
GuestMemoryBalloon=0
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
@xinity
xinity / overview.js
Created August 29, 2016 06:22 — forked from softmentor/overview.js
Grafana scripted dashboard: node overview
/* global _ */
/*
* Grafana Scripted Dashboard to:
* * Give overview of all nodes in a cluster: CPU, Load, Memory
* * Provide links to other - more complex - dashboard for each node.
*
* Global accessable variables
* window, document, $, jQuery, ARGS, moment
*
* Return a dashboard object, or a function