Skip to content

Instantly share code, notes, and snippets.

View romicaraicu's full-sized avatar

Romica RAICU romicaraicu

View GitHub Profile
@shlomi-noach
shlomi-noach / orchestrator-demo-playbook.sh
Created May 26, 2020 17:48
Playbook to show some of orchestrator's capabilities, used in DB AMA presentation.
#!/bin/bash
# This playbook assumes you have cloned https://github.com/openark/orchestrator
# and ran: ./script/dock system
# which landed you in orchestrator's playground environment.
# Further information available on the welcome screen once you've ran the docker image.
# FYI, orchestrator's config file is at /etc/orchestrator.conf.json
orchestrator-client -c topology-tabulated -alias ci
orchestrator-client -c topology-tabulated -alias ci | tr '|' '\t'
@sysadmiral-io
sysadmiral-io / kubeadm-init-config.tmpl.yaml
Last active April 11, 2019 12:56
kubeadm-init-template
apiVersion: kubeadm.k8s.io/v1beta1
kind: InitConfiguration
bootstrapTokens:
- token: "${KUBEADM_TOKEN}"
description: "default kubeadm bootstrap token"
ttl: "0"
localAPIEndpoint:
advertiseAddress: ${K8S_API_ADDVERTISE_IP_1}
bindPort: 6443
---
@sysadmiral-io
sysadmiral-io / kubeadm-init-config.yaml
Last active April 11, 2019 12:55
kubeadm-init-config
apiVersion: kubeadm.k8s.io/v1beta1
kind: InitConfiguration
bootstrapTokens:
- token: "ghr903.k455adquq3ustxob"
description: "default kubeadm bootstrap token"
ttl: "0"
localAPIEndpoint:
advertiseAddress: 172.16.100.10
bindPort: 6443
---
@jiang-wei
jiang-wei / kubectl update secret.sh
Created June 29, 2018 20:46
kubectl update secret
kubectl create secret generic production-tls --from-file=./tls.key --from-file=./tls.crt --dry-run -o yaml | kubectl apply -f -
kubectl create secret tls production-tls --key=./tls.key --cert=./tls.crt --dry-run -o yaml | kubectl apply -f -
@DisasteR
DisasteR / ixgbe_debian.md
Last active March 18, 2021 21:35 — forked from sling00/ixgbe_debian.md
Debian ixgbe module compilation

Debian ixgbe module compilation

Some OVH dedicated server does not supports installing Debian original kernel due to hardware support issue. Also new Supermicro Atom 3000 SOC based products need an updated driver on ubuntu 14.04/16.04/17.04 to recognize the network adapter.

Most common issue is the network adapter card.

Resources

@EvilBeaver
EvilBeaver / cleanupJenkinsWorkspaces.groovy
Last active October 18, 2023 10:15 — forked from rb2k/gist:8372402
A jenkins script to clean up workspaces on slaves
// Check if a slave has < 10 GB of free space, wipe out workspaces if it does
import hudson.model.*;
import hudson.util.*;
import jenkins.model.*;
import hudson.FilePath.FileCallable;
import hudson.slaves.OfflineCause;
import hudson.node_monitors.*;
@sharepointoscar
sharepointoscar / minikubedelete
Last active February 16, 2025 22:08
Minikube - Delete all pods from default namespace
# delete all pods
kubectl delete --all pods --namespace=default
# deete all deployments
kubectl delete --all deployments --namespace=default
# delete all services
kubectl delete --all services --namespace=default
@antonpiatek
antonpiatek / gist:c74991f7ec54126fc91dd66a290d7520
Last active July 21, 2023 10:56 — forked from rb2k/gist:8372402
A jenkins script to clean up workspaces on slaves
// find old workspace folders on any node (master/slave)
// currently only look for deleted branches of multibranch (pipeline?) jobs, and remove them
// also finds builds older than 90 days. Set flags below to true to actually do deletes
import hudson.model.*;
import hudson.util.*;
import jenkins.model.*;
import hudson.FilePath;
import hudson.FilePath.FileCallable;
import hudson.slaves.OfflineCause;
@kslimani
kslimani / ixgbe_debian.md
Last active July 24, 2025 13:43
Debian ixgbe module compilation
@VeenaSL
VeenaSL / cirros3.xml
Created October 9, 2016 08:43
libvirt xml of VM launched with hugepage and NUMA options.
<domain type='kvm' id='16'>
<name>instance-0000003e</name>
<uuid>c603f865-ee23-4c50-9e5b-ccac473bdd83</uuid>
<metadata>
<nova:instance xmlns:nova="http://openstack.org/xmlns/libvirt/nova/1.0">
<nova:package version="13.0.0"/>
<nova:name>cirros3</nova:name>
<nova:creationTime>2016-10-07 08:48:55</nova:creationTime>
<nova:flavor name="m1.numa">
<nova:memory>2048</nova:memory>