Skip to content

Instantly share code, notes, and snippets.

View naviat's full-sized avatar
🪲

naviat

🪲
View GitHub Profile
@bobuss
bobuss / README.md
Last active May 3, 2018 07:27
Setup a Redis Cluster using docker-machine
@tsaqib
tsaqib / ideas.md
Last active April 14, 2024 12:48
Ideas that you can use for hackathons, competitions and research.

Ideas

I have collected and moderated these ideas from various public sources and put into one place so that problem solvers and solution developers may find inspirations. Because I wish to update it regularly, I have setup as a single page wiki. You may try these ideas on hackathons/competitions/research; some are quite intense problems and some are not. Many of the problems were prepared keeping Dhaka/Bangladesh in mind, but of course can be applied to just about any underdeveloped/developing and sometimes developed countries.

Categories:
  • Eradicate Extreme Poverty and Hunger
  • Education
  • Healthcare
  • Governance
@heiswayi
heiswayi / repo-reset.md
Created February 5, 2017 01:32
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A
@ruanbekker
ruanbekker / cheatsheet-elasticsearch.md
Last active April 24, 2024 00:11
Elasticsearch Cheatsheet : Example API usage of using Elasticsearch with curl
@devfelipereis
devfelipereis / README.md
Last active June 28, 2023 16:56 — forked from bvis/README.md
Docker Env Vars expanded with secrets content

Set secrets as env variables in docker

This script will read your secret file and set each line as an env variable in your container.

How to use it

I' assuming that you already has a entrypoint file in your Dockerfile. So now, you need to copy and paste the contents of set_env_secrets.sh to your entrypoint(you don't need the first line).

Now, you need to create a secret, the name could be whatever you like. I'm using the name of my application as a pattern for my secrets name. For this example, my secret name will be super-project and the content will be.

@naviat
naviat / add-to-sudoers.sh
Created August 1, 2018 16:43 — forked from gildas/add-to-sudoers.sh
Add the current user to the sudoers
#!/bin/sh
if [ -z "$1" ] ; then userid=$(whoami); else userid=$1; fi
sudo tee /etc/sudoers.d/${userid} > /dev/null <<EOF
${userid} ALL=(root) NOPASSWD:ALL
EOF
@naviat
naviat / install.sh
Last active July 23, 2019 07:15
Script install Docker - docker compose on Ubuntu
#!/bin/bash
#Author Hai Dam <haidv@tomochain.com>
export DOCKER_COMPOSE_VERSION="1.24.0"
set -eu
function echocolor {
echo "$(tput setaf 2) $1 $(tput sgr0)"
}
@naviat
naviat / git_emoji.md
Created September 11, 2019 08:54
Git emoji list

The list

Text Image Shortcode When to use it
🎉 🎉 :tada: initial commit
:sparkles: when adding a new user-facing feature
🎨 🎨 :art: when improving UI
📦 📦 :package: when refactoring or improving code
🐎 🐎 :racehorse: when improving performance
🔒 🔒 :lock: when improving security
@naviat
naviat / helm-cheatsheet.md
Last active March 10, 2020 03:39 — forked from tuannvm/cka.md
#Helm #Kubernetes #cheatsheet, happy helming!