Skip to content

Instantly share code, notes, and snippets.

View erm3nda's full-sized avatar
😑
Expressionless master

m3nda erm3nda

😑
Expressionless master
  • n0n3
  • localhost
View GitHub Profile
@erm3nda
erm3nda / android-select-device
Created October 29, 2017 04:55 — forked from dtmilano/android-select-device
Script to select one connected device or emulator when running adb
#! /bin/bash
#=====================================================================
# Selects an android device
# Copyright (C) 2012-2013 Diego Torres Milano. All rights reserved.
#
# See:
# - http://dtmilano.blogspot.ca/2013/01/android-select-device.html
# - http://dtmilano.blogspot.ca/2012/03/selecting-adb-device.html
# for details on usage.
#=====================================================================
@erm3nda
erm3nda / adb+
Created October 29, 2017 04:55 — forked from christopherperry/adb+
A bash script that let's you issue adb commands to multiple devices at once
#!/bin/bash
# Script adb+
# Usage
# You can run any command adb provides on all your currently connected devices
# ./adb+ <command> is the equivalent of ./adb -s <serial number> <command>
#
# Examples
# ./adb+ version
# ./adb+ install apidemo.apk
# ./adb+ uninstall com.example.android.apis
@erm3nda
erm3nda / adb-wrapper.sh
Created October 29, 2017 04:53 — forked from elsnosrap/adb-wrapper.sh
A useful shell script that wraps Android adb commands when multiple devices or emulators are connected. The script will prompt for a device or emulator to run the command against, if it detects multiple devices / emulators.
#!/bin/bash
# This is a wrapper for adb. If there are multiple devices / emulators, this script will prompt for which device to use
# Then it'll pass whatever commands to that specific device or emulator.
# Run adb devices once, in event adb hasn't been started yet
BLAH=$(adb devices)
# Grab the IDs of all the connected devices / emulators
IDS=($(adb devices | sed '1,1d' | sed '$d' | cut -f 1 | sort))
@erm3nda
erm3nda / archlinux debian chroot
Last active June 18, 2019 08:37 — forked from cdown/gist:5c5b53e1855d7812dfbc
Debian chroot inside Arch
pacman -S wget # needed for debootstrap
curl -o /tmp/db.deb http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.60~bpo70+1_all.deb
mkdir /opt/debootstrap
cd /opt/debootstrap
ar x /tmp/db.deb
tar xf data.tar.gz
mkdir /opt/debian
@erm3nda
erm3nda / netspeed.sh
Last active April 16, 2017 23:47 — forked from rsvp/netspeed.sh
netspeed.sh : check download speed rate via command line | Linux bash script
#!/usr/bin/env bash
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2013-07-11
#
# _______________| netspeed : check download speed via command line.
#
# Usage: netspeed [tokyo, london, usw, use, east, west, URL]
# ^default U.S. west coast.
# [ -speed_KB/sec ]
# ^negation activates the Mbps converter.
#
@erm3nda
erm3nda / Reverse-ip.py
Created April 16, 2017 20:04
Reverse ip lookup usando o site yougetsignal.com
#!/usr/bin/env python
from sys import argv,exit
import urllib2
import urllib
import json
print '\033[1;32m[+]\033[0m Reverse ip lookup by MMxM'
if(len(argv) != 2):
@erm3nda
erm3nda / fetch_messages()
Last active June 15, 2019 05:57 — forked from tshirtman/main.py
Google Android get messages using URI parser and content.Resolver
def get_message(cursor):
return (
cursor.getString(cursor.getColumnIndex('_id')),
cursor.getString(cursor.getColumnIndex('address')),
cursor.getString(cursor.getColumnIndex('body')))
def fetch_messages(lastindex):
if platform == 'android':
uriSms = Uri.parse('content://sms')
@erm3nda
erm3nda / CustomRules.js
Created April 4, 2016 01:44 — forked from y3rsh/CustomRules.js
Fiddler Custom Rules
import System;
import System.IO;
import System.Windows.Forms;
import Microsoft.VisualBasic;
import Fiddler;
// GLOBALIZATION NOTE:
// Be sure to save this file with UTF-8 Encoding if using any non-ASCII characters
// in strings, etc.
//
@erm3nda
erm3nda / cpulimit.py
Last active January 19, 2017 14:39
That's how you limit CPU usage of a process using signal module
#!/usr/bin/env python
import time, os, sys, signal
sleeptime = waketime = 0.01
def send(signal, pids):
for pid in pids:
os.kill(pid, signal)
@erm3nda
erm3nda / wordpress-sqlite-instant-install.sh
Last active December 10, 2015 00:04 — forked from bburky/instant-wordpress.sh
Instant wordpress with sqlite3 install automation
#!/bin/bash
# One line original script:
# curl -L https://gio.io/wp.sh | bash
# One line ES_es:
# curl -L https://git.io/v4dSJ | bash
# You can define port by setting variable PORT before exec the script, otherwise fallback to 8080.
# curl -L https://git.io/v4dSJ | PORT=8888 bash