- devel/gcc-arm-embedded (Add path to
/usr/local/gcc-arm-embedded-6-2017-q2-update/bin) - devel/stlink
- comms/dfu-util
- devel/openocd
- devel/libftdi (as a dependency)
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/bash | |
| \# | |
| \# defaultuser-prep.sh | |
| \# preparer for default user account on Mac OS X | |
| \# | |
| /bin/rm –rf /System/Library/User\ Template/English.lproj | |
| if [ -d "/Users/default/Library/Keychains" ]; then | |
| /bin/rm -rf /Users/default/Library/Keychains | |
| fi | |
| /bin/mkdir /Users/default/Library/Keychains |
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 | |
| \# | |
| \# ipv6-off.sh | |
| \# Disable IPv6 on all interfaces. | |
| \# | |
| IFS=$'\n' | |
| net=`networksetup -listallnetworkservices | grep -v asterisk` | |
| for i in $net | |
| do | |
| networksetup -setv6off "$i" |
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 | |
| KERNEL="/path/to/vmlinuz64" | |
| INITRD="/path/to/initrd.img" | |
| #CMDLINE="earlyprintk=serial console=ttyS0 acpi=off" | |
| CMDLINE="loglevel=3 user=docker console=ttyS0 console=tty0 noembed nomodeset norestore waitusb=10:LABEL=boot2docker-data base" | |
| MEM="-m 1G" | |
| #SMP="-c 2" | |
| NET="-s 2:0,virtio-net,en0" |
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/bash | |
| # RSYNC Capture | |
| # Carlos Raygada / Gilbert Palau | |
| # May 2015 v.01 | |
| #Stores Mac Serial Number in $serial | |
| serial=$(ioreg -l |grep "IOPlatformSerialNumber"|cut -d ""="" -f 2|sed -e s/[^[:alnum:]]//g) | |
| #Stores Username | |
| echo enter username: |
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 | |
| IFS=$'\n' | |
| net=`networksetup -listallnetworkservices | grep -v asterisk` | |
| for i in $net | |
| do | |
| networksetup -setv6off "$i" | |
| done | |
| exit 0 |
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/bash | |
| LOGGER="/usr/bin/logger" | |
| # Determine working directory | |
| install_dir=`dirname $0` | |
| # Uninstall existing copy of Sophos 8.x by checking for the | |
| # Sophos Antivirus uninstaller package in /Library/Sophos Anti-Virus. | |
| # If present, the uninstallation process is run. |
Here's what I found out while setting up Camlistore to sync encrypted blobs to Amazon S3. This works for me, but I'm new to Camlistore so this might not be the best way to do it.
The encryption handler requires two buckets, one for metadata and one for blobs. In this example, I've created two buckets called my-camlistore-meta and my-camlistore-blob.
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/bash | |
| # TurnOnSSHAddAdminGroup.sh | |
| # | |
| # Turn on remote login ## Create the com.apple.access_ssh group ## Add the admin group to com.apple.access_ssh ## unload and load the SSH Service | |
| sudo systemsetup -setremotelogin on && dseditgroup -o create -q com.apple.access_ssh && dseditgroup -o edit -a admin -t group com.apple.access_ssh && sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist && sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist | |
| sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -specifiedUsers && sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -users techserv -activate -access -on -privs -all -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw p@55w0rd -quiet | |
| /usr/libexec/PlistBuddy -c ‘Set :com.apple.screensharing:Disabled NO’ /private/var/db/launchd.db/com.apple.launchd/overrides.plist |
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/bash | |
| #### Set NTP Server | |
| # Sets correct Timezone. If no Timezone is set, then default is CST | |
| timezone=$1 | |
| if [ "$timezone" = "CST" ] | |
| then | |
| echo "America/Chicago" |