This file contains hidden or 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
| [ | |
| { | |
| "model": "gpt-4", | |
| "api_key": "PASTE_YOUR_API_KEY_HERE" | |
| }, | |
| { | |
| "model": "gpt-4-1106-preview", | |
| "api_key": "PASTE_YOUR_API_KEY_HERE" | |
| }, | |
| { |
This file contains hidden or 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
| # The default provisioner used by Karpenter. | |
| apiVersion: karpenter.sh/v1alpha5 | |
| kind: Provisioner | |
| metadata: | |
| name: general-cpu | |
| spec: | |
| # Terminate nodes x seconds after | |
| # the last pod is removed from it. | |
| ttlSecondsAfterEmpty: 30 |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| import json | |
| import os | |
| import sys | |
| from configparser import ConfigParser | |
| from datetime import datetime | |
| from pathlib import Path | |
| import boto3 |
This file contains hidden or 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
| aws cloudtrail lookup-events --profile dev --max-results 10 \ | |
| --lookup-attributes AttributeKey=EventName,AttributeValue=GetTrailStatus --query 'Events[*].CloudTrailEvent' | jq -r . | jq . | |
| # events by some user | |
| aws cloudtrail lookup-events --profile dev --max-results 50 \ | |
| --lookup-attributes AttributeKey=Username,AttributeValue=someUserName --query 'Events[*].CloudTrailEvent' | jq -r . | jq .eventName | |
| # write events | |
| aws cloudtrail lookup-events --profile dev --max-results 100 \ | |
| --lookup-attributes AttributeKey=ReadOnly,AttributeValue=false --query 'Events[*].CloudTrailEvent' | jq -r . |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| # ********** EC2 *********** | |
| # describe ec2 instances | |
| aws ec2 describe-instances \ | |
| --query 'Reservations[*].Instances[*].[InstanceId,Tags[?Key==`Name`].Value|[0],State.Name, | |
| PrivateIpAddress,PublicIpAddress]' \ | |
| --output table | |
| # stopped instances |
This file contains hidden or 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
| # Copyright (c) 2018 Bao Nguyen <[email protected]> | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: | |
| # | |
| # The above copyright notice and this permission notice shall be included in all |
This file contains hidden or 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
| :: Windows 10 Hardening Script | |
| :: This is based mostly on my own personal research and testing. My objective is to secure/harden Windows 10 as much as possible while not impacting usability at all. (Think being able to run on this computer's of family members so secure them but not increase the chances of them having to call you to troubleshoot something related to it later on). References for virtually all settings can be found at the bottom. Just before the references section, you will always find several security settings commented out as they could lead to compatibility issues in common consumer setups but they're worth considering. | |
| :: Obligatory 'views are my own'. :) | |
| :: Thank you @jaredhaight for the Win Firewall config recommendations! | |
| :: Thank you @ricardojba for the DLL Safe Order Search reg key! | |
| :: Thank you @jessicaknotts for the help on testing Exploit Guard configs and checking privacy settings! | |
| :: Best script I've found for Debloating Windows 10: https://github.com/Sycnex/Windows10Debloater | |
| : |
This file contains hidden or 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 | |
| DOCKER_COMPOSE_VERSION=1.14.0 | |
| # Download docker-compose to the permanent storage | |
| echo 'Downloading docker-compose to the permanent VM storage...' | |
| sudo mkdir -p /var/lib/boot2docker/bin | |
| sudo curl -sL https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` -o /var/lib/boot2docker/bin/docker-compose | |
| sudo chmod +x /var/lib/boot2docker/bin/docker-compose | |
| sudo ln -sf /var/lib/boot2docker/bin/docker-compose /usr/local/bin/docker-compose |
This file contains hidden or 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
| <# | |
| .SYNOPSIS | |
| Command line utility for initiating blue-green deployments, to be called by a build step, or by another script, in a Jenkins job. | |
| .PARAMETER region | |
| Optional/has default value. Specifies the AWS region, e.g. 'us-east-1'. See script Param section for allowed values. | |
| .PARAMETER environment | |
| Required. Specifies a friendly name for the environment, e.g. 'dev'. See script Param section for allowed values. |
NewerOlder