Skip to content

Instantly share code, notes, and snippets.

/*
* $Id: blueping.c,v 1.8 2005/12/18 03:31:46 jcs Exp $
*
* blueping
* a bluetooth monitoring utility
*
* Copyright (c) 2005 joshua stein <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
#include <iostream>
#include <sstream>
#include <curl/curl.h>
 
#define END_POINT "http://twitpic.com/api/upload"
#define EXPECT_ARGS 4
 
size_t write_data(void *buffer, size_t size, size_t nmemb, void* userp)
{
 
ssh -D 8080 -f -C -q -N myuser@remote_ssh_server
-D 8080 : This does the dynamic stuff and makes it behave as a SOCKS server.
-f : This will fork the process into the background after you type your password.
-C : Turns on compression.
-q : Quiet mode. Since this is just a tunnel we can make it quiet.
-N : Tells it no commands will be sent. (the -f will complain if we don’t specify this)
In Firefox use about:config
REQUEST_TOKEN_URL = 'https://www.google.com/accounts/
OAuthGetRequestToken'
ACCESS_TOKEN_URL = 'https://www.google.com/accounts/
OAuthGetAccessToken'
AUTHORIZATION_URL = 'https://www.google.com/accounts/
OAuthAuthorizeToken'
CALLBACK_URL = 'http://<yourapp>.appspot.com/oauth/token_ready'
RESOURCE_URL = 'https://mail.google.com/mail/feed/atom'
SCOPE = 'https://mail.google.com/mail/feed/atom'
CONSUMER_KEY = <your consumer key>
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <curl/curl.h>
#include <string.h>
/* Flag set by .--verbose.. */
static int verbose_flag;
int
on ScreencastURL(z)
set n to (offset of "http://screencast.com" in z)
if n > 0 then
set m to (offset of ">" in z)
if m > 0 then
set substr to (text items n thru (m - 2) of z) as text
return substr
end if
end if
return false
property scriptInitialPath : null
property loadedScriptName : ""
using terms from application "Colloquy"
on process incoming chat message msg in msgChatRoom
set frontRoom to description of active panel of front window
-- to convert a chat room's name to a chat room's description, here's what
-- I needed to do. Depending on how you connect, you may need to change
-- this a little. You'll know that you do need to change this if you keep
-- getting JIRA titles when your "front room" fills with unexpected JIRA
#import <Foundation/Foundation.h>
#import <Quartz/Quartz.h>
int main (int argc, const char * argv[]) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
// collecting the given command line arguments
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
NSString *pdfFilePath = [userDefaults stringForKey:@"file"];
If you want to add more file type handled by my plugin, use this place holder automator application and modify the file named /Applications/Unique Type Identifiers.app/Contents/Info.plist.
Add a section like this at the end:
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>net.samlepirate.uti.xml</string>
</array>
<key>UTTypeDescription</key>
@atr000
atr000 / user-script-analyze.py
Created March 31, 2010 03:19
user-script-analyze.py
#!/usr/bin/env python
import glob
import operator
import re
import string
import sys
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #