SELECT PARSE_TIMESTAMP('%Y-%m-%dT%H:%M:%E*SZ', '2018-10-12T13:22:27.120Z')
Find most active github forks:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add policy patset CORS_origins_allowed | |
bind policy patset CORS_origins_allowed .validdomain1.com -index 1 | |
bind policy patset CORS_origins_allowed .validdomain2.com -index 2 | |
add responder action CORS_deny_response respondwith q{"HTTP/1.0 401 Unauthorized CORS\r\n\r\n"} -bypassSafetyCheck YES | |
add responder policy CORS_origin_denied `!(HTTP.REQ.HEADER("Origin").EXISTS && HTTP.REQ.HEADER("Origin").TYPECAST_HTTP_URL_T.HOSTNAME.CONTAINS_ANY("CORS_origins_allowed"))` CORS_deny_response |
Add type="button"
attribute to <button>
to prevent clicking the button automatically via 'Enter' key.
source: https://coryrylan.com/blog/reactive-forms-with-clarity-ui-and-angular
Create a new Automater flow
Add 'Service'. Service receives 'no input' in 'iTerm'. Add 'Run AppleScript'.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SparkSession spark = SparkSession | |
.builder() | |
.appName("com.baybatu.sparkApp") | |
.master("local[*]") | |
.enableHiveSupport() | |
.config("dfs.nameservices", "nameService01") | |
.config("hive.metastore.uris", "thrift://10.20.30.40:8093") | |
.getOrCreate(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function toNumber(value) { | |
var convertedNumber = +value; | |
if (convertedNumber) { | |
return convertedNumber; | |
} | |
throw Error("Conversion error for value:" + value); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo tcpdump -Q pid=PID -k |
show create table TABLE_NAME