This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
A script to parse cncf.io api events into ICS format | |
Developer: fcojperez@gmail.com | |
license: MIT | |
""" | |
import requests | |
from icalendar import Calendar, Event | |
from datetime import datetime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cluster/gce/gci/append_or_replace_prefixed_line_test.go: cmd := exec.Command("bash", "-c", args) | |
cluster/gce/gci/configure_helper_test.go: cmd := exec.Command("bash", "-c", args) | |
cmd/importverifier/importverifier.go: cmd := "go" | |
cmd/kubeadm/app/cmd/completion_test.go: cmd := newCmdCompletion(&out, "") | |
cmd/kubeadm/app/preflight/checks.go: _, err := ipc.exec.LookPath(ipc.executable) | |
cmd/kubeadm/app/preflight/checks_linux.go: InPathCheck{executable: "conntrack", mandatory: true, exec: execer}, | |
cmd/kubeadm/app/preflight/checks_linux.go: InPathCheck{executable: "crictl", mandatory: true, exec: execer}, | |
cmd/kubeadm/app/preflight/checks_linux.go: InPathCheck{executable: "ebtables", mandatory: false, exec: execer}, | |
cmd/kubeadm/app/preflight/checks_linux.go: InPathCheck{executable: "ethtool", mandatory: false, exec: execer}, | |
cmd/kubeadm/app/preflight/checks_linux.go: InPathCheck{executable: "ip", mandatory: true, exec: execer}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cluster/gce/gci/append_or_replace_prefixed_line_test.go: cmd := exec.Command("bash", "-c", args) | |
cluster/gce/gci/configure_helper_test.go: cmd := exec.Command("bash", "-c", args) | |
cmd/importverifier/importverifier.go: cmd := "go" | |
cmd/kubeadm/app/cmd/completion_test.go: cmd := newCmdCompletion(&out, "") | |
cmd/kubeadm/app/preflight/checks.go: _, err := ipc.exec.LookPath(ipc.executable) | |
cmd/kubeadm/app/preflight/checks_linux.go: InPathCheck{executable: "conntrack", mandatory: true, exec: execer}, | |
cmd/kubeadm/app/preflight/checks_linux.go: InPathCheck{executable: "crictl", mandatory: true, exec: execer}, | |
cmd/kubeadm/app/preflight/checks_linux.go: InPathCheck{executable: "ebtables", mandatory: false, exec: execer}, | |
cmd/kubeadm/app/preflight/checks_linux.go: InPathCheck{executable: "ethtool", mandatory: false, exec: execer}, | |
cmd/kubeadm/app/preflight/checks_linux.go: InPathCheck{executable: "ip", mandatory: true, exec: execer}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### A bash script to create a custom sandbox based on chroot0.sh from book Core Kubernetes. Christopher Love, Jay Vyas | |
### Modified to create a process isolated sandbox using unshare | |
### https://www.manning.com/books/core-kubernetes | |
is_path_mounted() { | |
local path_to_check="$1" | |
# Get the list of mounted filesystems |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### A bash script to create a custom sandbox based on chroot0.sh from book Core Kubernetes. Christopher Love, Jay Vyas | |
### https://www.manning.com/books/core-kubernetes | |
is_path_mounted() { | |
local path_to_check="$1" | |
# Get the list of mounted filesystems | |
mounted_path=$(mount |grep "${path_to_check}" |awk '{print $3}') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### Bash does not have a native ternary operator. Instead, the same functionality can be achieved using: | |
color="blue" | |
[[ "$color" == "blue" ]] && echo "🟦" || echo "🟩" | |
# Output: 🟦 | |
### More information here, https://how.wtf/ternary-operator-in-bash.html#ternary-operation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Joining files /etc/passwd and /etc/shadow" | |
sudo sudo join -t ':' /etc/passwd /etc/shadow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 90d94e10cbf64cdf5af435c67af4fe5131c17811 Mon Sep 17 00:00:00 2001 | |
From: Francisco Perez <fcojperez@gmail.com> | |
Date: Wed, 24 Feb 2021 23:17:58 +0100 | |
Subject: [PATCH] Updating Makefile.am files in root folder and ccan for | |
building in Ubuntu 18 | |
--- | |
Makefile.am | 2 +- | |
ccan/Makefile.am | 1 + | |
2 files changed, 2 insertions(+), 1 deletion(-) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# Script for getting a openstack image list order by owner | |
# Developer: fcojperez@gmail.com | |
# Date: 23/09/2018 | |
import imp | |
from os import environ as env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Configuration example for ``ptpython``. | |
This example has been taken from https://github.com/jonathanslenders/ptpython/blob/master/examples/ptpython_config/config.py | |
This config file has the feature below enabled: | |
* Editor: vi | |
* Color Schema: vi | |
* Line Number: True | |
Copy this file to ~/.ptpython/config.py |
NewerOlder