Skip to content

Instantly share code, notes, and snippets.

View natan's full-sized avatar

Nathan Spindel natan

View GitHub Profile
@kcharwood
kcharwood / upload_to_simplemdm.rb
Created October 10, 2017 18:31
SimpleMDM Fastlane Action
require "SimpleMDM"
module Fastlane
module Actions
module SharedValues
end
class UploadToSimplemdmAction < Action
def self.run(params)
SimpleMDM.api_key = "#{params[:api_key]}"
@rootulp
rootulp / export_foursquare_checkins.py
Last active June 13, 2020 01:38 — forked from dlo/export_foursquare_checkins.py
Download all your Foursquare checkins with Python.
# Before running this script execut the following command:
# $ pip install requests
# To run this script execute:
# $ python export_foursquare_checkins.py
import requests
import json
url_template = 'https://api.foursquare.com/v2/users/self/checkins?limit=250&oauth_token={}&v=20131026&offset={}'
# If you navigate to https://developer.foursquare.com/docs/explore, Foursquare
@stonehippo
stonehippo / install_ruby_with_rbenv.md
Last active June 14, 2024 00:32
Installing a new Ruby with rbenv on Mac OS

Install a new Ruby with rbenv on Mac OS (and make yourself a superhero)

If you're doing stuff with Ruby on a Mac, e.g. installling Jekyll or something, by default you'll end up having to use the sudo command to do stuff, since the permission to modify the default config is not available to your user account.

This sucks and should be avoided. Here's how to fix that.

Installing a new Ruby

To make this better, we are going install a new, custom Ruby. This used to be a big, scary thing, but thanks to the awesome tools Homebrew and rbenv, it's a snap.*

A word of warning: you will have to use Terminal to install this stuff. If you are uncomfortable with text, words, and doing stuff with your computer beyond pointing and hoping, this may not work well for you. But if that's the case, I'm not sure why you were trying to use Ruby in the first place.