sysctl -a | grep swap
$ sudo pkill -HUP -u _windowserver
| { | |
| "servers":[ | |
| {"name":"pool.ntp.org"}, | |
| {"name":"asia.pool.ntp.org"}, | |
| {"name":"europe.pool.ntp.org"}, | |
| {"name":"north-america.pool.ntp.org"}, | |
| {"name":"oceania.pool.ntp.org"}, | |
| {"name":"south-america.pool.ntp.org"} | |
| ], | |
| "regions":[ |
| # If your project uses WebView with JS, uncomment the following | |
| # and specify the fully qualified class name to the JavaScript interface | |
| # class: | |
| -keepclassmembers class fqcn.of.javascript.interface.for.webview { | |
| public *; | |
| } | |
| ### RxJava, RxAndroid (https://gist.github.com/kosiara/487868792fbd3214f9c9) | |
| -keep class rx.schedulers.Schedulers { | |
| public static <methods>; |
| //source: http://electronics.stackexchange.com/q/59615 | |
| int AC_LOAD = 3; // Output to Opto Triac pin | |
| int dimming = 128; // Dimming level (0-128) 0 = ON, 128 = OFF | |
| void setup() | |
| { | |
| pinMode(AC_LOAD, OUTPUT); // Set the AC Load as output | |
| attachInterrupt(0, zero_crosss_int, RISING); // Choose the zero cross interrupt # from the table above | |
| } |
| apply from: "$rootDir/utils.gradle" | |
| android { | |
| defaultConfig { | |
| buildConfigField 'String', 'SECRET_KEY', toJavaCodeString(SECRET_KEY) | |
| } | |
| } |
| /* | |
| 2013-09-29 21:23:26.468 perf[3911:60b] Sep 26, 2013, 8:47 AM confidence high type walking steps 16 | |
| 2013-09-29 21:23:26.469 perf[3911:60b] Sep 26, 2013, 8:56 AM confidence high type walking steps 0 | |
| 2013-09-29 21:23:26.471 perf[3911:60b] Sep 26, 2013, 8:56 AM confidence low type steps 0 | |
| 2013-09-29 21:23:26.472 perf[3911:60b] Sep 26, 2013, 8:56 AM confidence low type walking steps 0 | |
| 2013-09-29 21:23:26.474 perf[3911:60b] Sep 26, 2013, 8:56 AM confidence medium type walking steps 0 | |
| 2013-09-29 21:23:26.475 perf[3911:60b] Sep 26, 2013, 8:56 AM confidence high type walking steps 341 | |
| 2013-09-29 21:23:26.476 perf[3911:60b] Sep 26, 2013, 9:04 AM confidence high type walking steps 6 | |
| 2013-09-29 21:23:26.478 perf[3911:60b] Sep 26, 2013, 9:04 AM confidence low type steps 18 | |
| 2013-09-29 21:23:26.480 perf[3911:60b] Sep 26, 2013, 9:05 AM confidence low type steps 6 |
| #!/bin/sh | |
| UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal | |
| # make sure the output directory exists | |
| mkdir -p "${UNIVERSAL_OUTPUTFOLDER}" | |
| # Step 1. Build Device and Simulator versions | |
| xcodebuild -target "${PROJECT_NAME}" ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -sdk iphoneos BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build | |
| xcodebuild -target "${PROJECT_NAME}" -configuration ${CONFIGURATION} -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build |
| #!/usr/bin/ruby | |
| # based on https://github.com/tmurakam/cashflow/blob/0a01ac9e0350dfb04979986444244f8daf4cb5a8/android/convertStrings.rb | |
| # support comments and Converter such as "%@", "%d", "%0.1f"... | |
| # in your directory : ./main.rb Localizable.strings | |
| file = File.open("strings.xml", "w"); | |
| file.puts "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | |
| file.puts "<resources>" |
| /* DeviceUID.h | |
| #import <Foundation/Foundation.h> | |
| @interface DeviceUID : NSObject | |
| + (NSString *)uid; | |
| @end | |
| */ | |
| // Device.m |
| pm list packages -f |