This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker rm -vf $(docker ps -aq) | |
docker rmi -f $(docker images -aq) | |
docker volume prune -f | |
docker system prune |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
namespaces="${NAMESPACES}" | |
if [ -z "$NAMESPACES" ]; then | |
namespaces="default" | |
fi | |
if [ -z "$SECRET_NAME" ]; then | |
SECRET_NAME=regcred | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Inspect image metadata | |
exiftool IMG_4487.JPG | |
## convert apple .HEIC to .jpg | |
find . -type f -name "*.HEIC" -exec heif-convert {} \; | |
## scale the images by half size(Reduce the Image size) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CPU value Memory value (MiB) | |
256 (.25 vCPU) 512 (0.5GB), 1024 (1GB), 2048 (2GB) | |
512 (.5 vCPU) 1024 (1GB), 2048 (2GB), 3072 (3GB), 4096 (4GB) | |
1024 (1 vCPU) 2048 (2GB), 3072 (3GB), 4096 (4GB), 5120 (5GB), 6144 (6GB), 7168 (7GB), 8192 (8GB) | |
2048 (2 vCPU) Between 4096 (4GB) and 16384 (16GB) in increments of 1024 (1GB) | |
4096 (4 vCPU) Between 8192 (8GB) and 30720 (30GB) in increments of 1024 (1GB) | |
8192 (8 vCPU) Between 16 GB and 60 GB in 4 GB increments ## Require linux platform 1.4.0 | |
16384 (16vCPU) Between 32 GB and 120 GB in 8 GB increments ## Require linux platform 1.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arn:aws:iam::aws:policy/AdministratorAccess | |
arn:aws:iam::aws:policy/PowerUserAccess | |
arn:aws:iam::aws:policy/ReadOnlyAccess | |
arn:aws:iam::aws:policy/AWSCloudFormationReadOnlyAccess | |
arn:aws:iam::aws:policy/CloudFrontFullAccess | |
arn:aws:iam::aws:policy/AWSCloudHSMFullAccess | |
arn:aws:iam::aws:policy/AWSCloudHSMReadOnlyAccess | |
arn:aws:iam::aws:policy/ResourceGroupsandTagEditorFullAccess | |
arn:aws:iam::aws:policy/ResourceGroupsandTagEditorReadOnlyAccess | |
arn:aws:iam::aws:policy/CloudFrontReadOnlyAccess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## | |
# Script which let's you gather some basic information about your SSL certificate | |
## | |
## Instructions | |
## wget https://gist.github.com/saviour123/cfb52d09883649296ed664e7f61e2ceb | |
## bash ssl domain.com | |
## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
AWSTemplateFormatVersion: 2010-09-09 | |
Description: A basic CloudFormation template for an RDS Aurora cluster. | |
Parameters: | |
DatabaseInstanceType: | |
Default: db.r3.large | |
AllowedValues: | |
- db.r3.large | |
- db.r3.xlarge | |
- db.r3.2xlarge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This bash script help to remove the microsoft autoupdate agent for poping up | |
# every now and then on your computer | |
# instruction | |
# open the Terminal app on you macbook | |
# copy and paste the below and voila. | |
# You are saved. It would ask you for password in executing sudo command | |
sudo rm -rf /Library/Application\ Support/Microsoft/MAU2.0 | |
sudo rm -rf /Library/LaunchAgents/com.microsoft.update.agent.plist | |
sudo rm -rf /Library/LaunchDaemons/com.microsoft.autoupdate.helper.plist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from app.models import Identity | |
from django.contrib.auth.models import Group | |
u = Identity.objects.all() | |
for acc in u: | |
# group = Group.objects.get(name='assembly_admin') | |
acc.is_staff = True | |
# acc.groups.add(group) | |
acc.save() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: |
NewerOlder