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
#!/usr/env bash | |
ssh -L 1712:perseus.eng.auburn.edu:1712 -L 32891:perseus.eng.auburn.edu:32891 [email protected] |
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 | |
history | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn |head -n 20 |
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
grep -rni --include="*" search_string . |
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
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo *Click* |
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
#!/usr/bin/env python2.7 | |
"""This is one way of putting *.alog data into a *.mat, if you don't like the | |
script provided...""" | |
import os | |
import scipy.io as sio | |
alog_path = os.path.join(os.path.dirname(__file__), 'Novatel_Data_16_9_2013_____13_30_04.alog') | |
alog_file = open(alog_path, 'r') | |
mat_path = os.path.join(os.path.dirname(__file__), 'Novatel_Data__pyparsed.mat') |
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
clear all; close all; clc | |
x = randn(2,3); | |
PN = cov(x'); % covariance in the navigation frame | |
error_ellipse(PN,'style','b'); | |
axis equal; | |
hold on; | |
grid on; |
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
clear all; close all; clc | |
% input | |
%% #1 | |
data = {}; | |
for k = 1:8 | |
[data{k}.num, data{k}.txt, data{k}.raw] = xlsread('RyderCupData.xlsx',k); | |
end | |
scores_eur = zeros(12,10,3); |
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
function [data, fields, topics] = bag2mat(inp, map_topics, array_map, do_save) | |
% Convert ROS Bag files into MAT files | |
% | |
% This is really more of a wrapper for extractSingleFile. It does a little | |
% bit of checking to make sure we're all good, and will do whole | |
% directories at a time. | |
% | |
% USAGE: | |
% bag2mat('<folder_with_bag_files>') | |
% bag2mat('<some_file.bag>') |
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 | |
tempfile="/tmp/transformations.py" | |
wget http://www.lfd.uci.edu/~gohlke/code/transformations.py -O $tempfile | |
echo "Installing to:" | |
for path in /usr/lib/python*; do | |
[ -d "${path}" ] || continue # skip any files in there | |
filen="${path}/transformations.py" | |
echo -e "\t${filen}" | |
cp $tempfile $filen | |
done |
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 | |
#Register your default SSH public key with Github | |
#usage: | |
# ./github_reg_key.sh <github_username> | |
# | |
curl -u "$1" \ | |
--data "{\"title\":\"`uname -n`_`echo $USER`_`date +%Y%m%d%H%M%S`\",\"key\":\"`cat ~/.ssh/id_rsa.pub`\"}" \ | |
https://api.github.com/user/keys |
OlderNewer