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
2 | |
Ch'en | |
Earth, mother, people, etc., | |
submission. | |
23 | |
Po | |
Collapse, splitting apart, | |
dispersion. | |
8 | |
Pi |
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 | |
"""A very simple script to set FSTYPE info field on a file. | |
Usage: ./set_c.py [-h] [-t '????'] [-T 1061109567] FILE [...] | |
Sets the FSTypeCode of the given file(s) to the specified code - | |
'OggS' by default. | |
(This script requires Mac-platform python modules.) | |
""" |
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
import sys | |
import DictionaryServices | |
def main(): | |
try: | |
word = " ".join(sys.argv[1:]) | |
except IndexError: | |
errmsg = 'No term entered to look up in the dictionary' | |
sys.exit() | |
wordrange = (0, len(word)) |
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
tell application "Finder" | |
-- get desktop dimensions (dw = desktop width; dh = desktop height) | |
set db to bounds of window of desktop | |
set {dw, dh} to {item 3 of db, item 4 of db} | |
end tell | |
tell application "System Events" | |
repeat with proc in application processes | |
tell proc | |
repeat with win in windows |
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
/* | |
* FindProxies.c | |
* | |
* -------------------------------------------------------------------------------------- | |
* | |
* The contents of this file are subject to the NOKOS License Version 1.0a (the | |
* "License"); you may not use this file except in compliance with the License. | |
* | |
* Software distributed under the License is distributed on an "AS IS" basis, WITHOUT | |
* WARRANTY OF ANY KIND, either express or implied. See the License for the specific |
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
// (c) 2002 Julien Jalon <[email protected]> | |
// See license info at the end of this file. | |
#import <Foundation/Foundation.h> | |
#include <CoreFoundation/CoreFoundation.h> | |
#include <SystemConfiguration/SystemConfiguration.h> | |
#define PRINT(X) printf("%s\n", [[NSString stringWithFormat:@"%@", (X)] ISOLatin1EncodedCString]) |
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
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
int main( int argc, char **argv ) | |
{ | |
int i,x,sockfd,an=1; | |
long n; | |
char buffer[201]; | |
char mac[102]; |
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
#include <IOKit/IOKitLib.h> | |
#include <IOKit/pwr_mgt/IOPMLib.h> | |
#include <IOKit/IOReturn.h> | |
#include <mach/mach_init.h> /* for bootstrap_port */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <fcntl.h> | |
int main(int argc, char *argv[]) | |
{ |
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
/* | |
* $Id: //websites/unixwiz/unixwiz.net/webroot/tools/whoamip.c#1 $ | |
* | |
* written by : Stephen J. Friedl | |
* Software Consultant | |
* Tustin, California USA | |
* http://www.unixwiz.net/tools/ | |
* | |
* *********************************************************** |
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
-- GetCaminoURL.applescript | |
-- Created by Thomas Willson on 8/7/09. | |
-- Copyright 2009 __MyCompanyName__. All rights reserved. | |
try | |
tell application "System Events" | |
set isRunning to ((application processes whose (name is equal to "Camino")) count) | |
end tell | |
if isRunning is greater than 0 then |
NewerOlder