Skip to content

Instantly share code, notes, and snippets.

View mingliangfeng's full-sized avatar

Andrew Feng mingliangfeng

  • Melbourne
View GitHub Profile
@mingliangfeng
mingliangfeng / README.md
Created June 13, 2018 05:15 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

OP: @leonardofed founder @ plainflow.


@mingliangfeng
mingliangfeng / completion-for-gradle.md
Last active November 11, 2016 00:57 — forked from nolanlawson/completion-for-gradle.md
Gradle tab completion for Bash. Works on both Mac and Linux.

Gradle tab completion script for Bash

A tab completion script that works for Bash. Relies on the BSD md5 command on Mac and md5sum on Linux, so as long as you have one of those two commands, this should work.

Usage

$ gradle [TAB]
@mingliangfeng
mingliangfeng / docker.sh
Last active March 7, 2018 05:17 — forked from evanscottgray/docker_kill.sh
kill all docker containers at once...
# list all container IDs
docker ps -aq
# stop all containers
docker stop $(docker ps -q)
# remove all containers
docker rm $(docker ps -aq)
# remove all images
function foo(args) {
var i, j, k;
// ...
// j acquires some interesting value
// Who called foo when j took this interesting value?
//
var e = new Error('dummy');
var stack = e.stack.replace(/^[^\(]+?[\n$]/gm, '')
.replace(/^\s+at\s+/gm, '')
@mingliangfeng
mingliangfeng / frontendDevlopmentBookmarks.md
Created May 3, 2016 00:52 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@mingliangfeng
mingliangfeng / README.md
Created March 2, 2016 02:43 — forked from boopathi/README.md
Creating a Swift-ReactNative project

Settings

  1. Create a project in XCode with the default settings
    • iOS > Application > Single View Application
    • Language: Swift
  2. Under project General settings, add ReactKit to Linked Framework and Libraries
    • + > Add Other... and choose /path/to/react-native/ReactKit/ReactKit.xcodeproj
  3. Now ReactKit would have been imported. Link it by choosing it from the list.
    • + > lib.ReactKit.a
  4. Under project Build Settings,
@mingliangfeng
mingliangfeng / ubuntu-maven-3
Last active August 29, 2015 14:28 — forked from stephanetimmermans/ubuntu-maven-3
Install Maven3 on Unbuntu 14.04
#sudo apt-get remove maven2
sudo add-apt-repository "deb http://ppa.launchpad.net/natecarlson/maven3/ubuntu precise main"
sudo apt-get update
sudo apt-get install maven3
#If you encounter this:
#The program 'mvn' can be found in the following packages:
# * maven
# * maven2
// Check if a slave has < 10 GB of free space, wipe out workspaces if it does
import hudson.model.*;
import hudson.util.*;
import jenkins.model.*;
import hudson.FilePath.FileCallable;
import hudson.slaves.OfflineCause;
import hudson.node_monitors.*;
for (node in Jenkins.instance.nodes) {
<div class="row bs-wizard">
<div class="col-lg-3">
<ol class="bs-wizard-sidebar">
<li class="bs-wizard-todo bs-wizard-active"><a href="javascript:void(0)">Your Account Details</a></li>
<li class="bs-wizard-todo"><a href="javascript:void(0)">Your Website Details</a></li>
<li class="bs-wizard-todo"><a href="javascript:void(0)">Review and Sign up</a></li>
</ol>
</div>
<div class="col-lg-9">
<form method="get" id="signup_form" class="new_client" action="" accept-charset="UTF-8">
<form novalidate="novalidate" id="signin-form" method="get" action="" accept-charset="UTF-8">
<fieldset>
<legend>Please fill in your details</legend>
<div class="form-group">
<label for="client_email">Email</label>
<div class="input-group">
<span class="input-group-addon"><i class="icon-envelope"></i></span>
<input id="client_email" name="client[email]" class="required email form-control" placeholder="Your Email" type="text">
</div>
</div>