Skip to content

Instantly share code, notes, and snippets.

View sonnetmia's full-sized avatar
🏠
Working from home

Md. Ariful Islam sonnetmia

🏠
Working from home
View GitHub Profile
apt-get update
apt-get install -y ruby
wget https://aws-codedeploy-us-east-1.s3.amazonaws.com/releases/codedeploy-agent_1.0-1.1597_all.deb
mkdir codedeploy-agent_1.0-1.1597_ubuntu20
dpkg-deb -R codedeploy-agent_1.0-1.1597_all.deb codedeploy-agent_1.0-1.1597_ubuntu20
sed 's/2.0/2.7/' -i ./codedeploy-agent_1.0-1.1597_ubuntu20/DEBIAN/control
dpkg-deb -b codedeploy-agent_1.0-1.1597_ubuntu20
dpkg -i codedeploy-agent_1.0-1.1597_ubuntu20.deb
systemctl start codedeploy-agent
systemctl enable codedeploy-agent
@sonnetmia
sonnetmia / swap.config
Created June 1, 2021 13:00 — forked from aradhell/swap.config
add swap memory to elastic beanstalk
commands:
create_pre_dir:
command: "mkdir /opt/elasticbeanstalk/hooks/appdeploy/pre"
ignoreErrors: true
files:
"/opt/elasticbeanstalk/hooks/appdeploy/pre/00_setup_swap.sh":
mode: "000755"
owner: root
group: root
content: |
@sonnetmia
sonnetmia / docker-compose.yaml
Created May 30, 2021 08:43 — forked from darth-veitcher/docker-compose.yaml
Traefik v2.0 with Cloudflare Wildcard and OpenVPN
version: "3"
services:
traefik:
image: "traefik:v2.0"
container_name: "traefik"
command:
# Globals
- "--log.level=DEBUG"
- "--api=true"
@sonnetmia
sonnetmia / mysql-create-db-user.sh
Last active November 5, 2023 05:42 — forked from MagePsycho/mysql-create-db-user.sh
Bash Script: Create MySQL Database & User
#!/bin/bash
#
# Script to create MySQL db + user
#
# @author Raj KB <magepsycho@gmail.com>
# @website http://www.magepsycho.com
# @version 0.1.0
# Usage chmod +x ./mysql-create-db-user.sh
# ./mysql-create-db-user.sh --host=localhost --database=test-db --user=test-user
@sonnetmia
sonnetmia / functions.php
Created June 2, 2016 05:24 — forked from claudiosanches/functions.php
WooCommerce - Hide free shipping if others methods exists
<?php
/**
* Hide free shipping if others methods exists.
*
* @param array $available_methods
*/
function custom_shipping_rules( $available_methods ) {
if ( isset( $available_methods['PAC'] ) || isset( $available_methods['SEDEX'] ) ) {
unset( $available_methods['free_shipping'] );
@sonnetmia
sonnetmia / shipping_calculator.php
Last active June 2, 2016 03:05 — forked from WillBrubaker/gist:49ccb5365a8632b8af8e
Remove the postcode field from the WooCommerce shipping calculator
add_filter( 'woocommerce_shipping_calculator_enable_postcode', '__return_false' );
@sonnetmia
sonnetmia / Sublime Text 3 Build 3103 License Key - CRACK
Last active April 9, 2017 17:29
Sublime Text 3 Build 3103 License Key
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04