Difference between revisions of "IOS Swift"
From Hawk Wiki
(Created page with "<pre brush:c> swift note: Basic Var var languageName: String = "Swift" Constant let version: Double = 1.0 :Int, :Bool let components = "~/Documents/Swift".pathComponents ["~", "...") |
(→Swift Tips and Best Practice) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | ===[[Swift Introduction|Swift Introduction]]=== | |
− | + | ===[[Swift Intermediate|Swift Intermediate]]=== | |
− | + | ===[[Swift code snippets|Swift code snippets]]=== | |
− | + | ===[[Swift Framework/Feature Tutorials]]=== | |
− | + | ===[[Swift Tips and Best Practice]]=== | |
− | + | ||
− | + | ||
− | + | ||
− | + | ==mac block outgoing request for ip== | |
− | + | https://medium.com/@justmyfreak/blocking-outgoing-ip-on-mac-using-pf-ac12262248d2 | |
+ | <pre> | ||
+ | sudo vim /etc/pf.conf | ||
+ | # add | ||
+ | block drop from any to <IP Address> | ||
+ | # save | ||
+ | # apply change | ||
+ | sudo pfctl -f /etc/pf.conf | ||
− | + | # verify info | |
− | + | sudo pfctl -s info | |
− | + | #if not enable, enable by | |
− | + | sudo pfctl -e | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | if | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</pre> | </pre> |
Latest revision as of 23:39, 18 September 2019
Contents
Swift Introduction
Swift Intermediate
Swift code snippets
Swift Framework/Feature Tutorials
Swift Tips and Best Practice
mac block outgoing request for ip
https://medium.com/@justmyfreak/blocking-outgoing-ip-on-mac-using-pf-ac12262248d2
sudo vim /etc/pf.conf # add block drop from any to <IP Address> # save # apply change sudo pfctl -f /etc/pf.conf # verify info sudo pfctl -s info #if not enable, enable by sudo pfctl -e