sqlite3 ~/Library/Safari/History.db
sqlite> .tables
history_client_versions history_items history_tombstones
history_event_listeners history_items_to_tags history_visits
history_events history_tags metadata
import os | |
import pyarrow.parquet as pq | |
# | |
# Warning!!! | |
# Suffers from the same problem as the parquet-tools merge function | |
# | |
#parquet-tools merge: | |
#Merges multiple Parquet files into one. The command doesn't merge row groups, | |
#just places one after the other. When used to merge many small files, the |
sqlite3 ~/Library/Safari/History.db
sqlite> .tables
history_client_versions history_items history_tombstones
history_event_listeners history_items_to_tags history_visits
history_events history_tags metadata
CREATE TABLE testing_partition(patent_id BIGINT, date DATE) WITH ( OIDS=FALSE); | |
CREATE OR REPLACE FUNCTION create_partition_and_insert() RETURNS trigger AS | |
$BODY$ | |
DECLARE | |
partition_date TEXT; | |
partition TEXT; | |
BEGIN | |
partition_date := to_char(NEW.date,'YYYY_MM_DD'); | |
partition := TG_TABLE_NAME || '_' || partition_date; |
brew tap homebrew/versions | |
brew search gradle | |
brew install homebrew/versions/gradle112 | |
gradle -version | |
brew link --overwrite gradle112 | |
gradle -version |
-module(ntp). | |
-export([get_time/1, get_time/0]). | |
-define(NTP_PORT, 123). % udp | |
-define(SERVER_TIMEOUT, 5000). % ms | |
-define(EPOCH, 2208988800). % offset yr 1900 to unix epoch | |
ntp_servers() -> | |
[ "0.europe.pool.ntp.org", |
python -c 'import sys, yaml, json; j=json.loads(sys.stdin.read()); print(yaml.safe_dump(j))' | |
# on windows(PS): | |
# Get-Content example.json | python -c 'import sys, yaml, json; j=json.loads(sys.stdin.read()); print(yaml.safe_dump(j))' > example.yaml | |
# on Unix clones | |
# python -c 'import sys, yaml, json; j=json.loads(sys.stdin.read()); print(yaml.safe_dump(j)) < example.json > example.yaml |
def get_files(bucket: str, prefix: str): | |
max_files = 100000 | |
files = [] | |
truncated = True | |
continuation_token = None | |
try: | |
response = s3_client.list_objects_v2( |
Két végéről égetem a gyertyám,
reggelig sem tart ki tán, tudom,
de addig ellenség s te édes jóbarát,
hullócsillag fényemnél vigasztalódj
resource "aws_apigatewayv2_domain_name" "api-gw-domain-name" { | |
domain_name = var.domain-name | |
domain_name_configuration { | |
certificate_arn = var.acm-certificate-arn | |
endpoint_type = "REGIONAL" | |
security_policy = "TLS_1_2" | |
} | |
} |
user=> (def cl (-> (Thread/currentThread) (.getContextClassLoader))) | |
#'user/cl | |
user=> (-> cl (.addURL (java.net.URL. "file:////home/l1x/.m2/repository/org/clojure/math.combinatorics/0.0.3/math.combinatorics-0.0.3.jar"))) | |
nil | |
user=> (ns euler35 | |
(:use [clojure.math.combinatorics :only [permutations]])) | |
nil | |
euler35=> |