Skip to content

Instantly share code, notes, and snippets.

View felixding's full-sized avatar

DING Yu felixding

View GitHub Profile
@felixding
felixding / gist:2dab58cba2294ccb276f
Last active August 29, 2015 14:22
待客的PHP集成示范
<?php
$data = array(
"name" => $user['name'],
"external_id" => $user['id'],
"email" => $user['email']
);
$api_secret = "your api secret";
$token = JWT::encode($token, $api_secret);
elix-DingmatoMacBook-Pro:~ felixding$ sudo brew install lastfmfpclient
Password:
/usr/local/Library/Homebrew/brew.h.rb:441: command not found: /usr/bin/xcode-select -print-path
Warning: Xcode is not installed! Builds may fail!
Warning: It appears you have MacPorts or Fink installed.
Software installed with MacPorts and Fink are known to cause problems.
If you experience issues try uninstalling these tools.
==> Downloading https://github.com/lastfm/Fingerprinter/tarball/9ee83a51ac9058ff
######################################################################## 100.0%
==> cmake . -DCMAKE_INSTALL_PREFIX='/usr/local/Cellar/lastfmfpclient/1.6' -DCMAK
@felixding
felixding / gist:3140414
Created July 19, 2012 02:42
cat ~/Library/Logs/Homebrew/config.log | pbcopy
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by libsndfile configure 1.0.25, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/libsndfile/1.0.25
## --------- ##
## Platform. ##
@felixding
felixding / gist:3140409
Created July 19, 2012 02:41
brew --config
localhost:~ felixding$ brew --config
HOMEBREW_VERSION: 0.9.2
HEAD: 5047c85ced4befbd4fb6468c76d335a9da96079d
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: dual-core 64-bit penryn
OS X: 10.7.4-x86_64
Xcode: 4.3.3 => /Developer
CLT: 1.0.0.9000000000.1.1249367152
GCC-4.0: N/A
@felixding
felixding / LibraryLogsHomebrewconfig.log
Created July 19, 2012 02:40
All the gists needed to file an issue on Homebrew
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by libsndfile configure 1.0.25, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/libsndfile/1.0.25
## --------- ##
## Platform. ##
@felixding
felixding / gist:3140411
Created July 19, 2012 02:41
brew doctor
localhost:~ felixding$ brew doctor
Error: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
# ----------------------------------------------------------------------
# WARNING - do not edit this template unless you know what you are doing
# ----------------------------------------------------------------------
# the parent cache
cache_peer %PARENTPROXY% parent %PARENTPORT% 7 no-query no-digest no-netdb-exchange default
# disk and memory cache settings
cache_dir ufs %CACHEDIR% %CACHESIZE% 16 256