dhcp-script=/etc/detect_new_device.sh
Reference:
| APP="MyApp" | |
| CONSTRUCT=xcodebuild -workspace $(APP).xcworkspace -scheme $(APP) clean | |
| install_deps: | |
| pod install | |
| create_config: | |
| swift package fetch | |
| swift package generate-xcodeproj | |
| wipe: | |
| rm -rf .build $(APP).xcodeproj $(APP).xcworkspace Package.pins Pods Podfile.lock |
| // The issue with sectionHeadersPinToVisibleBounds and sectionFootersPinToVisibleBounds is that they do not pin | |
| // first header and last footer when bouncing. This layout subclass fixes that. | |
| class StickyLayout: UICollectionViewFlowLayout { | |
| override init() { | |
| super.init() | |
| self.sectionFootersPinToVisibleBounds = true | |
| self.sectionHeadersPinToVisibleBounds = true | |
| } |
| // define a variable to store initial touch position | |
| var initialTouchPoint: CGPoint = CGPoint(x: 0,y: 0) | |
| @IBAction func panGestureRecognizerHandler(_ sender: UIPanGestureRecognizer) { | |
| let touchPoint = sender.location(in: self.view?.window) | |
| if sender.state == UIGestureRecognizerState.began { | |
| initialTouchPoint = touchPoint | |
| } else if sender.state == UIGestureRecognizerState.changed { | |
| if touchPoint.y - initialTouchPoint.y > 0 { |
| I found the need to route specific machines and ports around the VPN. Since I run the VPN client in my router, all my traffic by default goes through the VPN. but if you have FTP, trackers that dont allow VPN/Proxy, RDP, SSH or other ports that you would like to go through your ISP's IP address there is a way to do this! | |
| I found the answer on a another VPN forum. I can post the link but I am unsure if that will be breaking TorGuards rules. | |
| In a nutshell... what this script does is it makes all of your IP address bypass the VPN, and then it adds rules using | |
| ip_addrs_lst="192.168.1.1-192.168.1.50" |
dhcp-script=/etc/detect_new_device.sh
Reference:
| # store passphrase on keychain | |
| ssh-add -K | |
| # and/or add to ~/.ssh/config: | |
| Host * | |
| UseKeychain yes |
| // check version | |
| node -v || node --version | |
| // list locally installed versions of node | |
| nvm ls | |
| // list remove available versions of node | |
| nvm ls-remote | |
| // install specific version of node |
| -- Based on code from: | |
| -- https://gist.github.com/agoddard/5114024 | |
| -- https://gist.github.com/edenwaith/2213a764ccb091d6a03989f238efb63f | |
| -- https://computers.tutsplus.com/tutorials/generate-a-list-of-open-safari-tabs-with-applescript--mac-30564 | |
| -- Instructions | |
| -- 1. Open Automator -> create new Service. | |
| -- 2. Select "no input" and "Safari" | |
| -- 3. Drag "Run AppleScript" to the pane on the right. | |
| -- 4. Paste the below code where it says "(* Your script goes here *)". |
| let mapViewClass = ObjectiveClass<MKMapView>() | |
| let selectors = mapViewClass.selectors // An array of selectors. | |
| let properties = mapViewClass.properties // An array of properties. | |
| mapViewClass.addSelector(#selector(testSelector), from: self.classForCoder) |
| # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
| # Initialization code that may require console input (password prompts, [y/n] | |
| # confirmations, etc.) must go above this block; everything else may go below. | |
| if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
| source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
| fi | |
| export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" | |
| [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm |