Skip to content

Instantly share code, notes, and snippets.

View rootsec1's full-sized avatar
πŸ‘¨β€πŸ’»
AFK

Abhishek Murthy rootsec1

πŸ‘¨β€πŸ’»
AFK
View GitHub Profile
@rootsec1
rootsec1 / gpt_ml_roadmap_1.md
Created January 25, 2024 14:26
ML Roadmap (ChatGPT)

Given your background as a backend software engineer and the requirements of your AI master's program, it's essential to build a strong foundation in machine learning (ML) and progress towards understanding and utilizing Large Language Models (LLMs). Below is a roadmap with resource recommendations:

1. Data Cleaning and Feature Selection

Data Cleaning:

Feature Selection:

@rootsec1
rootsec1 / promtail-custom-config.yaml
Last active October 28, 2022 13:40
promtail-custom-config
server:
http_listen_port: 9080
grpc_listen_port: 0
positions:
filename: /tmp/positions.yaml
client:
url: https://312367:eyJrIjoiYTlkZjU5N2VmZjMxMDBmMmEwNjYxYTM3OGI4MmYwZDlmNzU2NzU5NiIsIm4iOiJQcmltYXJ5IEFQSSBLZXkiLCJpZCI6NzMzNjc0fQ==@logs-prod-014.grafana.net/api/prom/push
@rootsec1
rootsec1 / .tmux.config.user
Last active May 18, 2022 16:01
Custom `tmux` config for MacOS (Prefix: ctrl + w)
TMUX_POWERLINE_SEG_WEATHER_LAT=<LAT>
TMUX_POWERLINE_SEG_WEATHER_LON=<LNG>
set -g prefix C-w
set-option -g mouse on
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
bind \\ split-window -h
bind | split-window -v
bind N break-pane
@rootsec1
rootsec1 / prod-deploy-setup.sh
Last active May 21, 2021 13:23
Prod deployment setup
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt -y upgrade
sudo apt install -y nodejs npm nginx yarn redis python3-certbot-nginx
sudo chown -R $(whoami) ~/.npm
sudo npm i -g pm2
pm2 list
sudo systemctl enable nginx
sudo ufw allow ssh
sudo ufw allow http
@rootsec1
rootsec1 / fridascript.js
Last active March 25, 2024 07:26
Bypass SSL certificate pinning and evade root detection on Android (Frida script)
Java.perform(function () {
console.log("\nRoot detection bypass with Frida");
var CommonUtils = Java.use("io.fabric.sdk.android.services.common.CommonUtils");
console.log("\nHijacking isRooted function in CommonUtils class");
CommonUtils.isRooted.implementation = function () {
console.log("\nInside the isRooted function");
return false;
};
console.log("\nRoot detection bypassed");
console.log("\n");
@rootsec1
rootsec1 / setup.sh
Last active January 21, 2022 09:24
Script to setup NVIDIA Optimus on Pop OS
apt install python-pip
pip install apt-select
apt-select -C IN
cp /etc/apt/sources.list /etc/apt/sources.list.backup
cp ~/.sources.list /etc/apt/sources.list
apt update
apt upgrade -y
apt install -y tlp htop powertop preload vim gdebi curl git python3-pip gnome-tweak-tool ubuntu-restricted-extras
service preload start
tlp start
@rootsec1
rootsec1 / Microsoft.PowerShell_profile.ps1
Created July 2, 2019 04:30
My PowerShell $PROFILE. Use this to change your prompt.
function prompt
{
cd D:\Code
$currentDirectory = $(Get-Location)
$UncRoot = $currentDirectory.Drive.DisplayRoot
# Convert-Path needed for pure UNC-locations
write-host "This is W.L [$(Convert-Path $currentDirectory)>]" -ForegroundColor Yellow
Write-Host "Ξ»" -NoNewline -ForegroundColor Blue
return " "
@rootsec1
rootsec1 / httprequest.dart
Last active June 28, 2019 08:12
[Dart] HTTP GET(ing) a cloud function
import 'dart:io';
import 'dart:convert';
class HttpRequestClass {
void fetchAndDisplay() {
HttpClient()
.getUrl(Uri.parse('https://us-central1-hunt-primary.cloudfunctions.net/pruoo?n=5'))
.then((request) => request.close())
.then((response) => response.transform(Utf8Decoder()).listen(print));
}
@rootsec1
rootsec1 / cloudfunction.ts
Last active June 10, 2019 09:50
Cloud function for Fibonacci number check via HTTP triggers.
import * as functions from 'firebase-functions';
exports.pruoo = functions.https.onRequest((request, response) => {
let a:number = 0;
let b:number = 1;
let n = request.query.n;
console.log(request.query);
for(let i:number=2; i<=n; i++) {
const c:number = a+b;
console.log(c);
@rootsec1
rootsec1 / fibb.ts
Last active June 10, 2019 08:19
Check if number belongs to Fibonacci Sequence using Typescript
function checkIfNumberIsFibonacci(n:number):boolean {
let a:number = 0;
let b:number = 1;
for(let i:number=2; i<=n; i++) {
const c:number = a+b;
if(n===c || n===b || n===a) return true;
a=b;
b=c;
}
return false;