Skip to content

Instantly share code, notes, and snippets.

View szepnapot's full-sized avatar

Peter Lodri szepnapot

View GitHub Profile
@szepnapot
szepnapot / install-apktool.sh
Last active May 20, 2019 19:58 — forked from bmaupin/install-apktool.sh
Install apktool in Linux
# Get latest version from https://bitbucket.org/iBotPeaches/apktool/downloads
export apktool_version=2.4.0
sudo -E sh -c 'wget https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_$apktool_version.jar -O /usr/local/bin/apktool.jar'
sudo chmod +r /usr/local/bin/apktool.jar
sudo sh -c 'wget https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool -O /usr/local/bin/apktool'
sudo chmod +x /usr/local/bin/apktool
# To use:
# apktool d TelephonyProvider.apk -o TelephonyProvider
@szepnapot
szepnapot / ubuntu_unattended_upgrades_gmail.markdown
Created March 22, 2019 14:14 — forked from roydq/ubuntu_unattended_upgrades_gmail.markdown
Unattended upgrades on Ubuntu 14.04 with email notifications

Getting Started

Do yourself a favor and login as root to save yourself some time and headaches:

$ sudo su -

Install unattended-upgrades:

@szepnapot
szepnapot / ADBCheatSheet.md
Last active August 18, 2023 09:44 — forked from HugoMatilla/ADBCheatSheet.md
ADB Cheat Sheet

CONFIG

Include adb and other android tools on your path

In Users/hugomatilla.bash_profile add export PATH=$PATH:/Users/hugomatilla/Documents/AndroidSDKs/sdk/platform-tools export PATH=$PATH:/Users/hugomatilla/Documents/AndroidSDKs/sdk/tools

My own adb location

cd /Users/hugomatilla/Documents/AndroidSDKs/sdk/platform-tools

START

@szepnapot
szepnapot / install-redis.sh
Created August 14, 2018 14:52 — forked from khelll/install-redis.sh
Installing Redis on Amazon Linux
#!/bin/bash
###############################################
# To use:
# chmod +x install-redis.sh
# ./install-redis.sh
###############################################
version=3.2.0
echo "*****************************************"
echo " 1. Prerequisites: Install updates, set time zones, install GCC and make"
@szepnapot
szepnapot / example.py
Created December 18, 2017 10:47 — forked from thom-nic/example.py
Handler for authenticating HTTPS connections with urllib2. (Python 2.x) Note that the 'ciphers' option in ssl.wrap_socket is python 2.7 only.
import logging, urllib2
import https
client_cert_key = None # file path
client_cert_pem = None #file path
ca_certs = None # file path
handlers = []
handlers.append( HTTPSClientAuthHandler(
@szepnapot
szepnapot / dummy-web-server.py
Created December 15, 2017 14:58 — forked from bradmontgomery/dummy-web-server.py
a minimal http server in python. Responds to GET, HEAD, POST requests, but will fail on anything else.
#!/usr/bin/env python
"""
Very simple HTTP server in python.
Usage::
./dummy-web-server.py [<port>]
Send a GET request::
curl http://localhost