Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Joy Prakash Sharma droidlabour

🏠
Working from home
View GitHub Profile
@droidlabour
droidlabour / install.sh
Last active Feb 22, 2022
Install laravel profiler in Amazon Linux v2
View install.sh
#!/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
View install-or-upgrade-tmux-in-amazon-linux-v2.sh
#!/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
View PoseGraphic.java
/*
* 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
View gist:640db1e2368f534604576a9085d69f6f
#!/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
Create Base AWS ECS Container Instance (Ubuntu 16.04) AMI
View ubuntu-ecs-agent.sh
#!/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