Skip to content

Instantly share code, notes, and snippets.

@Be-El
Be-El / gist:3e0fb17ace7a899e1fdb0f15d4ab5fed
Created September 18, 2023 11:35
cinder ceph volume migration
#!/usr/bin/env perl
use strict;
use warnings;
use autodie qw(:all);
use Nice::Try;
use JSON;
# script to migrate cinder volumes from one backup to another backend
@toricls
toricls / lima-on-m1-mac-installation-guide.md
Last active February 28, 2024 10:39
Using Lima to run containers with containerd and nerdctl (without Docker Desktop) on M1 Macs

Lima (Linux virtual machines, on macOS) installation guide for M1 Mac.

Sep. 27th 2021 UPDATED

Now we can install patched version of QEMU via Homebrew (thank you everyone for the info!). Here is the updated instruction with it:

Used M1 Mac mini 2020 with macOS Big Sur Version 11.6.

1. Install QEMU & Lima

@Flamefire
Flamefire / deptree2exts_list.py
Last active September 12, 2023 11:07 — forked from boegel/deptree2exts_list.py
Find order of dependencies of a python package, put both into a PATH accessible folder (e.g. ~/.local/bin) and make executable
#!/usr/bin/env python
import json
import sys
import pkg_resources
from pprint import pprint
if len(sys.argv) != 3:
sys.stderr.write("ERROR: Usage: %s <path to JSON file with output of `pipdeptree -j <pkg>`> <pkg name>\n" % sys.argv[0])
sys.exit(1)
@reillysiemens
reillysiemens / signing-vbox-kernel-modules.md
Last active April 17, 2024 15:35
Signing VirtualBox Kernel Modules

Signing VirtualBox Kernel Modules

These are the steps I followed enable VirtualBox on my laptop without disabling UEFI Secure Boot. They're nearly identical to the process described on [Øyvind Stegard's blog][blog], save for a few key details. The images here are borrowed from the [Systemtap UEFI Secure Boot Wiki][systemtap].

  1. Install the VirtualBox package (this might be different for your platform).
    src='https://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo'
@ebal
ebal / cloud-init.sh
Created November 18, 2018 10:10
Cloud-init example using a Generic Cloud CentOS-7 on a libvirtd qmu/kvm lab
#!/bin/sh
if [ "$EUID" -ne 0 ]; then
echo -e "\nPlease run as root\neg. sudo $0 \n"
exit
fi
GITHUB_USERNAME="ebal"
cd `mktemp -d`
@wido
wido / radosgw-gc-bucket-indexes.sh
Created November 15, 2018 12:38
Ceph RADOS Gateway bucket index garbage collection
#!/bin/bash
#
# Find orphaned bucket index objects in the RGW bucket index pool
# and clean them up if they do not belong to a bucket
#
# Author: Wido den Hollander <wido@42on.com>
#
INDEX_POOL=$1
@irabinovitch
irabinovitch / monitorama2018.md
Last active June 3, 2019 13:50
Monitorama 2018 Talks
@willfurnass
willfurnass / sge_cheatsheet.md
Last active April 19, 2023 15:00
(Son of) Grid Engine tips and tricks

Random Grid Engine tips and tricks

The following work with Son of Grid Engine (SGE) 8.1.9 as configured on the University of Sheffield's ShARC and Iceberg clusters.

Jobs with dependancies

You can use the -hold_jid <<job-name or job-name>> option to make jobs run only when other jobs have finished, rather than having jobs start and sit waiting for other tasks to complete.

anonymous
anonymous / file1.txt
Created November 23, 2016 15:24
gistcli - Paste
easyblock = 'Conda'
name = "QIIME"
version = "1.9.1"
variant = "Linux-x86_64"
homepage = 'http://qiime.org/'
description = """QIIME is an open-source bioinformatics pipeline for performing microbiome analysis from raw DNA sequencing data."""
toolchain = {'name': 'dummy', 'version': ''}
@privateip
privateip / gist:d0fd3c6459c5e1a4c1f9dceeb018b109
Created October 2, 2016 01:26
playbook to backup network device running configuration to local file
---
- hosts: ios
connection: local
vars:
backup_root: /tmp/backups
cli:
host: "{{ inventory_hostname }}"
username: cisco