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
When a client program wants to access a server by its domain name, it must find out how to translate the domain name into an actual routable address that it can use to communicate. It needs to know this information in order to get or send information to the server. | |
Some applications, including most web browsers, maintain an internal cache of recent queries. This is the first place the application will check, if it has this capability, in order to find the IP address of the domain in question. If it does not find the answer to its question here, it then asks the system resolver to find out what the address of the domain name is. | |
A resolver in general is any component that acts as a client-side participant in a DNS query. The system resolver is the resolving library that your operating system uses to seek out the answer for DNS queries. In general, system resolvers are usually what we consider stub resolvers because they are not capable of much complexity beyond searching a few static files on the system (lik |
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 | |
# -*- coding: utf-8 -*- | |
import os, sys | |
import filecmp | |
holderlist=[] | |
def compare_dirs(dir1, dir2): | |
dircomp=filecmp.dircmp(dir1,dir2) | |
only_in_source=dircomp.left_only |
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
## tool to transfer jobs from one (local) tractor farm to other (away) tractor farm | |
## either directly using .alf file, maya file and user, in that order. | |
#!/bin/sh | |
maya -batch -file "$2" -command 'python "import pymel.core as pm; import sys, os; sys.path.append(\"/nas/projects/development/productionTools\"); from py_queue.sync import find_scene_deps; bin = \"/nas/projects/development/productionTools/py_queue/bin/submit_to_queue.py\"; import uuid; uuid_num = uuid.uuid4(); scene_name = pm.sceneName(); (file_path, _) = find_scene_deps.gen2(scene_name); (f1, _) = os.path.basename(scene_name).split(\".\"); print bin, \"SYNC_RENDER\", file_path, \"'"$3"'\", \"'"$1"'\", uuid_num, \"50\", \"'"$2"'\", \"%s_%s\" % (f1, uuid_num) "' |
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 | |
# -*- coding: utf-8 -*- | |
import os, sys | |
import json | |
from operator import itemgetter | |
from tabulate import tabulate | |
import datetime | |
import argparse |
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 | |
# -*- coding: utf-8 -*- | |
# getting the total size of all dependencies for a maya scene file | |
import os | |
import sys | |
import glob | |
def size_format(size): | |
units = ['B', 'KB', 'MB', 'GB'] |
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 | |
# -*- coding: utf-8 -*- | |
# getting the approx size of all dependencies for a maya scene file | |
import os | |
import sys | |
def size_format(size): | |
units = ['B', 'KB', 'MB', 'GB'] | |
for u in units: |
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 | |
# -*- coding: utf-8 -*- | |
''' | |
import sys, pprint | |
from pysideuic import compileUi | |
pyfile = open("/nas/projects/development/pipeline/bs_pipeline/cacheExportUI.py", 'w') | |
compileUi("/nas/projects/development/pipeline/bs_pipeline/ui/cacheExport.ui", pyfile, False, 4, False) | |
pyfile.close() | |
''' |
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 | |
for jid in `./tq jobs "done and stoptime > -1d " -c jid,stoptime --nh | sort | awk '{print $1}'`; do echo ">>>>>>>>>>>$jid<<<<<<<<<<"; ./tq invocations "jid=$jid" -c jid,tid,wtime,current | grep -i true; echo ">>>>>>>>>>$jid<<<<<<<<<<<<<"; done | tee -a /tmp/task_stat_`date +%F`.log |
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
# python script to use local_spol.sh, so to direct transfer jobs between tractor farms | |
#!/usr/bin/env python | |
import sys | |
import pexpect | |
def spoolLocal(args): | |
user, alf = args[0], args[1] | |
p_cmd = pexpect.spawn('/root/local_spool.sh '+ user + ' ' + alf) |
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
## tool to transfer jobs from one (away) tractor farm to other (local) tractor farm | |
## either directly using .alf file or by user and .alf file | |
#!/usr/bin/env sh | |
export TRACTOR_ENGINE=lic:1503; | |
#/opt/pixar/Tractor-2.1/bin/tractor-spool "$@" | |
/opt/pixar/Tractor-2.1/bin/tractor-spool --user="$1" "$2" |
NewerOlder