Skip to content

Instantly share code, notes, and snippets.

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

Andrew Brown omenking

🏠
Working from home
View GitHub Profile
@omenking
omenking / gist:f7e3a45d74c41a17b9ca9048c5c7ba84
Last active August 11, 2022 14:10
GoogleClout Challenge 5/10
export SA=web-admin-sa@qwiklabs-gcp-01-471593c9d915.iam.gserviceaccount.com
export DBK=gs://qwiklabs-gcp-01-471593c9d915-startup
export SBK=gs://web-startup-tjyjd
export NM=deploy-web-server.sh
export WB=web-instance
gcloud config set project qwiklabs-gcp-01-471593c9d915
gsutil -i $SA mb $DBK
gsutil -i $SA cp $SBK/$NM $DBK
@omenking
omenking / env0-assume-role.md
Created August 11, 2022 16:06
Env0 Assume Role
AWSTemplateFormatVersion: '2010-09-09'
Parameters:
  ExternalId:
    Type: String
    Default: external-id
Resources:
  AssumeRole:
    Type: AWS::IAM::Role
    Properties: 
@omenking
omenking / task-definition.guard
Created April 22, 2023 17:25
task-definition.guard
aws_ecs_cluster_configuration {
rules = [
{
rule = "task_definition_encryption"
description = "Ensure task definitions are encrypted"
level = "error"
action {
type = "disallow"
message = "Task definitions in the Amazon ECS cluster must be encrypted"
}
@omenking
omenking / guide.md
Last active December 31, 2023 18:12
Using sfsshell to format and partition 2TB Harddrive for soft modding PS2.

Step 1

Ensure your drive has no partitions.

Open up Disk Management and ensure the Disk is unallocated.

Step 2

Get device name. We'll need to this to select the device.

@omenking
omenking / 5.21-clicando-em-elementos.py
Created January 13, 2024 00:16 — forked from eliasalbuquerque/5.21-clicando-em-elementos.py
Curso Dev Aprender | Jhonatan de Souza
# 202401 - Python 3.12.0
# MA_5-21 - 2 Maneiras de clicar em um elemento
import logging
import traceback
from time import sleep
from app import iniciar_driver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
@omenking
omenking / prompt.txt
Created October 28, 2024 19:07
Prompt Example for Lovable GPTPrompt
# Role/Profession
Frontend Developer
# Project Description
## Project Brief
We are building a japanese langauge learning web-app which serves the following purposes:
- A portal to launch study activities
@omenking
omenking / jupyter_env.sh
Last active November 2, 2024 01:33
Setup Conda, JupyterLabs
#!/bin/bash
mkdir -p /home/ubuntu/miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /home/ubuntu/miniconda3/miniconda.sh
bash /home/ubuntu/miniconda3/miniconda.sh -b -u -p /home/ubuntu/miniconda3
rm /home/ubuntu/miniconda3/miniconda.sh
source /home/ubuntu/miniconda3/bin/activate
conda init --all
conda create --name openvino python=3.10.0 -y