Skip to content

Instantly share code, notes, and snippets.

View p16i's full-sized avatar
💭
TDDing

Pattarawat Chormai p16i

💭
TDDing
View GitHub Profile
@p16i
p16i / www-curl-simple
Created July 18, 2012 02:52
www-curl-simple
cpanm -v WWW::Curl::Simple
cpanm (App::cpanminus) 1.5011 on perl 5.014002 built for darwin-2level
Work directory is /Users/goonnow/.cpanm/work/1342579777.98264
You have make /usr/bin/make
You have LWP 6.04
You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3
You have /usr/bin/unzip
Searching WWW::Curl::Simple on cpanmetadb ...
--> Working on WWW::Curl::Simple
Fetching http://www.cpan.org/authors/id/A/AN/ANDREMAR/WWW-Curl-Simple-0.100185.tar.gz ... OK
@p16i
p16i / gist:4697320
Created February 2, 2013 13:15
npm install copy-paste -g failed
> ref@0.1.3 install /usr/local/share/npm/lib/node_modules/copy-paste/node_modules/exec-sync/node_modules/ffi/node_modules/ref
> node-gyp rebuild
CXX(target) Release/obj.target/binding/src/binding.o
SOLINK_MODULE(target) Release/binding.node
SOLINK_MODULE(target) Release/binding.node: Finished
> ffi@1.1.2 install /usr/local/share/npm/lib/node_modules/copy-paste/node_modules/exec-sync/node_modules/ffi
> node-gyp rebuild
var myGist = require("../");
var assert = require("assert");
var execSync = require("exec-sync");
it('should return -1 when the value is not present', function(){
/* Mock Clipboard */
var str = "TEST GIST";
execSync("echo "+str+" | pbcopy");
var execSync = require('exec-sync');
var Gister = require('gister');
var gist = new Gister(
{
username: process.env.GITHUB_USERNAME,
password: process.env.GITHUB_PASSWORD
}
);
process.env.GITHUB_USERNAME,
# DO-GIST
The lazy way to create a gist from your clipboard.
## Requirement
- node.js
- npm
## Installation
- Clone it
- Go to folder and run `npm install ./ -g`
.xhr (/usr/local/lib/node_modules/do-gist/node_modules/gister/gister.js:156:23)
at EventEmitter.Gist.create (/usr/local/lib/node_modules/do-gist/node_modules/gister/gister.js:303:14)
at Object.module.exports.doGist (/usr/local/lib/node_modules/do-gist/lib/index.js:18:14)
at Object.<anonymous> (/usr/local/lib/node_modules/do-gist/bin/do-gist.js:4:8)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
apt-get install vim vim-scripts vim-doc vim-latexsuite vim-gui-common vim-gnome
a i afjord,Å i Åfjord
a i aford,Å i Åford
a i lofoten,Å i Lofoten
a,Å
aa,Aa
aabjorgan,Aabjörgan
aabol,Aabol
aadalsbruk,Aadalsbruk
aadland,Aadland
aadneram,Aadneram
/obj.target/ffi/deps/libffi/src/x86/darwin.o
CC(target) Release/obj.target/ffi/deps/libffi/src/x86/darwin64.o
LIBTOOL-STATIC Release/libffi.a
CXX(target) Release/obj.target/ffi_bindings/src/ffi.o
CXX(target) Release/obj.target/ffi_bindings/src/callback_info.o
CXX(target) Release/obj.target/ffi_bindings/src/threaded_callback_invokation.o
SOLINK_MODULE(target) Release/ffi_bindings.node
ld: warning: could not create compact unwind for _ffi_call_unix64: does not use RBP or RSP based frame
SOLINK_MODULE(target) Release/ffi_bindings.node: Finished
/usr/local/share/npm/bin/do-gist -> /usr/lo