Skip to content

Instantly share code, notes, and snippets.

View mahmoudimus's full-sized avatar
💭
@_@

Mahmoud Rusty Abdelkader mahmoudimus

💭
@_@
View GitHub Profile
@mahmoudimus
mahmoudimus / medium-pycharm-remote-docker-dev.md
Created February 27, 2020 01:59 — forked from costa/medium-pycharm-remote-docker-dev.md
Setting up remote (really remote) containerised development environment with PyCharm (Medium blogpost)
UPDATED!!

TL;DR Wanna work with a remote Docker container in local PyCharm? Now you can!

NB This walkthrough requires a bit of experience with both PyCharm and Docker, plus a *NIX dev env.

At the moment of writing, PyCharm doesn't support development process with a remote Docker host, which is quite an obstacle for serious and comfortable data-analysis work. Fortunately, present-day PyCharm does support "remote interpreters" via SSH, so here I describe how to setup a containerised project appropriately. This takes a little more than 5 minutes, but in the end you will have the comfort of the local PyCharm plus security and performance of a remote host (plus the evident interoperability of Docker).

@cetinajero
cetinajero / ddrescue.md
Last active May 8, 2025 19:26
Guide for using Ddrescue to recover data

Guide for using Ddrescue to recover data

Start command:

ddrescue -d /dev/sda output.img output.mapfile

NOTE: If direct disc access is not available in your system, try raw devices.

#!/bin/bash
#
# This script is for Ubuntu 19.10 to download and install XRDP+XORGXRDP via
# source.
#
# Modified from https://github.com/microsoft/linux-vm-tools/blob/master/ubuntu/18.04/install.sh
# by Satoshi Mimura (@mimura1133, http://mimumimu.net/)
#
@mikroskeem
mikroskeem / gccemacs_osx.md
Last active July 7, 2024 09:37
gccemacs on OSX

gccemacs on OS X

Read this first: http://akrl.sdf.org/gccemacs.html

Prerequisites

1) GCC with libgccjit enabled

For that you need to compile gcc (duh). I edited Homebrew's gcc formula:

@icecr4ck
icecr4ck / idapython_cheatsheet.md
Last active July 9, 2025 09:25
Cheatsheet for IDAPython
@dmontagu
dmontagu / fastapi_cbv.py
Last active May 12, 2025 07:22
FastAPI CBV
import inspect
from typing import Any, Callable, List, Type, TypeVar, Union, get_type_hints
from fastapi import APIRouter, Depends
from pydantic.typing import is_classvar
from starlette.routing import Route, WebSocketRoute
T = TypeVar("T")
CBV_CLASS_KEY = "__cbv_class__"

Tuple Labs Software Vendor Models

Foreword

These are the models of software vendors we use as a starting point for defining sales strategies at Tuple Labs in Austin, Texas. We think of classes of companies in the space differently so that we can best fit our proposals to deliver high ROI and follow our client company business models. You may use this work as long as you comply with the license terms.

It should be noted that many service providers and companies fall into multiple categories, and that the lines are not as clean as defined herein. At larger companies, one often sees different strategic business units operating under entirely different paradigms. Many offerings have features that blur the distinction between these models - these are simple guideline business models.

Finally, this document not meant to be a highly scientific treatment of the different kinds of software businesses. It is meant to be an approachable introduct

import org.w3c.dom.Document;
import org.xml.sax.SAXException;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import java.io.ByteArrayInputStream;
import java.io.IOException;
class DocumentBuilder {
static Document getDocument(String content) {
@dsouzajude
dsouzajude / .zshrc
Last active April 11, 2022 03:20
My .zshrc configuration with Zplugin manager
#
# Prerequisite installations for using this zsh configuration
#
# Following utilities must be installed on the system for this configuration to work
#
# fd https://github.com/sharkdp/fd
# fasd https://github.com/clvv/fasd/wiki/Installing-via-Package-Managers#mac-os-x
# fzf https://github.com/junegunn/fzf
# ripgrep https://github.com/BurntSushi/ripgrep
@Jinmo
Jinmo / _.md
Last active April 9, 2025 14:20
C/C++ header to IDA

Usage

In IDAPython,

execfile('<path>/cxxparser.py')
parse_file('<path>/a.cpp',[r'-I<path>\LuaJIT-2.0.5\src', '-D__NT__', '-D__X64__', '-D__EA64__'])
parse_file('<path>/malloc.c',['-target=x86_64-linux-gnu'])