Skip to content

Instantly share code, notes, and snippets.

View cwlau's full-sized avatar

William Lau cwlau

View GitHub Profile
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@superKalo
superKalo / Sortable.jsx
Last active August 9, 2022 09:31
How to use jQuery UI with React JS? You can use this approach to integrate almost any jQuery plugin! Full details and explanation here: http://stackoverflow.com/a/40350880/1333836
class Sortable extends React.Component {
componentDidMount() {
// Every React component has a function that exposes the
// underlying DOM node that it is wrapping. We can use that
// DOM node, pass it to jQuery and initialize the plugin.
// You'll find that many jQuery plugins follow this same pattern
// and you'll be able to pass the component DOM node to jQuery
// and call the plugin function.
@learner-long-life
learner-long-life / EthereumNodeGCP.md
Last active October 4, 2022 11:54
How to Run an Ethereum (Geth Light) Node on GCP

How to Run an Ethereum Node in GCP

NOTE: This doc was created in 2018 and is no longer being kept up-to-date. There are some useful updates and Q&A in the comments, and Google has since disallowed cryptocurrency nodes explicitly in their Terms of Service. While I work on an updated how-to-run-a-node tutorial, you are welcome to join our ETH developer chat and share what you'd like to work on.

https://matrix.to/#/#invisible-college/cryptocoin:matrix.org?via=matrix.org&via=t2bot.io

@salrashid123
salrashid123 / main.py
Last active April 4, 2022 17:28
GCP Log Consolidation with Flask
https://google-cloud-python.readthedocs.io/en/latest/logging/usage.html
https://google-cloud-python.readthedocs.io/en/latest/logging/usage.html#integration-with-python-logging-module
https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry
NOTE: as of 9/7/18
https://github.com/GoogleCloudPlatform/google-cloud-python/pull/5878
https://github.com/GoogleCloudPlatform/google-cloud-python/pull/5885