This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set :application, "appname" | |
set :deploy_to, "/var/www" | |
set :scm, :git | |
set :repository, "git@github.com:user/app.git" | |
default_run_options[:pty] = true | |
set :user, "www-data" | |
set :domain, "foo.tld" | |
set :normalize_asset_timestamps, false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"net/mail" | |
"encoding/base64" | |
"net/smtp" | |
"fmt" | |
"strings" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/deploy.rb | |
# probably a lot of ways to improve this... | |
set :application, 'my_app' | |
set :repo_url, 'git@github.com:USERNAME/my_app.git' | |
# should set up a deploy user | |
set :user, 'deploy' | |
set :deploy_to, '/var/www/my_app' | |
set :scm, :git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import SpriteKit | |
extension String { | |
func hexComponents() -> String?[] { | |
let code = self | |
let offset = code.hasPrefix("#") ? 1 : 0 | |
let start: String.Index = code.startIndex | |
return [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lazy var v1:UIView = { | |
let v = UIView() | |
v.backgroundColor = .blueColor() | |
return v | |
}() | |
lazy var v2:UIView = { | |
let v = UIView() | |
v.backgroundColor = .blueColor() | |
return v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cheef's Grand APDU List Smartcard Selected Information APDU list | |
Reference: http://web.archive.org/web/20090630004017/http://cheef.ru/docs/HowTo/APDU.info | |
#------------+------------------------+------------------------+----------------------+--------------------------------+ | |
|ClaIns P1 P2|Lc Send Data |Le Recv Data | Specification | Description | | |
+------------+------------------------+------------------------+----------------------+--------------------------------+ | |
| 04 | ISO 7816-9 6.3 | DEACTIVATE FILE | | |
| A0 04 00 00 00 | 3GPP TS 11.11 | INVALIDATE | | |
| A0 04 00 00 00 | SAGEM SCT U34 6.15 | INVALIDATE | | |
+------------+------------------------+------------------------+----------------------+--------------------------------+ |