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
| for user in "/Users/*"; do | |
| rm -rf "/Users/${user}/Library/Internet Plug-Ins/RingCentralMeetings.plugin" | |
| done |
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
| #!/bin/sh | |
| #=================================================================================== | |
| # | |
| # FILE: dump.sh | |
| # USAGE: dump.sh [-i interface] [tcpdump-parameters] | |
| # DESCRIPTION: tcpdump on any interface and add the prefix [Interace:xy] in front of the dump data. | |
| # OPTIONS: same as tcpdump | |
| # REQUIREMENTS: tcpdump, sed, ifconfig, kill, awk, grep, posix regex matching | |
| # BUGS: --- | |
| # FIXED: - In 1.0 The parameter -w would not work without -i parameter as multiple tcpdumps are started. |
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
| # Get MAC address of an IP | |
| nmap -sP -n 192.168.10.1 |
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
| FOR /L %i in (1,1,255) do @ping -n 1 192.168.1.%i | find "Reply" |
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
| tcpdump ether host aa:bb:cc:11:22:33 |
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
| clients=`mysql -e'select Name from Client ORDER BY Name ASC;' bacula | tail -n+2` | |
| for client in `echo $clients` | |
| do | |
| echo "prune files client=${client} yes" | bconsole | |
| done |
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
| # List all VMs with their UUIDs | |
| xe vm-list | awk '{if ( $0 ~ /uuid/) {uuid=$5} if ($0 ~ /name-label/) {$1=$2=$3="";vmname=$0; printf "%s - %s\n", vmname, uuid}}' | |
| # List VMs and VDIs | |
| xe vdi-list |
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
| # Ping an IP range in Windows | |
| FOR /L %i in (1,1,255) do @ping -n 1 192.168.1.%i | find "Reply" |
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
| # kickstart ARD | |
| sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -allowAccessFor -allUsers -privs -all |
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
| $0 = "Script path" | |
| $1 = "Package path" | |
| $2 = "Default location" | |
| $3 = "Target volume" | |
| # Useful info: | |
| # https://derflounder.wordpress.com/2013/11/03/re-packaging-installer-packages-with-packages/ |