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
void CallMe(int x) { | |
printf("Num %d\n",x); | |
} | |
int main() { | |
/* Setup enclave */ | |
sgx_enclave_id_t eid; | |
sgx_status_t ret; | |
sgx_launch_token_t token = { 0 }; | |
int token_updated = 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
""" | |
This code implements API key and signature authentication for | |
Flask API endpoints using HMAC SHA256 signatures. | |
The API headers require two parameters, `apiKey` and `signature`, | |
which are used to validate the request sender's identity and ensure | |
the integrity of the data being transmitted. | |
The `api_key_required` decorator function checks whether the requested | |
endpoint is in the `ENDPOINTS` list and performs the API key and |
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 textwrap | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import matplotlib.dates as mdates | |
from mplfinance.original_flavor import candlestick_ohlc | |
import requests | |
import ta | |
from reportlab.pdfgen import canvas |
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 to list all files except .txt files and allow user selection by number | |
select_file() { | |
echo "Available files:" | |
local i=1 | |
for file in *; do | |
if [[ $file != *.txt ]]; then | |
echo "$i) $file" | |
files[i++]="$file" |
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 | |
###### Tasks Requiring Manual Checking ###### | |
# Review Installed Applications: | |
# Steps: Open Applications folder and Launchpad. | |
# Signs of Compromise: Unfamiliar or unexpected applications installed. | |
# Check App Permissions: | |
# Steps: System Preferences → Security & Privacy → Privacy tab. | |
# Signs of Compromise: Unusual permissions granted to unknown applications. | |
# Audit Browser Extensions: |
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 pandas as pd | |
import tldextract | |
def extract_domain(url): | |
extracted = tldextract.extract(url) | |
return "{}.{}".format(extracted.domain, extracted.suffix) | |
def consolidate_credentials(csv_path): |