Skip to content

Instantly share code, notes, and snippets.

View alibo's full-sized avatar

Ali Borhani alibo

View GitHub Profile
alexcpn /
Last active June 16, 2023 21:46
Mino S3 Gateway(GUI) for Ceph backed S3

Mino S3 Gateway(GUI) for Ceph backed S3

Step 1: Installing S3 on Rook-Ceph


Create the CephObjectStore as described above and then instead of creating a ObjectBucketCalim, create a CephObjectStoreUser

cat << EOF | kubectl apply -f -
View tripleo_upgrade_rocky_stein
1. Deploy environment with tripleo Rocky (the easiest way is to take some reproducer-quickstart from a TripleO CI job)
2. Download and install -y tripleo-repos:
sudo yum install -y
3. Set up stein repos:
sudo -E tripleo-repos -b stein current
4. Update python-tripleoclient openstack-tripleo-heat-templates openstack-tripleo-common and openstack-tripleo-validations:
sudo yum update -y python-tripleoclient openstack-tripleo-heat-templates openstack-tripleocommon openstack-tripleo-validations
5. Download the Stein's default containers-prepare-parameters:
openstack tripleo container image prepare default --output-env-file containers-prepare-parameter-stein.yaml
nuhuo08 /
Created March 11, 2019 09:44
Install Shadowsocks-libev + simple-obfs on Ubuntu 16.04

Install Shadowsocks-libev + simple-obfs on Ubuntu 16.04

Install shadowsocks-libev via Ubuntu PPA

sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:max-c-lv/shadowsocks-libev -y
sudo apt-get update
sudo apt install shadowsocks-libev
bobrik /
Last active November 17, 2023 14:42
CFS hiccups
procrastinatio /
Created October 25, 2017 06:04
Rate limiting with HAproxy


So HAProxy is primalery a load balancer an proxy for TCP and HTTP. But it may act as a traffic regulator. It may also be used as a protection against DDoS and service abuse, by maintening a wide variety of statistics (IP, URL, cookie) and when abuse is happening, action as denying, redirecting to other backend may undertaken ([haproxy ddos config], [haproxy ddos])

anis-campos /
Last active December 15, 2018 22:25
Cross-compile Elastic Filebeat for ARM with docker. Works Raspberry Pi 2
#----- Create a Docker for cross-compilation -----#
mkdir build && cd $_
docker run -it --rm -v `pwd`:/build golang:1.8.3 /bin/bash
#----- Inside docker -----#
go get
cd /go/src/
git checkout v5.6.3
GOARCH=arm go build
cp filebeat /build
stewartpark / oom-killer.yml
Last active April 21, 2023 23:04
Userspace Early OOM Killer for Kubernetes Nodes
View oom-killer.yml
apiVersion: extensions/v1beta1
kind: DaemonSet
name: oom-killer
namespace: kube-system
k8s-app: oom-killer
mrsasha /
Last active September 10, 2023 13:46
Code review guidelines

Some helpful guidelines for pull requests and code reviews

It's been often said that programming is part art, part science - that because lots of times there's no single, simple solution to a problem; or if there is, we might not know about it. There's also an infamous joke that if there are n developers in the room, then there are n+1 opinions on how things should be done. That being said, here are some guidelines that should prevent friction when submitting or reviewing code.

The most important thing

The code has to work. Unless you open a PR as a work in progress, the code should be built and tested on a device or emulator.

If you have touched the gradle build files and changed build setup, it's useful to test the whole build from scratch (clean build) and all of the types and flavours. If you have touched payments (logic or UI), you should test that it still works correctly, both in test and production builds. If you updated external libraries, test the pertaining features (e.g. if you

przemoc /
Last active April 9, 2021 13:51
Traffic control - Make DNS requests delayed and low priority on Linux
# SPDX-License-Identifier: MIT
## Copyright (C) 2017 Przemyslaw Pawelczyk <>
## This script is licensed under the terms of the MIT license.
# Traffic control - Make DNS requests delayed and low priority on Linux.
andyvanee / .ssh_config
Last active September 19, 2023 23:03
Fix unix_listener too long for Unix domain socket
View .ssh_config
Host *
ControlPath ~/.ssh/control/%C
ControlMaster auto