I hereby claim:
- I am davidqhr on github.
- I am davidqin (https://keybase.io/davidqin) on keybase.
- I have a public key ASBgSkL7WWvRj1yeT6dh_-OqlTTw0EKy-ZPjBMV9DdyFFAo
To claim this, I am signing this object:
-- Create a group | |
CREATE ROLE readaccess; | |
-- Grant access to existing tables | |
GRANT USAGE ON SCHEMA public TO readaccess; | |
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess; | |
-- Grant access to future tables | |
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess; |
I hereby claim:
To claim this, I am signing this object:
class Heap | |
def initialize &block | |
@data = [] | |
@less = block | |
end | |
def push i | |
@data.push i | |
len = @data.length | |
upward(len-1) |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
kibana: | |
container_name: elk-kibana | |
image: kibana:5 | |
ports: | |
- "5601:5601" | |
environment: | |
ELASTICSEARCH_URL: http://elasticsearch:9200 | |
links: | |
- elasticsearch | |
elasticsearch: |
require 'uri' | |
require 'net/http' | |
require 'digest' | |
def refresh_upyun_cache urls | |
raw_password = 'xxx' | |
bucket = 'xxx' | |
operator = 'xxx' | |
date = Time.now.gmtime.strftime("%a, %d %b %Y %T GMT") |