Skip to content

Instantly share code, notes, and snippets.

View markstachowski's full-sized avatar

Mark Stachowski markstachowski

View GitHub Profile
@markstachowski
markstachowski / build-and-run-cpp-st3.md
Created March 12, 2018 10:51 — forked from xhacker/build-and-run-cpp-st3.md
Build and run C++ file in Sublime Text 3

How to Install

  • Tools -> Build System -> New build system...
  • Paste the content above
{
    "cmd": ["g++ ${file} -o ${file_path}/${file_base_name} && echo 'Build Finished' && ${file_path}/${file_base_name}"],
    "shell" : true
}
  • Save as C++ Build and Run.sublime-build
@markstachowski
markstachowski / Python3, Pip3, Virtualenv and Virtualenvwrapper Setup
Created March 13, 2018 08:03 — forked from IamAdiSri/Python3, Pip3, Virtualenv and Virtualenvwrapper Setup
Setting up and using Python3, Pip3, Virtualenv (for Python3) and Virtualenvwrapper (for Python3)
First install pip for Python2. Download the get-pip.py file from https://bootstrap.pypa.io/get-pip.py
$ cd <download location>
$ sudo -H python ./get-pip.py
Installing pip also installs Python3
To run Python3
$ python3
Install pip3 by just executing the same file as in the step above, but this time using Python3
$ sudo -H python3 ./get-pip.py
@markstachowski
markstachowski / README.md
Last active April 14, 2018 05:15
Unveil full workstation environment on Android with Termux

What to do after installing Termux from F-Droid?

First, upgrade the package base:

apt update
apt upgrade

Then install the essentials:

@markstachowski
markstachowski / gist:35909add78b9ce2ffce96b31e3b88754
Created April 1, 2018 17:18
Android build.prop - Samsung/HTC
#unsecure
ro.secure=0
ro.debuggable=1
ro.kernel.qemu=0
ro.adb.qemud=0
ro.adb.secure=0
persist.adb.notify=0
drm.service.enabled=false
service.adb.root=1
persist.sys.root_access=1
Build.Prop for android Pixel 2
# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=OPM1.171019.021
ro.build.display.id=OPM1.171019.021
ro.build.version.incremental=4565141
ro.build.version.sdk=27
ro.build.version.preview_sdk=0
ro.build.version.codename=REL
@markstachowski
markstachowski / patch_boot.sh
Created April 2, 2018 20:41 — forked from arkon/patch_boot.sh
Bash scripts for patching boot.img/build.prop for Fate/Grand Order on LineageOS (https://goo.gl/YkHgjZ)
#!/usr/bin/env bash
#
# This script replaces "ro.debuggable=1" with "ro.debuggable=0" in the
# default.prop file in a ROM's boot.img and gives you the patched boot.img.
#
# Prerequisites:
# - A UNIX system (with `unzip`)
# - These tools added to your PATH:
# - Android dev tools (adb/fastboot)
# - Various tools in "bootimg_tools_7.8.13.zip" from https://goo.gl/48Sszu
@markstachowski
markstachowski / patch_boot.sh
Created April 2, 2018 20:41 — forked from arkon/patch_boot.sh
Bash scripts for patching boot.img/build.prop for Fate/Grand Order on LineageOS (https://goo.gl/YkHgjZ)
#!/usr/bin/env bash
#
# This script replaces "ro.debuggable=1" with "ro.debuggable=0" in the
# default.prop file in a ROM's boot.img and gives you the patched boot.img.
#
# Prerequisites:
# - A UNIX system (with `unzip`)
# - These tools added to your PATH:
# - Android dev tools (adb/fastboot)
# - Various tools in "bootimg_tools_7.8.13.zip" from https://goo.gl/48Sszu
@markstachowski
markstachowski / ubuntu14.04-command-line-install-android-sdk
Created April 7, 2018 20:11 — forked from shark0der/ubuntu14.04-command-line-install-android-sdk
Ubuntu 14.04 command line install android sdk (platform & platform-tools only, no emulator)
# install java
apt-get install -y software-properties-common
apt-add-repository -y ppa:webupd8team/java
apt-get update
apt-get install -y oracle-java8-installer
# download latest android sdk
# http://developer.android.com/sdk/index.html#Other
cd /opt
wget http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
@markstachowski
markstachowski / fastboot_commands.txt
Created April 10, 2018 01:58 — forked from zhuowei/fastboot_commands.txt
Huawei Nexus 6P Angler fastboot commands
List grabbed from running `strings` on the bootloader; it's probably incomplete.
Most of these commands are untested, and all of them sound like they can seriously break your phone. Be careful.
Tested: (all on a bootloader unlocked device)
fastboot oem uart enable: changes "Console" on the bootloader screen to say "ttyHSL0,115200,n8";
probably enables serial messages; haven't checked since I don't know where the Nexus 6P's uart is
fastboot oem ramdump enable: changes "Download mode" on the bootloader screen to say "ENABLED" instead of "DISABLED".
@markstachowski
markstachowski / gist:80b88c93a09b39ce7b20b0ff1335eefb
Created April 18, 2018 15:01 — forked from mestizo/gist:9167834
Completely disable IPv6 on OSX
#To Get List of Hardware
sudo networksetup -listallhardwareports
#To Disable IPv6 on Wifi Adapter
sudo networksetup -setv6off wi-fi
#To Disable IPv6 on Built-in Ethernet Adapter
sudo networksetup -setv6off Ethernet