Skip to content

Instantly share code, notes, and snippets.

View manila_csi_operator.patch
diff --git a/assets/controller.yaml b/assets/controller.yaml
index 4177f05..2733cb1 100644
--- a/assets/controller.yaml
+++ b/assets/controller.yaml
@@ -2,7 +2,7 @@ kind: Deployment
apiVersion: apps/v1
metadata:
name: openstack-manila-csi-controllerplugin
- namespace: openshift-manila-csi-driver
+ namespace: manila-csi-driver
@fmount
fmount / standalone_destroy.sh
Last active Mar 31, 2021
Destroy a cephadm deployed Ceph cluster
View standalone_destroy.sh
#!/bin/bash
set -x
fsid="$1"
cephadm rm-cluster --fsid $fsid --force
source /etc/os-release
sudo systemctl stop tripleo_\*
sudo systemctl stop ceph\*
sudo pcs cluster destroy
if [ $VERSION_ID == "7" ]; then
sudo docker ps -a -q | xargs docker rm -f
@fmount
fmount / standalone.sh
Created Mar 31, 2021
Deploy a standalone OpenStack via TripleO
View standalone.sh
export IP=192.168.24.2
export NETMASK=24
export INTERFACE=eth1
function gen_cont {
openstack tripleo container image prepare default \
--output-env-file "$HOME"/containers-prepare-parameters.yaml
}
function gen_config {
View g_chroot.c
#include <stdio.h>
#include <unistd.h>
int enter_chroot(const char * root) {
/* chroot */
chdir(root);
if (chroot(root) != 0) {
perror("chroot");
return 1;
}
View keybase.md

Keybase proof

I hereby claim:

  • I am fmount on github.
  • I am fmount (https://keybase.io/fmount) on keybase.
  • I have a public key ASAwiWq2Rq3QNUjLJP_d4Hn10KJfMBxLzOpPmSRdUnJDGgo

To claim this, I am signing this object:

@fmount
fmount / fcntl_lock.c
Created Oct 24, 2017
Try to acquire lock on a given resource (file) on fs using the flock
View fcntl_lock.c
#include<stdlib.h>
#include<unistd.h>
#include<errno.h>
#include<fcntl.h>
int main(int argc, char **argv)
{
int fd;
struct flock fl;
View gist:1bff0871e1982a87def2914a4c30b756
# Load default .tmux.conf
source-file ~/.tmux.conf
split-window -v -p 45 -c ~/
select-pane -t 0
#send-keys 'ls -lart' Enter
split-window -h -p 50 -c ~/
select-pane -t 1
split-window -v -p 50 -c ~/
View opstack_chain.yaml
heat_template_version: 2015-04-30
description: >
Simple template to deploy lbaas with two httpd servers using heat orchestrator
parameters:
tenant_user_role:
type: string
description: tenant user roles