iTunes/11.1.3 (Macintosh; OS X 10.9) AppleWebKit/537.71
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
#!/usr/bin/env python2 | |
# | |
# Copyright 2009 Empeeric LTD. All Rights Reserved. | |
# | |
# Modified 2013 by Andrew Udvare | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
char *get_perm_string(unsigned int perm) { | |
unsigned int perms_str_size = 17 + 1; | |
char *perms = malloc(perms_str_size); | |
unsigned int *flags = malloc(sizeof(int) * 6); | |
unsigned int shift, offset, i, f, letter, new_size, j; | |
char *ret; |
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
IFS=$'\n'; for i in $(find -iname '*.mp3'); do | |
fn=$(echo "$i" | cut -b 3- | cut -d '/' -f 1,2 | sed -e 's#/#-#g').zip | |
dir=$(echo "$i" | cut -b 3- | cut -d '/' -f 1,2) | |
top=$(echo "$i" | cut -b 3- | cut -d '/' -f 1) | |
in=$(echo "$i" | cut -b 3- | cut -d '/' -f 2) | |
pushd "$top" | |
zip -r "$PWD/../$fn" "$in" | |
popd | |
done |
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
/** | |
* Copyright (c) 2013 Tatsh. All rights reserved. | |
* | |
* Permission is hereby granted, free of charge, to any person | |
* obtaining a copy of this software and associated documentation files | |
* (the "Software"), to deal in the Software without restriction, | |
* including without limitation the rights to use, copy, modify, merge, | |
* publish, distribute, sublicense, and/or sell copies of the Software, | |
* and to permit persons to whom the Software is furnished to do so, | |
* subject to the following conditions: |
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
import glob | |
import subprocess as sp | |
from os import remove as rm | |
DIVX2PASS_GLOB = '*2pass*.log*' | |
def clean_up(): | |
files = glob.glob(DIVX2PASS_GLOB) | |
files.extend(['audio.aac', 'output.x264']) |
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
#!/usr/bin/env python | |
import argparse | |
import datetime | |
import glob | |
import json as JSON | |
import os | |
import re | |
import sys | |
from dateutil import parser as date_parser, tz |
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
from os import chdir, getcwd | |
from os.path import realpath | |
class PushdContext: | |
cwd = None | |
original_dir = None | |
def __init__(self, dirname): | |
self.cwd = realpath(dirname) |
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
# extract Unity3D engine *.assets files | |
# (c) 2012-10-15 by AlphaTwentyThree of XeNTaX | |
get EXT extension | |
if EXT == "resS" # no TOC -> scan | |
cleanexit | |
endif | |
endian big | |
get FSIZE asize |