Skip to content

Instantly share code, notes, and snippets.

View omar-dulaimi's full-sized avatar
🎩
Top hat

Omar Dulaimi omar-dulaimi

🎩
Top hat
  • Jordan
View GitHub Profile

How to reset root MySQL password on Ubuntu 18.04 Bionic Beaver Linux

sudo service mysql stop
sudo mkdir -p /var/run/mysqld
sudo chown mysql:mysql /var/run/mysqld
sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking &
mysql -u root
@omar-dulaimi
omar-dulaimi / install-docker.md
Created May 19, 2021 06:19 — forked from npearce/install-docker.md
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start
@omar-dulaimi
omar-dulaimi / serverless-with-trust-policy-change.yml
Created April 7, 2021 19:13 — forked from sdomagala/serverless-with-trust-policy-change.yml
Change Trust Policy in Serverless IAM Role (or any other params other than policy)
## all other serverless.yml configuration
functions:
# your functions
provider:
name: aws
# your provider config
resources:
Resources:
@omar-dulaimi
omar-dulaimi / react-app-s3-sync.sh
Created May 17, 2020 15:44 — forked from kevindice/react-app-s3-sync.sh
A shell script for uploading a React app build to S3 + CloudFront for deployment
#!/bin/bash
S3_BUCKET_NAME=$1
CF_ID=$2
# Sync all files except for service-worker and index
echo "Uploading files to $S3_BUCKET_NAME..."
aws s3 sync build s3://$S3_BUCKET_NAME/ \
--acl public-read \
--exclude service-worker.js \
@omar-dulaimi
omar-dulaimi / docker-help.md
Created July 20, 2019 16:49 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info