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 | |
# Related one-line script: https://gist.github.com/fiskr/b0c01bbcbd2aefaa726d46bea30a3307 | |
dataFile="urls.dat" | |
rssUrl="https://rss.simplecast.com/podcasts/3236/rss" # How We Roll podcast | |
# Download the RSS feed for episodes of the How We Roll Podcast | |
# then, retrieve from the HTML just the episode titles and URLs | |
# then, exclude subtitles, since we don't need those | |
# then, parse the URL from the attribute of the node | |
# then, delete all node tags, e.g. <title> |
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 | |
curl https://rss.simplecast.com/podcasts/3236/rss | grep mp3 | perl -pe 's/.*?url="([^"]+)".*/$1/g' | xargs wget --content-disposition |
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 | |
# OSX, GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15) | |
for URL in $(curl -sL http://www.radiolab.org/archive/ | grep -i read-more | perl -pe 's/^.*?"(http.*?)".*$/$1/g' | sort -u); do curl -sL $URL | grep -i download | head -n 1 | perl -pe 's/^.*?download="(http.*?)".*$/$1/g' | xargs wget; 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
[].forEach.call( | |
$('.course-item-list-header'), | |
function(el){ | |
var secSum = 0, | |
minSum = 0, | |
hourSum = 0 | |
originalTitle = ''; | |
originalTitle = $(el).find('h3').text(); | |
//console.log( $(el).find('h3').text() ); | |
[].forEach.call( $(el).next().find('.lecture-link'), |
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
# Author: Brandon Foster | |
# Date: 20150826 | |
# Purpose: | |
# - automate the comparisons between lightbulbs | |
# INC stands for Incandescent | |
# LED stands for Light-emitting diode | |
# CFL stands for Compact Fluorescents |
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 for the Ethernet to USB 3.0 adapter | |
# made by Cable Matters | |
cd ~/ | |
mkdir -p cable-matters-temp | |
cd cable-matters-temp |
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 | |
# Create a package with a given set of root paths | |
groupName="Brandon" | |
function requestPass() { | |
username="162084" | |
#get password from user |
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 | |
echo "Running runmode updates - $(date)" | |
# Custom OSGI Property Mapping Service files look something like | |
#<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" | |
# jcr:primaryType="sling:OsgiConfig" | |
# mapping.map="[diy-key|value1, | |
# hgtv-key|value2]" |
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
// get current string location | |
var loc = document.URL; | |
// strip cf#/ from it to get rid of that annoying left rail image bar | |
loc = loc.replace('cf#/', ''); | |
// if wcmmode=disabled is already set | |
if( loc.match(/[?|&]wcmmode=disabled/)){ | |
// new location is the URL without wcmmode=disabled | |
loc = loc.replace(/[?|&]wcmmode=disabled/, ''); | |
} else { | |
// otherwise, add wcmmode=disabled |
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 | |
# Install zip package through curl | |
groupName="Brandon" | |
packageName="20150319_show.zip" | |
package="./packages/$packageName" | |
username="162084" |
NewerOlder