This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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 | |
cp_p() | |
{ | |
strace -q -ewrite cp -- "${1}" "${2}" 2>&1 \ | |
| awk '{ | |
count += $NF | |
if (count % 10 == 0) { | |
percent = count / total_size * 100 | |
printf "%3d%% [", percent | |
for (i=0;i<=percent;i++) |
This file contains 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 | |
# Jordan Westhoff, RIT 2014 | |
read -p "Batch size for test (enter in MB) {1024MB in a GB}" sze | |
echo "Testing Disk Speed" | |
echo "$sze MB sample size" | |
dd if=/dev/zero of=test bs=1048576 count=$sze |
This file contains 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 | |
# | |
# This is a quick and simple way to bind to the correct version of CUDA to the operating libraries in Linux. | |
# Very common issue [last tested, Ubuntu 14.04 LTS] after installing CUDA and STITOLA UltraGrid - also hard to google. | |
echo 'MODIFYING PATH TO MAKE CUDA WORK' | |
sudo ldconfig /usr/local/cuda/lib64 |
This file contains 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
# Extending network buffers for UltraGrid on OSX | |
# Edit: /etc/sysctl.conf | |
# Extended network buffers for UltraGrid | |
kern.ipc.maxsockbuf=33554432 | |
net.inet.udp.recvspace=5944320 | |
sudo nvram boot-args="ncl=131072" # for OS X 10.6 |
This file contains 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 | |
# Simplistic steps to install dpxconvert | |
# Make sure you are in the directory 'Sweenet Arriraw_1_0' | |
# example /Users/user/Downloads/Sweeney\ Arriraw_1_0 | |
# Make sure to install the dpxconvert dependency, libTiff, before dpxconvert | |
cd src | |
cd tiff-3.8.0 | |
make |
This file contains 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 |
This file contains 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 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 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 |
OlderNewer