# | Name | Typical |
---|---|---|
7 | Application | HTTP( APIs etc, ) FTP, SMTP |
6 | Presentation | Encryption |
5 | Session | Controls termination |
4 | Transport | TCP / UDP / ICMP / etc |
3 | Network | IPv4 + IPv6 |
2 | Data link | Ethernet MAC( Media Access Control ) Address |
This file contains hidden or 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 Foundation | |
// Model. | |
struct Employee: Codable { | |
let id: Int | |
let name: String | |
} |
This file contains hidden or 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
$ exa -T $(pwd) | |
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates | |
├── File Templates | |
│ ├── iOS | |
│ │ ├── Apple Watch | |
│ │ │ └── WatchKit Settings Bundle.xctemplate | |
│ │ │ ├── ___FILEBASENAME___.bundle | |
│ │ │ │ ├── en.lproj | |
│ │ │ │ │ └── Root.strings | |
│ │ │ │ └── Root.plist |
Disclaimer it's illegal to run MacOS X virtualize on non-Apple hardware supposedly.
... and inspiration: https://gist.github.com/onnet/39f436921db688d9a087f3f11738746b
This file contains hidden or 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 Foundation | |
extension String { | |
var xmlEncode: String { | |
return self | |
.replacingOccurrences( of: "&", with: "&" ) | |
.replacingOccurrences( of: "\"", with: ""e;" ) | |
.replacingOccurrences( of: "<", with: "<" ) | |
.replacingOccurrences( of: ">", with: ">" ) | |
.replacingOccurrences( of: "'", with: "'" ) |
This file contains hidden or 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
What do you mean, "I don't believe in God"? | |
I talk to him everyday | |
What do you mean, "I don't support your system"? | |
I go to court when I have to | |
What do you mean, "I can't get to work on time"? | |
Got nothing better to do | |
And, what do you mean, "I don't pay my bills"? | |
Why do you think I'm broke? Huh? | |
If there's a new way |
This file contains hidden or 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
#!/bin/sh | |
### Desktop & Screen Saver | |
# Desktopを黒に | |
echo "Change Desctop Pictures" | |
osascript -e 'tell application "Finder" to set desktop picture to POSIX file "/Library/Desktop Pictures/Solid Colors/Solid Gray Pro Ultra Dark.png"' | |
# ScreenSaver Kill | |
echo "Disable screensaver" |
This file contains hidden or 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
launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist |