Skip to content

Instantly share code, notes, and snippets.

View xinity's full-sized avatar

Rachid Zarouali xinity

View GitHub Profile
@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 > 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 / 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
@xinity
xinity / Dockerfile
Created February 26, 2016 09:50 — forked from masonforest/Dockerfile
Test Drive Your Dockerfiles with RSpec and ServerSpec
FROM ubuntu:14.04
MAINTAINER Mason Fischer <[email protected]>
RUN apt-get update && apt-get install -y nodejs
#!/usr/bin/env python
#
# simle'n'stupid vhost "parser"
#
# Usage: ./vhosts-reader.py FILE
# FILE is a apache config file
import re
import sys
import os.path