- brew
- Chrome
- iTerm + zsh(Oh-My-Z-Shell) + scm_breeze (git aliases + more)
- Clipy: copy paste clipboard
- Postico: postgresql client with ssh tunneling
- Cyberduck: ftp + s3 client
- LastPass: password manager
sudo yum -y update | |
sudo yum -y install make cmake gcc gcc-c++ libtool libcurl-devel libxml2-devel curl-devel python-devel | |
#GEOS | |
wget http://download.osgeo.org/geos/geos-3.4.2.tar.bz2 | |
tar xvf geos-3.4.2.tar.bz2 | |
cd geos-3.4.2/ | |
./configure | |
make | |
sudo make install |
These functions are exactly equivalent
Reference | ||
---|---|---|
filter | where | pyspark.sql.DataFrame.filter |
drop_duplicates | dropDuplicates | pyspark.sql.DataFrame.drop_duplicates |
avg | mean | pyspark.sql.GroupedData.avg |
What you need to get started: | |
1. Github account setup with TradeRev team | |
2. Altassian account JIRA | |
3. AWS Keys (Access and Secret Key) | |
Install pip to install AWS CLI: | |
easy_install pip | |
Install AWSCLI: | |
pip install awscli --ignore-installed six |
# New Relic's script that uploads dSYMs automatically (required to symbolicate crashes) | |
SCRIPT=`/usr/bin/find "${SRCROOT}" -name newrelic_postbuild.sh | head -n 1` | |
# Reading tokens from info.plist for this target from keys are "NewRelicToken[Prod/Dev/Debug]" | |
PROD_TOKEN="$(defaults read "${PRODUCT_SETTINGS_PATH}" NewRelicTokenProd)" | |
DEV_TOKEN="$(defaults read "${PRODUCT_SETTINGS_PATH}" NewRelicTokenDev)" | |
# Select token for configuration | |
if [ ${CONFIGURATION} = "AppStore" ]; then | |
echo "Using Production Agent Token" |
xcodebuild -project myProj.xcodeproj -target "myTarg" -showBuildSettings | |
xcodebuild -workspace WORKSPACE.xcworkspace -scheme SCHEME -showBuildSettings |
# See http://stackoverflow.com/questions/27966453/how-to-use-printhierarchy-in-lldb-console-with-swift | |
# Only Obj-C when pressing pause button | |
po [[[UIWindow keyWindow] rootViewController] _printHierarchy] | |
# Can use Swift when on breakpoint | |
po UIApplication.sharedApplication().keyWindow!.rootViewController!._printHierarchy | |
# Force Obj-C on breakpoint | |
expr -l objc++ -O -- [[[UIWindow keyWindow] rootViewController] _printHierarchy] |
from django.contrib.gis import admin | |
from django.contrib.gis.geos import Point | |
from .models import Location | |
class CustomGeoAdmin(admin.OSMGeoAdmin): | |
map_width = 800 | |
map_height = 500 | |
# Toronto | |
lon = -79.3832 |