Firefox
-
Mac:
- localStorage
~/Library/Application Support/Firefox/Profiles/xxxxx.default/jetpack/myAddOn@ext
-
extension
-*- coding: utf-8 -*- | |
import os | |
import sys | |
import sqlite3 | |
import urllib | |
import urllib2 | |
import base64 | |
import shutil | |
import time |
# number with Byte | |
echo 'Size 1452360394' | awk -F" " '{ split( "KB MB GB" , v ); s=1; while( $2>1024 ){ $2/=1024; s++ } print int($2) v[s] }' | |
# number with microsecond | |
echo 'Time 589566' | awk -F" " '{ split( "us ms sec" , v ); s=1; while( $2>1000 ){ $2/=1000; s++ } print int($2) v[s] }' | |
# Change path '.../MacOSX10.9.sdk/...' to where your xcode. | |
export C_INCLUDE_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/libxml2:$C_INCLUDE_PATH | |
pip install lxml |
'use strict'; | |
/** | |
* dark=0, bright=1 | |
* 30 .. 37 | |
*/ | |
var tc = { | |
reset: '\u001b[0m', | |
b_red: '\u001b[1;31m', | |
b_blue: '\u001b[1;34m', |
var mongoose = require('mongoose'); | |
var Schema = mongoose.Schema; | |
//Database connection | |
var uristring = 'mongodb://localhost/test'; | |
var mongoOptions = { }; | |
mongoose.connect(uristring, mongoOptions, function (err, res) { | |
if (err) { | |
console.log('Error when connecting to: ' + uristring + '. ' + err); |
<?xml version="1.0" encoding="UTF-8" ?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to You 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 | |
http://www.apache.org/licenses/LICENSE-2.0 |
find . -name "*.py" -print0 | xargs -0 perl -pi -e '$_ .= " time.sleep(10)\n" if /def logout/' |
'6b696c667530373031'.match(/[a-f0-9]{2}/gi).map( | |
function(r) { | |
return String.fromCharCode(parseInt(r, 16)); | |
} | |
).join(''); |
cd ~ | |
mkdir dev_tools | |
cd dev_tools | |
## download SIP source code | |
wget http://sourceforge.net/projects/pyqt/files/sip/sip-4.16.7/sip-4.16.7.tar.gz | |
tar zxf sip-4.16.7.tar.gz | |
cd sip-4.16.7 | |
python configure.py | |
make |