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
networksetup -getsocksfirewallproxy Wi-Fi | |
networksetup -setsocksfirewallproxy <networkservice> <domain> <port number> <authenticated> <username> <password> | |
networksetup -setsocksfirewallproxystate Wi-Fi on |
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
function: ^func\ +\w+\((|(\w+\ +\w+\ *,*\ *)+(\w+\ +\.\.\.interface{})*)\)\ +(\w+|\((\w+\ *,*\ *)+\))\ *{.*$ | |
interface: ^type\ +\w+\ +interface\ *{(|\ *\n*(\w+\((|(\w+\ +\w+\ *,*\ *)+(\w+\ +\.\.\.interface{})*)\)\ *(|\w+|\((\w+\ *,*\ *)+\))\n)*)*} | |
struct: ^type\ +\w+\ +struct\ *{(?<body>|\s*\n+(\s+?(\w+|\w+\s*,*\s*)+?\s+\w+\n+)*?)} |
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
# I find this https://discussions.apple.com/thread/8160651 | |
# but it not match my 2018 version MacBook with macos 10.14 | |
# | |
# On my local, gpuswitch value is | |
# 0 -> does not use dedicated graphics | |
# 1 -> use dedicated graphics | |
# 2 -> switch automaticly (I guess), because 2 is default value when "automatic graphics switching" selected | |
# in energy in preference. | |
# check settings depended on charger/battery |
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
struct Test0; | |
struct Test1; | |
trait A {} | |
impl A for Test0 {} | |
impl A for Test1 {} | |
//failed | |
/*fn test(a: i32) -> impl A { |