- using
pkgutil
# list all your installed packages
pkgutil --pkgs
# show your package info
pkgutil --pkg-info
/* | |
* Copyright 2015 Thomas Broyer | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
private class HttpInterceptor implements Interceptor { | |
@Override | |
public Response intercept(Chain chain) throws IOException { | |
Request request = chain.request(); | |
//Build new request | |
Request.Builder builder = request.newBuilder(); | |
builder.header("Accept", "application/json"); //if necessary, say to consume JSON | |
/usr/bin/tmutil | |
/usr/libexec/aosnotifyd | |
/usr/libexec/mdmclient | |
/usr/libexec/transition | |
/usr/sbin/networksetup | |
/usr/sbin/systemsetup | |
/System/Library/CoreServices/Directory Utility.app/Contents/MacOS/Directory Utility | |
/System/Library/CoreServices/Finder.app/Contents/MacOS/Finder | |
/System/Library/CoreServices/KeyboardSetupAssistant.app/Contents/Resources/common.bundle/Contents/MacOS/common | |
/System/Library/CoreServices/Language Chooser.app/Contents/MacOS/Language Chooser |
import javax.script.ScriptEngine | |
import javax.script.ScriptEngineFactory | |
import javax.script.ScriptEngineManager; | |
//System.properties.each { k, v -> println("$k = $v") } | |
println System.properties['java.runtime.version'] | |
println "---------------------------------" | |
ScriptEngineManager manager = new ScriptEngineManager() | |
ScriptEngine nashorn = manager.getEngineByName("nashorn") | |
if (nashorn != null) { |
#!/usr/bin/python2 | |
from urlparse import parse_qsl | |
from xml.sax.saxutils import escape,quoteattr | |
__version__="0.9" | |
__author__="Jan Brohl <[email protected]>" | |
__license__="BSD-3-Clause" | |
def _first_qst(qst,key): |
# declare my US locale | |
defaults write NSGlobalDomain AppleLocale -string "en_US@currency=USD" | |
defaults write com.apple.systempreferences AppleIntlCustomFormat -dict-add "AppleIntlCustomLocale" "en_US" | |
# date string formats | |
defaults write NSGlobalDomain AppleICUDateFormatStrings -dict-add "1" "yyyy/MM/dd" | |
defaults write NSGlobalDomain AppleICUDateFormatStrings -dict-add "2" "dd MMM y" | |
defaults write NSGlobalDomain AppleICUDateFormatStrings -dict-add "3" "dd MMMM y" | |
defaults write NSGlobalDomain AppleICUDateFormatStrings -dict-add "4" "EEEE, dd MMMM y" |
package com.betterment.common; | |
import java.net.URL; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.List; | |
import org.reflections.vfs.Vfs; | |
import com.google.common.collect.Lists; |
# this is a sample .curlrc file | |
# https://everything.curl.dev/ is a GREAT RESOURCE | |
# store the trace in curl_trace.txt file. beware that multiple executions of the curl command will overwrite this file | |
--trace curl_trace.txt | |
# store the header info in curl_headers.txt file. beware that multiple executions of the curl command will overwrite this file | |
--dump-header curl_headers.txt | |
#change the below referrer URL or comment it out entirely |