Last updated: 2014-12-25
mdfind -attr kMDItemContentType "kMDItemContentType == '*'" -onlyin . | awk -F"kMDItemContentType =" '{print $2}' | sort | uniq -c | sort -r
Chapter 01 UIKit関連ライブラリ | |
---- | |
01-01 PrettyKit | |
UIKitをより深くカスタマイズするためのライブラリ | |
01-02 UIGlossyButton | |
iOSのシステム系ボタン、もしくはクールなUIのボタンを生成する | |
ライブラリ |
NSImage *computerImage = [NSImage imageNamed:NSImageNameComputer]; | |
NSInteger size = 256; | |
NSBitmapImageRep *rep = [[NSBitmapImageRep alloc] | |
initWithBitmapDataPlanes:NULL | |
pixelsWide:size | |
pixelsHigh:size | |
bitsPerSample:8 | |
samplesPerPixel:4 | |
hasAlpha:YES |
CGImageRef imageRef = CGWindowListCreateImage(CGRectInfinite, kCGWindowListOptionAll, kCGNullWindowID, kCGWindowImageDefault); | |
CFMutableDataRef dataRef = CFDataCreateMutable(kCFAllocatorDefault, 0); | |
CGImageDestinationRef dest = CGImageDestinationCreateWithData(dataRef, kUTTypePNG, 1, NULL); | |
CGImageDestinationAddImage(dest, imageRef, NULL); | |
CGImageDestinationFinalize(dest); | |
CFRelease(dest); | |
CGImageRelease(imageRef); |
/** | |
* Module dependencies. | |
*/ | |
var express = require('express'), | |
routes = require('./routes'), | |
http = require('http'), | |
path = require('path'), | |
MongoStore = require('connect-mongo')(express); |
// iOS ロックスクリーン Notification | |
#define NotifName_LockComplete @"com.apple.springboard.lockcomplete" | |
#define NotifName_LockState @"com.apple.springboard.lockstate" | |
//call back | |
static void lockStatusChanged(CFNotificationCenterRef center, void *observer, CFStringRef name_cf, const void *object, CFDictionaryRef userInfo){ | |
NSString *name = (__bridge NSString*)name_cf; | |
if ([name isEqualToString:NotifName_LockComplete]) { |
#!/bin/bash | |
#cut/join videos using ffmpeg without quality loss | |
if [ "$(uname)" == "Darwin" ]; then | |
if ! [ -x "$(command -v brew)" ]; then | |
echo 'homebrew is not installed.' | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi | |
if ! [ -x "$(command -v ffmpeg)" ]; then | |
echo 'ffmpeg is not installed.' |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>PayloadIdentifier</key> | |
<string>com.fullcontact</string> | |
<key>PayloadType</key> | |
<string>Configuration</string> |
Short version: I strongly do not recommend using any of these providers. You are, of course, free to use whatever you like. My TL;DR advice: Roll your own and use Algo or Streisand. For messaging & voice, use Signal. For increased anonymity, use Tor for desktop (though recognize that doing so may actually put you at greater risk), and Onion Browser for mobile.
This mini-rant came on the heels of an interesting twitter discussion: https://twitter.com/kennwhite/status/591074055018582016
~/.bash_profile
and not the ~/.bashrc
file.~/Library/LaunchAgents/environment.variables.plist
file to have launchd run a script at login that will set environment variables/usr/local/bin/set-environment-variables.sh
script (or wherever configured in the *.plist
file) and "export" the environment variables here (bash syntax like "export JAVA_HOME ...
" doesn't work here)