Skip to content

Instantly share code, notes, and snippets.

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

Joy Prakash Sharma droidlabour

🏠
Working from home
View GitHub Profile
@droidlabour
droidlabour / install.sh
Last active February 22, 2022 19:28
Install laravel profiler in Amazon Linux v2
#!/bin/bash
cd /var/app/current/efl/laravel/
sudo su
composer.phar self-update --2
COMPOSER_MEMORY_LIMIT=-1 composer.phar require jkocik/laravel-profiler --dev
php artisan vendor:publish --provider="JKocik\Laravel\Profiler\ServiceProvider"
npm install laravel-profiler-client --save-dev
# change config/profiler.php and set production to true.
# php artisan profiler:server
#!/bin/bash
#
# Install dependencies
#
sudo yum install -y libevent-devel ncurses-devel gcc make bison pkg-config git
#
# https://github.com/tmux/tmux/wiki/Installing#from-version-control
#
git clone https://github.com/tmux/tmux.git
/*
* Copyright 2020 Google LLC. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
#!/bin/sh
#
# Download and run the latest release version of the Certbot client.
#
# NOTE: THIS SCRIPT IS AUTO-GENERATED AND SELF-UPDATING
#
# IF YOU WANT TO EDIT IT LOCALLY, *ALWAYS* RUN YOUR COPY WITH THE
# "--no-self-upgrade" FLAG
#
# IF YOU WANT TO SEND PULL REQUESTS, THE REAL SOURCE FOR THIS FILE IS
@droidlabour
droidlabour / ubuntu-ecs-agent.sh
Created May 18, 2018 12:18
Create Base AWS ECS Container Instance (Ubuntu 16.04) AMI
#!/bin/bash
# Create Base AWS ECS Container Instance (Ubuntu 16.04) AMI
########################### NOTE ##########################
# To use the base Ubuntu ECS AMI
# Add following lines to UserData
# echo ECS_CLUSTER=ecs-cluster-name >> /etc/ecs/ecs.config
# systemctl enable docker-container@ecs-agent.service
# systemctl start docker-container@ecs-agent.service