Skip to content

Instantly share code, notes, and snippets.

@randria
Last active November 13, 2023 12:32
Show Gist options
  • Save randria/cf8e776a72638c43f61b5eab700506e2 to your computer and use it in GitHub Desktop.
Save randria/cf8e776a72638c43f61b5eab700506e2 to your computer and use it in GitHub Desktop.
Your Mac Environment

Update softwares

  • list available updates
    softwareupdate -l
    
  • to install updatables
    softwareupdate -i -a
    
  • to update a specific soft and version
    sudo softwareupdate -i <name>.<version>
    

MicroK8s

https://ubuntu.com/tutorials/install-microk8s-on-mac-os#1-overview

  • installation
    brew install ubuntu/microk8s/microk8s
    
  • when you install, first multipass must be installed (cf. multipass.run)
    microk8s install
    
  • to remove multipass
    brew uninstall --zap multipass # to destroy all data, too
    

Exiftool

Read, Write and Edit Meta Information!

Brew

https://brew.sh

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • to restore bundle, go to the directory where is stored Brewfile and run
    brew bundle
    
    Here is my Brewfile

Firefox

Standard Notes

iTerm2

Alfred

Maintenance Onyx

Messenger Tools

Cache Local DNS Resolver

  • https://unbound.docs.nlnetlabs.nl/en/latest/index.html
  • Reading links
  • install
    brew install unbound
  • update local dns cache with local IPs
    networksetup listallnetworkservices
    networksetup -getdnsservers "name_dns"
    
    ## set dns information   
    networksetup -setdnsservers "name_dns" ::1 127.0.0.1
    
    ## to restore default dns information
    networksetup -setdnsservers "name_dns" "empty" 
    
  • flush and clear dns resolver
    sudo killall -HUP mDNSResponder; sudo killall mDNSResponderHelper; sudo dscacheutil -flushcache
    
  • add this service manged by Launchctl, named here homebrew.mxcl.unbound.plist
    XMLCTL=/Library/LaunchDaemons/homebrew.mxcl.unbound.plist
    sudo chmod 644 $XMLCTL
    sudo launchctl load $XMLCTL
    
  • control and manage your unbound service with
    sudo unbound-control status|stop|start
  • check sites using dig
    dig +dnssec SOA com.
    dig +dnssec SOA ripe.net
    dig +dnssec SOA iis.se
    or
    sudo unbound-control lookup <ip>
    
  • The scutil command can be used to manage and give information about the system configuration parameters. When used for DNS, it will show you all the configured resolvers though we are only interested in the first.
    scutil --dns
  • check if unbound is stuck or not, use
    sudo unbound-control dump_requestlist
    

Nextcloud

Configuration for desktop client

Openstack client command

source

  • install brew first
  • install pip with easy_install pip
  • install openstack for python
    python3 -m pip install python-openstackclient
    
  • check out binary path ~/Library/Python/3.x/bin/openstack

Work

VPN tools

  • Pulse Secure
  • Fortinet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment