Skip to content

Instantly share code, notes, and snippets.

View javayhu's full-sized avatar
🚀
Indie Hacking

javayhu javayhu

🚀
Indie Hacking
View GitHub Profile
@javayhu
javayhu / proguard_for_rn_0_44_0.txt
Created September 26, 2017 12:38
ProGuard settings for React Native 0.44.0
#============================= React Native start =============================#
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Disabling obfuscation is useful if you collect stack traces from production crashes
# (unless you are using a system that supports de-obfuscate the stack traces).
<script type='text/javascript'>
/*
* /MathJax.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
*
* Licensed 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
*
@javayhu
javayhu / edx platform installation problem on Ubutu12.04 [2]
Created July 26, 2013 13:45
edx platform installation problem on Ubutu12.04
chmod +x /tmp/vagrant-shell && /tmp/vagrant-shell
root@ubuntu:~/edx/edx-platform# vagrant ssh
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic-pae i686)
* Documentation: https://help.ubuntu.com/
Welcome to your Vagrant-built virtual machine.
Last login: Fri Sep 14 06:22:31 2012 from 10.0.2.2
vagrant@precise32:~$ chmod +x /tmp/vagrant-shell && /tmp/vagrant-shell
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
@javayhu
javayhu / edx platform installation on ubuntu12.04
Last active December 20, 2015 06:39
Problem I met with when installing edx-platform on Ubuntu 12.04 LTS. I was wondering why it occured and how can I solve it? PS: as you can see, actually I run "vagrant up" with root user. Thank all.
root@ubuntu:~/edx/edx-platform# sudo vagrant destroy -f
[default] Forcing shutdown of VM...
[default] Destroying VM and associated drives...
root@ubuntu:~/edx/edx-platform# vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'precise32'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
Pruning invalid NFS exports. Administrator privileges will be required...
var gistPrefix = 'https://gist.github.com/',
// Cache document.write so that it can be restored once all Gists have been
// embedded.
cachedWrite = document.write,
body = $('body'),
// Map each p.gist to an object that contains the paragraph to be replaced
// and the Gist's identifier.
gists = $('a.gist').map(function(n, a) {
a = $(a);
var href = a.attr('href');
@javayhu
javayhu / commands & outputs of edx-platform installation
Last active December 20, 2015 00:48
All commands and outputs when I successfully install edx-platform on Mac OS X 10.7.
This file has been truncated, but you can view the full file.
Last login: Sat Jul 20 09:18:28 on ttys001
HuJiaWeis-MBP:~ hujiawei$ cd git/edx/edx-platform/
HuJiaWeis-MBP:edx-platform hujiawei$ VAGRANT_LOG=DEBUG vagrant up
INFO global: Vagrant version: 1.2.2
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commands/box/plugin.rb
INFO manager: Registered plugin: box command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commands/destroy/plugin.rb
INFO manager: Registered plugin: destroy command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.2/plugins/commands/halt/plugin.rb
INFO manager: Registered plugin: halt command
@javayhu
javayhu / edx-platform installation problem
Last active December 19, 2015 21:08
Here is the problem I met with when I tried to install edx-platform on Mac OS X 10.7. The edition of edx-platform I used is the latest which released on July 17th.When I met with the error saying "chmod +x /tmp/vagrant-shell && /tmp/vagrant-shell", I tried "sudo -H bash -l" and run "chmod +x /tmp/vagrant-shell && /tmp/vagrant-shell" again, it we…
Last login: Wed Jul 17 09:21:15 on console
HuJiaWeis-MBP:~ hujiawei$ cd Techs/edx
HuJiaWeis-MBP:edx hujiawei$ ls
edx-installation.txt tools
HuJiaWeis-MBP:edx hujiawei$ git clone 39% (68609/172542), 43.18 MiB | 38 KiB/s
-bash: syntax error near unexpected token `('
HuJiaWeis-MBP:edx hujiawei$ git clone git://github.com/edx/edx-platform.git
Cloning into 'edx-platform'...
remote: Counting objects: 172542, done.
remote: Compressing objects: 100% (54979/54979), done.