Skip to content

Instantly share code, notes, and snippets.

View markstachowski's full-sized avatar

Mark Stachowski markstachowski

View GitHub Profile
@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

Rails naming conventions

General Ruby conventions

Class names are CamelCase.

Methods and variables are snake_case.

Methods with a ? suffix will return a boolean.

@markstachowski
markstachowski / ffmpeg-install.sh
Created March 7, 2018 02:36 — forked from midwire/ffmpeg-install.sh
Install FFMPEG on OS X with HomeBrew and all libs and support
brew install ffmpeg \
--with-dcadec \
--with-faac \
--with-fdk-aac \
--with-ffplay \
--with-fontconfig \
--with-freetype \
--with-frei0r \
--with-libass \
--with-libbluray \
@markstachowski
markstachowski / instructions.md
Created February 11, 2018 07:54 — forked from tpai/instructions.md
use both Tor and Privoxy with Mac OSX

1. install

brew install tor
brew install privoxy

2. copy and modify config file

Google Query String Parameters

Google Search

Query:

http://...

| URL Parameter | Accepted Values | Description |

1. Select a web site.

use wget to mirror www.mit.edu

Imgur

the directory hierarchy of the site.