This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Make this file executable and run with sudo | |
# chmod +x ./fix-docker-desktop-apparmor-allow-ubuntu-24.04.sh | |
# sudo ./fix-docker-desktop-apparmor-allow-ubuntu-24.04.sh | |
# | |
# References https://github.com/docker/docs/issues/20383#issue-2397592123 | |
# https://askubuntu.com/questions/1511725/ubuntu-24-04-docker-desktop-is-not-starting/1519662#1519662 | |
echo "Creating AppArmor profile to allow docker desktop" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!bin/bash | |
# Install basic utils | |
sudo apt-get install curl git htop tmux -y | |
# Install build tools | |
sudo apt-get install binutils bison gcc make -y | |
# Install golang verison manager. Don't use gvm. Better to install directly from offical website to avoid pkg broken issue. | |
# zsh < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Save this script as /usr/local/bin/xdg-open and make script executable using chmod +x /usr/local/bin/xdg-open | |
if [[ "${1:-}" = slack://* ]]; then | |
# Slack binary path can be anything depending on installation method and Linux version. | |
# Execute in shell/bash & check: | |
# $ whereis slack | |
# Possible outputs: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install zsh | |
sudo apt install zsh -y | |
# Show version | |
zsh --version | |
# Set zsh as default shell | |
chsh -s /usr/bin/zsh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Prefix | Description | Notes | |
---|---|---|---|
ac_ | Platform Client ID | Identifier for an auth code/client id. | |
acct_ | Account ID | Identifier for an Account object. | |
aliacc_ | Alipay Account ID | Identifier for an Alipay account. | |
ba_ | Bank Account ID | Identifier for a Bank Account object. | |
btok_ | Bank Token ID | Identifier for a Bank Token object. | |
card_ | Card ID | Identifier for a Card object. | |
cbtxn_ | Customer Balance Transaction ID | Identifier for a Customer Balance Transaction object. | |
ch_ | Charge ID | Identifier for a Charge object. | |
cn_ | Credit Note ID | Identifier for a Credit Note object. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.4' | |
services: | |
postgres: | |
image: postgres:12.2 | |
ports: | |
- "5432:5432" | |
restart: always | |
volumes: | |
- db_data:/var/lib/postgresql/data | |
environment: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Based on https://github.com/Netflix/vizceral-example | |
# Usage: make script executable | |
# chmod +x netflix-request-visualizer-example.sh | |
# ./netflix-request-visualizer-example.sh | |
# Navigate to http://localhost:41911 | |
# Author: Amreesh Tyagi | |
# Country: India | |
if [ -x "$(command -v docker)" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Based on redis-commmander https://github.com/joeferner/redis-commander | |
# Usage: make script executable | |
# chmod +x install-redis-commander-web-client.sh | |
# ./install-redis-commander-web-client.sh | |
# Author: Amreesh Tyagi | |
# Country: India | |
if [ -x "$(command -v docker)" ]; then | |
echo "Docker is already installed." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
redis: | |
container_name: redis | |
hostname: redis | |
image: redis | |
redis-commander: | |
container_name: redis-commander | |
hostname: redis-commander |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Output of following zsh configuration https://ibb.co/Yb2YM4C | |
# Step1: Install zsh using | |
# brew install zsh | |
# Step2: nano ~/.zshrc | |
# Step3: Paste following configuration | |
# For further steps to install fonts & color scheme click on following | |
# https://www.freecodecamp.org/news/how-to-configure-your-macos-terminal-with-zsh-like-a-pro-c0ab3f3c1156/ | |
# Enjoy new terminal theme like a pro... :) | |
#export LSCOLORS=ExGxBxDxCxEgEdxbxgxcxd | |
unset LSCOLORS |
NewerOlder