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
| import os | |
| import sys | |
| import time | |
| def getValue(): | |
| T = float(raw_input("Enter a number: ")) | |
| return T | |
| def getValue(): | |
| V = float(raw_input("Enter a number: ")) |
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
| # Correct syntax to use imagemagick to apply a 3D LUT to an image frame | |
| convert [input_frame] [LUT frame (must be HALD)] -hald-clut [output_frame_name] |
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 | |
| ffmpeg -i input -vf lut3d=<lut file> -c:a copy output |
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
| % MATLAB | |
| function all_curves(floor_temp, ceil_temp) | |
| % Interactive example and tutotial for plotting multiple lines on a Matlab | |
| % figure using black_body representative temperatures. | |
| % Function takes in two values, a low (floor) temperature and a high (ceil) | |
| % temperature and plots lines incremented between them. The function then | |
| % plots each plotted_line based on each increment and then scales automatically to | |
| % fit the values. |
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
| gm convert -verbose -gamma 2.2 A004C007_1404240S.00164.dpx A01.tiff |
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 | |
| # Run this in the directory with all of the files to be made | |
| ls -1v | grep png > files2.txt | |
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
| cd /etc/yum.repos.d/ | |
| wget http://pkgrepo.linuxtech.net/el6/release/linuxtech.repo | |
| install darktable: | |
| yum --enablerepo=linuxtech-testing install darktable |
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
| YUM_CMD=$(which yum) | |
| APT_GET_CMD=$(which apt-get) | |
| OTHER_CMD=$(which <other installer> | |
| if [[ ! -z $YUM_CMD ]]; then | |
| yum install $YUM_PACKAGE_NAME | |
| elif [[ ! -z $APT_GET_CMD ]]; then | |
| apt-get $DEB_PACKAGE_NAME | |
| elif [[ ! -z $OTHER_CMD ]]; then |
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
| apt-get update | |
| apt-get install -y -q vim slurm-llnl | |
| echo "10.10.10.3 controller" >> /etc/hosts | |
| echo "10.10.10.4 server" >> /etc/hosts | |
| wget https://raw.github.com/guillermo-carrasco/mussolblog/master/setting_up_a_testing_SLURM_cluster/slurm.conf | |
| mv slurm.conf /etc/slurm-llnl/ | |
| SCRIPT |
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 as root if you get the error | |
| # error while loading shared libraries: libstdc++6: cannot open shared object file: No such file or directory | |
| # Geekbench on Ubuntu 14.04 LTS | |
| sudo apt-get install lib32stdc++6 |