http://twitter.com/share?text=<TITLE>&url=<URL>
E.g. http://twitter.com/share?text=This+is+google+a+search+engine&url=https%3A%2F%2Fwww.google.com
http://www.facebook.com/sharer.php?u=&p[title]=
| import os | |
| import sys | |
| import traceback | |
| from functools import wraps | |
| from multiprocessing import Process, Queue | |
| def processify(func): | |
| '''Decorator to run a function as a process. | |
| Be sure that every argument and the return value |
| #!/usr/bin/ruby | |
| # Create display override file to force Mac OS X to use RGB mode for Display | |
| # see http://embdev.net/topic/284710 | |
| require 'base64' | |
| data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
| edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
| vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| import sys | |
| import requests | |
| import struct | |
| import uuid | |
| def java_uuid_hash_code(uuid): | |
| leastSigBits, mostSigBits = struct.unpack('>QQ', uuid.bytes) | |
| l1 = leastSigBits & 0xFFFFFFFF |
| if [ -f "${HOME}/.gpg-agent-info" ]; then | |
| . "${HOME}/.gpg-agent-info" | |
| export GPG_AGENT_INFO | |
| export SSH_AUTH_SOCK | |
| export SSH_AGENT_PID | |
| fi |