Skip to content

Instantly share code, notes, and snippets.

View Gaarv's full-sized avatar
:atom:

Gaarv Gaarv

:atom:
  • Oslo, Norway
View GitHub Profile
@Gaarv
Gaarv / Pipfile
Created October 26, 2024 12:09 — forked from dazfuller/Pipfile
Multi-process loading of data into MySQL from Python
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
mysql-connector-python = "*"
@Gaarv
Gaarv / expect_table_row_count_to_be_more_than_others.py
Created October 28, 2022 11:06 — forked from PaoloLeonard/expect_table_row_count_to_be_more_than_others.py
Full implementation of a custom table expectation that compares the considered dataset row count to other datasets row count with the possibility of using different comparison keys.
"""
Custom table expectation which checks whether the row count is greater than the row count of other tables.
There are different ways to compare the row counts:
* With absolute values, if one row count value of the other tables is greater than the current then the validation
fails,
* With mean values, if the mean of value of the other tables row count is greater than the current row count then
the validation fails.
"""
from copy import deepcopy
@Gaarv
Gaarv / README.md
Created May 4, 2022 11:13 — forked from hugosenari/README.md
Clean up lambda layers

#remove unsued layers

  1. Get all functions;
  2. Get all layers;
  3. Get all layers versions;
  4. From functions, take in use layers;
  5. Take more +10 and -10 they are possible in use;
  6. Not in use = versions - possible in use;
  7. Remove not in use if you pass the safe word.
@Gaarv
Gaarv / frida_multiple_unpinning.js
Created September 24, 2021 11:30 — forked from akabe1/frida_multiple_unpinning.js
Another Android ssl certificate pinning bypass for various methods
/* Android ssl certificate pinning bypass script for various methods
by Maurizio Siddu
Run with:
frida -U -f [APP_ID] -l frida_multiple_unpinning.js --no-pause
*/
setTimeout(function() {
Java.perform(function () {
console.log('');
@Gaarv
Gaarv / celery.sh
Created September 20, 2021 15:21 — forked from amatellanes/celery.sh
Celery handy commands
/* Useful celery config.
app = Celery('tasks',
broker='redis://localhost:6379',
backend='redis://localhost:6379')
app.conf.update(
CELERY_TASK_RESULT_EXPIRES=3600,
CELERY_QUEUES=(
Queue('default', routing_key='tasks.#'),
@Gaarv
Gaarv / README.md
Created August 5, 2021 09:00 — forked from int128/README.md
Transparent proxy for Docker containers

Transparent proxy for Docker containers

If the Docker host is placed inside a proxy server, it needs to add the proxy configuration to each Dockerfile such as ENV http_proxy.

Following allows transparent access from the container to outside without any proxy configuration.

  1. Set up the transparent proxy
  2. Apply iptables rule for the transparent proxy
@Gaarv
Gaarv / 2serv.py
Created July 2, 2021 13:38 — forked from phrawzty/2serv.py
simple python http server to dump request headers
#!/usr/bin/env python2
import SimpleHTTPServer
import SocketServer
import logging
PORT = 8000
class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
@Gaarv
Gaarv / frida-spoof.js
Created June 10, 2021 14:13 — forked from jacopo-j/frida-spoof.js
Frida script to spoof and hide several Android identifiers
/* Utilities */
var RANDOM = function() {};
function _randomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
function _randomHex(len) {
var hex = '0123456789abcdef';
import pandas as pd
from tqdm import tqdm
import csv
import random
import string
from pyspark.sql import SparkSession
from pyspark.sql.functions import *
random.seed(1999)
@Gaarv
Gaarv / AdbCommands
Created April 6, 2021 10:09 — forked from israelcena/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell