How to Setup Verified Commits
Quick guide on how to setup git signing. Information is aggregated from following sources:
Quick guide on how to setup git signing. Information is aggregated from following sources:
All libraries have subtle rules that you have to follow for them to work well. Often these are implied and undocumented rules that you have to learn as you go. This is an attempt to document the rules of React renders. Ideally a type system could enforce it.
A number of methods in React are assumed to be "pure".
On classes that's the constructor, getDerivedStateFromProps, shouldComponentUpdate and render.
#! /usr/bin/env bash | |
# HOW TO USE: Put this file inside the directory where you would like to extract and run the product-APIM build file (.zip file) | |
# Change the below path variables accordingly *** NOTE: No trailing `/` slashes has been used | |
# This will only work with APIM 3.0.0 latest version with Carbon 4.x kernel. Addition to coping and unziping the pack, | |
# This script will only create symbolic links to the carbon-apimgt repository files. | |
source_path="/Users/tmkasun/Documents/wso2/dev/products/apim/carbon-apimgt-forked/features/apimgt" | |
product_apimgt_path="/Users/tmkasun/Documents/wso2/dev/products/apim/product-apim-forked" | |
pack_name="wso2am-3.0.0-SNAPSHOT" | |
action=$1 |
#!/bin/bash | |
# instGlobal.sh | |
echo "instGlobal.sh ...." | |
echo "install package for GNU global..." | |
sudo apt-get update | |
sudo apt-get -y install curl | |
sudo apt-get -y install wget | |
sudo apt-get -y install ncurses-dev |
#!/bin/bash | |
# CHANGE THESE | |
auth_email="user@example.com" | |
auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings | |
zone_name="example.com" | |
record_name="www.example.com" | |
# MAYBE CHANGE THESE | |
ip=$(curl -s http://ipv4.icanhazip.com) |
# useful for running ssl server on localhost | |
# which in turn is useful for working with WebSocket Secure (wss) | |
# copied from http://www.piware.de/2011/01/creating-an-https-server-in-python/ |
#!/bin/bash | |
# ----------------------------------------------------------------- | |
# Licensed to the Apache Software Foundation (ASF) under one | |
# or more contributor license agreements. See the NOTICE file | |
# distributed with this work for additional information | |
# regarding copyright ownership. The ASF licenses this file | |
# to you 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 | |
# |
require "open3" | |
def run(cmd) | |
Open3.popen3(cmd) do |stdin, stdout, stderr, wait_thr| | |
return { | |
pid: wait_thr.pid, | |
exit_status: wait_thr.value.to_i, | |
stdout: stdout.read, | |
stderr: stderr.read | |
} |
import os | |
import posixpath | |
import urllib | |
import BaseHTTPServer | |
from SimpleHTTPServer import SimpleHTTPRequestHandler | |
# modify this to add additional routes | |
ROUTES = ( | |
# [url_prefix , directory_path] | |
['/media', '/var/www/media'], |