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
// FindFileByExtension walks a given directory searching for a given extension and returns a list of matching results. | |
func FindFileByExtension(dirpath string, ext string) ([]string, error) { | |
var match []string | |
err := filepath.Walk(dirpath, func(path string, f os.FileInfo, _ error) error { | |
if !f.IsDir() && strings.HasSuffix(f.Name(), ext) { | |
match = append(match, f.Name()) | |
} | |
return nil | |
}) | |
if err != nil { |
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
# Description: | |
# ping teh pongs | |
# | |
# Dependencies: | |
# probably hubot | |
# | |
# Configuration: | |
# nope | |
# | |
# Commands: |
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/sh | |
echo "Restore Privacy" | |
curl -sSL https://fix-macosx.com/fix-macosx.py | python | |
echo "Installing xcode" | |
xcode-select --install | |
wait | |
echo "Installing Homebrew" | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
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
<?php | |
/** | |
* eck.inc | |
* | |
* Import default content for custom entities from a CSV | |
* This Migration requires migrate_extras | |
* | |
*/ | |
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
<script type="text/javascript"> | |
setTimeout(function(){var a=document.createElement("script"); | |
var b=document.getElementsByTagName("script")[0]; | |
a.src=document.location.protocol+"//dnn506yrbagrg.cloudfront.net/pages/scripts/0021/0660.js?"+Math.floor(new Date().getTime()/3600000); | |
a.async=true;a.type="text/javascript";b.parentNode.insertBefore(a,b)}, 1); | |
</script> |