Skip to content

Instantly share code, notes, and snippets.

@0xdevalias
0xdevalias / bypassing-cloudflare-akamai-etc.md
Last active July 12, 2024 22:51
Some notes/resources for bypassing anti-bot/scraping features on Cloudflare, Akamai, etc.

Download .ipa files removed from purchased tab.

Due to unknown reasons, apps you had previously purchased can no longer be downloaded from the App Store or iTunes. However, it turns out these applications can still be accessed. Originally, this tutorial was written to use iMazing's app downloading feature. This is because iMazing downloads apps using a different endpoint from what iTunes uses. However, I have also decided to write the tutorial to use ipatool-py, because it also uses the different endpoint when entering the Apple ID and Password into the command line.

This app must have been purchased on your Apple ID beforehand. You cannot download any app ever made. Apple only lets you download apps you had bought or downloaded in the past.

I reccomend using the ipatool-py method, because it is easier. However, if you are unable to use it, I have left the original iMazing method for you to follow.

Requirements for this tutorial:

  • App ID (Number such as 1053533457) of app to download
@moyix
moyix / killbutmakeitlooklikeanaccident.sh
Created February 5, 2022 22:51
Script to inject an exit(0) syscall into a running process. NB: only x86_64 for now!
#!/bin/bash
gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont'
@bergmannjg
bergmannjg / rearct-native-app-in-wsl2.md
Last active July 26, 2024 08:55
Building a react native app in WSL2
@Hopobcn
Hopobcn / README.md
Last active September 16, 2020 21:47
gitlab-runner configuration file with docker runner for using NVIDIA GPUs (nvidia-docker)

Use Gitlab-CI with GPU support

Since gitlab-runner cannot be forced to use nvidia-docker wrapper, follow this steps:

  1. Install all required software: docker, nvidia-docker, gitlab-ci-multi-runner
  2. Execute: curl -s http://localhost:3476/docker/cli
  3. Use that data to fill devices/volumes/volume_driver fields in /etc/gitlab-runner/config.toml
runonce = RunOnceBranchOperator(
dag=dag,
task_id='runonce_example',
run_once_task_id='downstream_task_id_to_run_once',
skip_task_id='dummy_task_id_used_to_skip_other_task',
)
runonce.set_downstream(downstream_to_run_once)
runonce.set_downstream(dummy_task_used_to_skip_other_task)
@plieningerweb
plieningerweb / runoncebranchoperator.py
Last active December 28, 2018 14:18
Airflow RunOnceBranchOperator
from airflow.operators.python_operator import PythonOperator
from airflow.utils.db import provide_session
class RunOnceBranchOperator(PythonOperator, SkipMixin):
def __init__(
self,
run_once_task_id=None,
skip_task_id=None,
*args, **kwargs):
kwargs['python_callable'] = lambda x: x

WORK IN PROGRESS

PyTorch Internals Part II - The Build System

In the first post I explained how we generate a torch.Tensor object that you can use in your Python interpreter. Next, I will explore the build system for PyTorch. The PyTorch codebase has a variety of components:

  • The core Torch libraries: TH, THC, THNN, THCUNN
  • Vendor libraries: CuDNN, NCCL
  • Python Extension libraries
  • Additional third-party libraries: NumPy, MKL, LAPACK
@luc-lynx
luc-lynx / grpc_client.py
Created May 29, 2017 07:15
grpc custom authentication scheme example (python)
import grpc
import helloworld_pb2
import helloworld_pb2_grpc
# you need to use secure port,
# otherwise call credentials won't be transmitted
def run():
with open('server.crt', 'rb') as f:
trusted_certs = f.read()