Skip to content

Instantly share code, notes, and snippets.

View mingder78's full-sized avatar
🌴
On vacation

Ming-der Wang mingder78

🌴
On vacation
  • Tone Leader Technology Corp.
  • Taipei, Taiwan
View GitHub Profile
140byt.es
=========
A tweet-sized, fork-to-play, community-curated collection of JavaScript.
How to play
-----------
1. Click the ![Fork](https://d3nwyuy0nl342s.cloudfront.net/images/gist/buttons/fork_button.png) button above to fork this gist.
2. Modify all the files to according to the rules below.
@mingder78
mingder78 / gist:2517466
Created April 28, 2012 09:30
jarsigner
jarsigner -verify -verbose -certs babyemotion.apk
s = signature was verified
m = entry is listed in manifest
k = at least one certificate was found in keystore
i = at least one certificate was found in identity scope
no manifest.
jar is unsigned. (signatures missing or not parsable)
fortune@fortune-desktop:~$ jarsigner -verify -verbose -certs babyemotion2.apk
@mingder78
mingder78 / gist:3186302
Created July 27, 2012 05:25
what is a sbt start?
$ sbt
Getting net.java.dev.jna jna 3.2.3 ...
:: retrieving :: org.scala-tools.sbt#boot-app
confs: [default]
1 artifacts copied, 0 already retrieved (838kB/21ms)
Getting Scala 2.9.1 (for sbt)...
downloading http://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.9.1/scala-compiler-2.9.1.jar ...
[SUCCESSFUL ] org.scala-lang#scala-compiler;2.9.1!scala-compiler.jar (8631ms)
downloading http://repo1.maven.org/maven2/org/scala-lang/jline/2.9.1/jline-2.9.1.jar ...
[SUCCESSFUL ] org.scala-lang#jline;2.9.1!jline.jar (1116ms)
@mingder78
mingder78 / gist:3191705
Created July 28, 2012 03:56
$play dependencies for play2-camel
[play2-camel-samplels] $ dependencies
[info] Updating {file:/Users/mingderwang/play-2.0.2/samples/java/play2-camel/samples/java/play2-camel-sample/}play2-camel-samplels...
[info] Done updating.
[info] :: delivering :: play2-camel-samplels#play2-camel-samplels_2.9.1;1.0-SNAPSHOT :: 1.0-SNAPSHOT :: release :: Sat Jul 28 11:53:36 CST 2012
[info] delivering ivy file to /Users/mingderwang/play-2.0.2/samples/java/play2-camel/samples/java/play2-camel-sample/target/scala-2.9.1/ivy-1.0-SNAPSHOT.xml
Here are the resolved dependencies of your application:
+-------------------------------------------------------------------+--------------------------------------------------------------+------------------------------+
| Module | Required by | Note |
@mingder78
mingder78 / gist:3225705
Created August 1, 2012 10:37
/opt/jetty/contexts/camel.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<Set name="contextPath">/</Set>
<Set name="war">/opt/jetty/webme/camel.war</Set>
</Configure>
@mingder78
mingder78 / gist:4635309
Created January 25, 2013 15:35
install cocoapads
Wangteki-MacBook-Air:~ mingderwang$ gem update --system
Updating RubyGems
Updating rubygems-update
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.
Wangteki-MacBook-Air:~ mingderwang$ sudo !!
sudo gem update --system
Updating RubyGems
Updating rubygems-update
Successfully installed rubygems-update-1.8.25
@mingder78
mingder78 / gist:4737664
Created February 8, 2013 09:26
my Podfile file
$ cat Podfile
platform :ios, '5.0'
pod 'InAppSettingsKit', '~> 1.0'
pod 'Reachability', '~> 3.1.0'
pod 'AFNetworking'
pod 'GDataXML-HTML', '~> 1.0.0'
pod 'JSONKit', '~> 1.4'
pod 'SVProgressHUD', '~> 0.9'
pod 'ShareKit'
@mingder78
mingder78 / gist:4744485
Created February 9, 2013 07:25
my mongod log
mongod Wangteki-MacBook-Air.local
List all commands | Replica set status
Commands: buildInfo cursorInfo features hostInfo isMaster listDatabases replSetGetStatus serverStatus top
db version v2.2.3, pdfile version 4.5
git hash: nogitversion
sys info: Darwin teneight-slave.macports.org 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64 BOOST_LIB_VERSION=1_49
uptime: 30 seconds
overview (only reported if can acquire read lock quickly)
@mingder78
mingder78 / gist:4976699
Created February 18, 2013 11:19
(:gen-class)
$ ls
models server.clj views
Ming-Mac-mini:noir_mongodb ming$ cat *clj
(ns noir-mongodb.server
(:gen-class)
(:require [noir.server :as server]))
(server/load-views-ns 'noir-mongodb.views)
(defn -main [& m]
@mingder78
mingder78 / gist:5105824
Created March 7, 2013 05:53
.gitignore
# Xcode
build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3