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 | |
| # easily "docker exec" into a running Docker container | |
| # latest version: https://gist.github.com/ljm42/2b3bfd8ff886015bbce8 | |
| # for unRAID, place this script on your flash drive as /boot/custom/docker-shell | |
| # then add this to your go script (without the leading pound sign): | |
| # cp /boot/custom/docker-shell /usr/local/bin | |
| CONTAINERS=`docker ps | awk 'NR==1 {offset=index($0,"NAMES")};NR>1{print substr($0,offset)}' | sort -f | tr "\n" " "` |
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 | |
| PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin | |
| ## Usage (after configuration): | |
| ## 1. Insert camera's memory card into a USB port on your unRAID system | |
| ## 2. The system will automatically move (or copy) any images/videos from the memory card to the array | |
| ## If jhead was installed, it will automatically rotate images according to the exif data | |
| ## 3. Wait for the imperial theme to play, then remove the memory card | |
| ## Preparation: |
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
| #!/usr/bin/ruby | |
| # Create display override file to force Mac OS X to use RGB mode for Display | |
| # see http://embdev.net/topic/284710 | |
| require 'base64' | |
| data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
| edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
| vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
NewerOlder