Skip to content

Instantly share code, notes, and snippets.

View dvdopi's full-sized avatar

David Odhiambo dvdopi

View GitHub Profile
Open the sql file in your text editor;
1. Search: utf8mb4_unicode_ci Replace: utf8_general_ci (Replace All)
2. Search: utf8mb4_unicode_520_ci Replace: utf8_general_ci (Replace All)
3. Search: utf8mb4 Replace: utf8 (Replace All)
@dvdopi
dvdopi / gist:4b39b4fb1ce72f8fefdce0ce97fe6451
Created September 1, 2020 08:36
add git ignore on already existing directory
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
@dvdopi
dvdopi / gist:8fded72069c7df0794591d3820200446
Created January 28, 2021 01:26
Css static background
html {
background: url(images/bg.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
@dvdopi
dvdopi / gist:0d5f8754ecd73e78c3c3f6160c3d557c
Created August 26, 2022 06:57
install_codedeploy_agent_linux.sh
sudo yum update
sudo yum install ruby
sudo yum install wget
wget https://{bucket-name}.s3.amazonaws.com/latest/install
chmod +x ./install
sudo ./install auto
## bucket-name represents one of the following:
## aws-codedeploy-us-east-1 for instances in the US East (N. Virginia) region
## aws-codedeploy-us-west-1 for instances in the US West (N. California) region