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 python | |
# encoding: utf-8 | |
""" | |
sg_create_versions_from_files.py | |
Create Versions in Shotgun from a folder of local files | |
• Create a new version with the name based on the filename | |
• Transcode the file and generate thumbnails and web-playable media |
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 python | |
# encoding: utf-8 | |
""" | |
sg_import_assetlist.py | |
Import field descriptions from CSV file | |
Created by Jack James on 2019-10-30. | |
Copyright (c) 2019 Autodesk. All rights reserved. | |
Tasks |
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 $SRC; | |
find . -name '*.zip' -exec sh -c 'unzip -j "{}" `basename {} .zip`/`basename {} .zip`.jpg -d "`dirname \"{}\"`"' ';' |
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
ObjC.import('Foundation') | |
var app = Application.currentApplication() | |
app.includeStandardAdditions = true | |
var path = app.pathTo(this); | |
var workflowFolder = $.NSString.alloc.initWithUTF8String(path).stringByDeletingLastPathComponent.js + '/'; | |
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
#create & deploy lamp droplet | |
#login via ssh as root | |
#initial setup (ref: http://library.linode.com/getting-started#sph_logging-in-for-the-first-time) | |
# update /etc/hosts (to "thalassophobia.surrealroad.com") | |
nano /etc/hosts | |
# |
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
// usage | |
var forumURL = 'http://forums.com'; | |
$('#discourse-latest-container').getDiscourseTopics(forumURL, 'latest'); | |
// fetch discourse items | |
(function($) { | |
jQuery.fn.getDiscourseTopics = function (url, page) { | |
// load forum topics | |
if($(this).exists()) { | |
$this = $(this); |
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
1. File > New… | |
2. Download Ubuntu Free | |
3. Set parallels user password | |
4. Install Parallels Tools / Restart | |
5. `sudo apt-get update` | |
6. `sudo apt-get install apache2` | |
7. `sudo apt-get install mysql-server` | |
8. `sudo apt-get install php5 libapache2-mod-php5` | |
9. Test browsing to http://localhost or http://parallels-ip-address | |
10. `sudo apt-get install openssh-server` |
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
=begin | |
Find pages a field is used on | |
1. Edit the last line in the following script to reference the | |
appropriate field & entity | |
2. Paste the whole thing into the Ruby console for the site in | |
question | |
=end |
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
<?php | |
echo "<pre>"; print_r($wp_query->query_vars); echo "</pre>"; | |
?> |
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
# using sed | |
sed $'s/\\\r/\\\n/g' $FILE | |
# using tr | |
tr "\r" "\n" < "$FILE" |
NewerOlder