城中技术栈

---创建函数----
CREATE OR REPLACE FUNCTION update_updated_at_column()
RETURNS TRIGGER AS $$
BEGIN
   NEW.updated_at = now(); 
   RETURN NEW;
END;
$$ language 'plpgsql';

---移除trigger----
DROP TRIGGER IF EXISTS update_feature_updated_at ON public.feature;
DROP TRIGGER IF EXISTS update_feature_table_updat...
#!/bin/bash

for param in `cat list.txt`; 
    do echo $param; curl -H"Content-Type:application/json" 
    -XPOST -d'$param' http://www.google.com/tasks/check/ > result;
    sleep 1
done
#!/bin/bash

str="CREATE TABLE T_Test ( id bigint(50) NOT NULL COMMENT '全局唯一ID',
create_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
modify_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPRESSED C...
#!/bin/bash

json() {
    curl -s "$1" | jq "$2" | sed 's#"##g'
}

json 'http://localhost:8500/v1/catalog/datacenters' '.[]' | while read dc; do
    json "http://localhost:8500/v1/health/like?dc=${dc}&passing=true" '.[].Node.Address' | while read ip; do
        echo curl -X PATCH "http://${ip}:8080/...
THEME_QUARK.BLOG.ITEM.CONTINUE_READING