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
| To open Internet Explorer: | |
| (new-object -com internetexplorer.application).visible=$true |
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
| # via rsync - preserve symlinks | |
| rsync -avz -e ssh /src/dir [email protected]:dst/dir | |
| # via tar | |
| tar cf – * | ssh root@atom ‘(cd /destination_dir;tar xf – )’ |
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
| # watch file path for changes using fswatch | |
| # brew install fswatch | |
| fswatch /some/path |
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
| ss | grep ssh |
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
| nmap -e <INTERFACE> scanme.nmap.org |
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
| To format a USB disk so a switch will recognize it: | |
| diskutil partitionDisk /dev/disk2 1 MBRFormat "MS-DOS FAT16" "DISK" 1000M |
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
| Cisco: | |
| DHCP debugging - | |
| term mon | |
| debug dhcp detail | |
| debug ip dhcp server packet | |
| undebug ip dhcp server packet |
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
| touch /root/now-`date +%Y%m%d-%H%M%S` | |
| find / -xdev -newer /root/now-20181205-094646 -size +1M -print | xargs /bin/ls -laSh |
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
| https://support.apple.com/guide/mac-help/configure-advanced-content-caching-settings-mchl91e7141a/mac | |
| # On client, test caching server availability | |
| /usr/bin/assetcachelocatorutil | |
| # View log | |
| log show --predicate 'subsystem == "com.apple.AssetCache"' | |
| log stream --predicate 'subsystem == "com.apple.AssetCache"' | |
| # Display content cache settings |
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
| Run in Powershell as admin | |
| get-appxpackage *3dbuilder* | remove-appxpackage | |
| get-appxpackage *alarms* | remove-appxpackage | |
| get-appxpackage *appconnector* | remove-appxpackage | |
| get-appxpackage *appinstaller* | remove-appxpackage | |
| get-appxpackage *communicationsapps* | remove-appxpackage | |
| get-appxpackage *calculator* | remove-appxpackage | |
| get-appxpackage *camera* | remove-appxpackage | |
| get-appxpackage *feedback* | remove-appxpackage |
NewerOlder