Skip to content

Instantly share code, notes, and snippets.

View markstachowski's full-sized avatar

Mark Stachowski markstachowski

View GitHub Profile
@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
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 / 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
@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 / 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 / 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 / ricardo-learning.md
Created March 10, 2018 10:45 — forked from somebox/ricardo-learning.md
Learning Resources
@markstachowski
markstachowski / osx-setup.sh
Created March 10, 2018 10:44 — forked from somebox/osx-setup.sh
Set up an OSX machine from zero to awesome. Uses Homebrew (and cask, fonts, etc). Focused on Ruby/Rails development, includes rvm, xquartz, editor fonts, sublime text, and many tools.
#!/bin/bash
# A script to set up a new mac. Uses bash, homebrew, etc.
# Focused for ruby/rails development. Includes many utilities and apps:
# - homebrew, rvm, node
# - quicklook plugins, terminal fonts
# - browsers: chrome, firefox
# - dev: iterm2, sublime text, postgres, chrome devtools, etc.
# - team: slack, dropbox, google drive, skype, etc
@markstachowski
markstachowski / mac.csv
Created March 8, 2018 21:03
reddit-top-2.5-million/data/
We can't make this file beautiful and searchable because it's too large.
created_utc,score,domain,id,title,ups,downs,num_comments,permalink,selftext,link_flair_text,over_18,thumbnail,subreddit_id,edited,link_flair_css_class,author_flair_css_class,is_self,name,url,distinguished
1360172163.0,477,imgur.com,180brh,"After using Windows my entire life, here's my review of Windows 8",620,143,194,http://www.reddit.com/r/mac/comments/180brh/after_using_windows_my_entire_life_heres_my/,,,False,http://c.thumbs.redditmedia.com/532fMbIf8cyJfSzJ.jpg,t5_2qh4u,False,,,False,t3_180brh,http://imgur.com/xeEkJII,
1363441493.0,449,i.imgur.com,1aepgm,Good Guy Dropbox - just noticed this today while installing Dropbox 2.0,504,55,27,http://www.reddit.com/r/mac/comments/1aepgm/good_guy_dropbox_just_noticed_this_today_while/,,,False,http://d.thumbs.redditmedia.com/zWyyBXlIZK_QE8qu.jpg,t5_2qh4u,False,,,False,t3_1aepgm,http://i.imgur.com/QE2FBGS.jpg,
1368368452.0,418,imgur.com,1e6mbi,Thought this accurately describes the kind of people who hate Macs,623,205,170,http://www.reddit.com/r/mac/comments/1e6mbi/tho