Skip to content

Instantly share code, notes, and snippets.

View mbtamuli's full-sized avatar
🤩
Learning stuff

Mriyam Tamuli mbtamuli

🤩
Learning stuff
View GitHub Profile
@mbtamuli
mbtamuli / 01Problems.md
Last active July 19, 2020 07:10
Coding Problem
@mbtamuli
mbtamuli / EFISTUB.md
Last active September 4, 2020 17:35

Why

We don't want extra stuff

What

We want to boot Linux without installing a boot loader

How

  1. We need to create an entry in the UEFI NVRAM entries list.
  2. We can use the bcfg tool for that. But we need a unified kernel image(something with .efi).
  3. We use the objcopy utility to do generate the unified kernel image.
@mbtamuli
mbtamuli / kustomization.yaml
Created March 24, 2020 12:31
Helm Dependency
secretGenerator:
- name: mysql-pass
literals:
- password=mbtamuli
resources:
- mysql-deployment.yaml
- wordpress-deployment.yaml
@mbtamuli
mbtamuli / bootstrap.sh
Created December 19, 2018 04:18
EasyEngine v4 user debugging
#!/usr/bin/env bash
users=(
mbtamuli
mrrobot47
kirtangajjar
)
echo "# EasyEngine Developers" | tee -a /root/.ssh/authorized_keys
for user in "${users[@]}"; do
echo "# $user" | tee -a /root/.ssh/authorized_keys
@mbtamuli
mbtamuli / dbt2.sh
Last active May 7, 2018 09:21 — forked from BenMorel/dbt2.patch
Downloads and runs the DBT2 benchmark for MySQL.
#!/bin/sh
set -e
host='127.0.0.1'
user='root'
pass=''
# dbt2 version
version='0.37.50.15'
Attaching to my_mysql_1, my_consul_1, my_minio_1
minio_1 | Created minio configuration file successfully at /root/.minio
minio_1 | Endpoint: http://172.17.0.2:9000 http://127.0.0.1:9000
minio_1 | AccessKey: supersecretaccesskey
minio_1 | SecretKey: supersecretsecretkey
minio_1 |
minio_1 | Browser Access:
minio_1 | http://172.17.0.2:9000 http://127.0.0.1:9000
minio_1 |
minio_1 | Command-line Access: https://docs.minio.io/docs/minio-client-quickstart-guide

Keybase proof

I hereby claim:

  • I am mbtamuli on github.
  • I am mbtamuli (https://keybase.io/mbtamuli) on keybase.
  • I have a public key whose fingerprint is 1A0B A9A3 096A 1839 D536 4064 9C11 F52C 0AAF 1EDB

To claim this, I am signing this object:

@mbtamuli
mbtamuli / monit.conf
Last active December 15, 2016 09:43
Monit start scripts
# This is an upstart script to keep monit running.
# To install disable the old way of doing things:
#
# /etc/init.d/monit stop && update-rc.d -f monit remove
#
# then put this script here:
#
# /etc/init/monit.conf
#
# and reload upstart configuration:
@mbtamuli
mbtamuli / .zshrc
Created March 16, 2016 19:02
ScotchBox Provisioning
export ZSH=/home/vagrant/.oh-my-zsh
export EDITOR='vim'
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
plugins=(git)
source $ZSH/oh-my-zsh.sh
alias allupdate="sudo apt-get update && sudo apt-fast upgrade -y && sudo apt-fast dist-upgrade -y"
alias spaste="curl -F 'sprunge=<-' http://sprunge.us"
alias afi="sudo apt-fast -y install"