Skip to content

Instantly share code, notes, and snippets.

View maximveksler's full-sized avatar
Wow

Maxim Veksler maximveksler

Wow
  • Tel Aviv, Israel
  • 08:45 (UTC +03:00)
  • X @mvxlr
View GitHub Profile
@maximveksler
maximveksler / install_jq.sh
Last active March 5, 2024 12:02 — forked from kamermans/install_jq.sh
Install jq (JSON Command Line processor)
#!/bin/bash -e
# This scripts installs jq: http://stedolan.github.io/jq/
JQ=/usr/bin/jq
curl -o "$JQ" -L https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64 && chmod +x $JQ
echo "$($JQ --version) installed."
@maximveksler
maximveksler / Brewfile
Created June 12, 2023 03:08 — forked from jasonmorganson/Brewfile
MacOS Brewfile
tap "argoproj/tap"
tap "azure/draft"
tap "boz/repo"
tap "browsh-org/browsh"
tap "contribsys/faktory"
tap "datawire/blackbird"
tap "davrodpin/mole"
tap "derailed/k9s"
tap "dtan4/dtan4"
tap "eko/tap"
- name: changesets
id: changed-files
uses: tj-actions/changed-files@v34
with:
separator: ","
dir_names: true
dir_names_max_depth: 2
files: |
apps/**
m@m-inspiron5567:~/code/pr/flutter_firebase_phone_auth_riverpod$ flutter pub get
Running "flutter pub get" in flutter_firebase_phone_auth_riverpod... 2,206ms
m@m-inspiron5567:~/code/pr/flutter_firebase_phone_auth_riverpod$ flutter pub run build_runner build --delete-conflicting-outputs
[INFO] Generating build script...
[INFO] Generating build script completed, took 384ms
[INFO] Precompiling build script......
[INFO] Precompiling build script... completed, took 7.5s
[INFO] Initializing inputs
@maximveksler
maximveksler / big query merge.sql
Created July 12, 2018 20:08
Big Query Table Merge
# Google BigQuery - Merge data
bigquery_merge() {
echo "Loading ${GC_BQ_WORK_TABLE} table into ${GC_BQ_MERGE}"
bq --location=US load --source_format=NEWLINE_DELIMITED_JSON --encoding=UTF-8 \
"${GC_BQ_MERGE}.${GC_BQ_WORK_TABLE}" "${TRANSFORM_STORE}/${filename}" \
schemas/${GC_BQ_TABLE}.json.schema
echo "Merging into ${GC_BQ_DATASET}.${GC_BQ_TABLE}"
cat <<bigtable-merge | bq --location=US query --use_legacy_sql=false --max_rows=0
MERGE \`${GC_BQ_DATASET}.${GC_BQ_TABLE}\` T
@maximveksler
maximveksler / Fallacies of distributed computing.md
Last active July 7, 2021 17:32
Fallacies of distributed computing

Fallacies of distributed computing

The network is reliable;

Latency is zero;

Bandwidth is infinite;

The network is secure;

<graphml xmlns='http://graphml.graphdrawing.org/xmlns'>
<key id='type' for='node' attr.name='type' attr.type='string'></key>
<key id='code' for='node' attr.name='code' attr.type='string'></key>
<key id='icao' for='node' attr.name='icao' attr.type='string'></key>
<key id='desc' for='node' attr.name='desc' attr.type='string'></key>
<key id='region' for='node' attr.name='region' attr.type='string'></key>
<key id='runways' for='node' attr.name='runways' attr.type='int'></key>
<key id='longest' for='node' attr.name='longest' attr.type='int'></key>
<key id='elev' for='node' attr.name='elev' attr.type='int'></key>
<key id='country' for='node' attr.name='country' attr.type='string'></key>
C:\Users\user\code>pip install rpaframework
Collecting rpaframework
Downloading rpaframework-9.4.0-py3-none-any.whl (214 kB)
|████████████████████████████████| 214 kB 595 kB/s
Collecting robotframework-sapguilibrary<2.0,>=1.1; sys_platform == "win32"
Downloading robotframework-sapguilibrary-1.1.tar.gz (9.5 kB)
Collecting robotframework-seleniumlibrary<6.0.0,>=5.1.0
Downloading robotframework_seleniumlibrary-5.1.3-py2.py3-none-any.whl (94 kB)
|████████████████████████████████| 94 kB 3.3 MB/s
Collecting pywinauto<0.7.0,>=0.6.8; python_version < "3.7.6" and sys_platform == "win32" or python_version > "3.7.6" and python_version < "3.8.1" and sys_platform == "win32" or python_version > "3.8.1" and sys_platform == "win32"
@maximveksler
maximveksler / all the ways to create spark dataframe.py
Last active October 21, 2020 20:42
All the ways to create a Spark Dataframe (pyspark)
data = [
("a", "Alice", 34),
("b", "Bob", 36),
("c", "Charlie", 30),
]
df = spark.createDataFrame(data, schema=["id", "name", "age"])
@maximveksler
maximveksler / 0_nonsterile_sampler_macbookair
Last active April 21, 2020 11:20
julienschmidt/go-http-routing-benchmark (updated 02.2015)
Maxims-MacBook-Air:go-http-routing-benchmark maximveksler$ go get github.com/julienschmidt/go-http-routing-benchmark
Maxims-MacBook-Air:go-http-routing-benchmark maximveksler$ go test -bench=. -timeout=20m
2015/02/04 23:24:05 [config.go:284] [W] open /Users/maximveksler/go/src/github.com/julienschmidt/go-http-routing-benchmark/conf/app.conf: no such file or directory
#GithubAPI Routes: 203
Ace: 60520 Bytes
Beego: 165192 Bytes
Bone: 92960 Bytes
Denco: 36440 Bytes
Gin: 66896 Bytes
GocraftWeb: 88840 Bytes