99 lines
3.0 KiB
Markdown
99 lines
3.0 KiB
Markdown
# Working with hack
|
|
|||
|
|
-|-
|
|
hh | build
|
|
t | test
|
|
t <name of the test class> | test
|
|
|
|
# Mercurial
|
|
|||
|
|
-|-
|
|
hg book <bookmark name> | temporary branch
|
|
hg pull/hg rebase -d master | git pull --rebase
|
|
hg revert <file> | git co -f <file>
|
|
hg commit | git ci
|
|
hg commit --stack
|
|
hg fold --from | merge multiple commits
|
|
hg hide | hide not needed commits
|
|
|
|
|
|
# Jelly Fish
|
|
|||
|
|
-|-
|
|
jf apply --all --suggested [--dry-run] | apply suggested changes
|
|
jf apply --accepted --suggested [--dry-run] | apply accepted changes
|
|
jf submit -e | sumbit and edit a comment
|
|
jf land | land the change
|
|
|
|
# Arc
|
|
|||
|
|
-|-
|
|
arc build | userd in configerator
|
|
arc canary |
|
|
arc canary --cancel |
|
|
|
|
# Buck
|
|
|||
|
|
-|-
|
|
buck test @mode/dev-nosan local/path/... | run all tests
|
|
buck build @mode/opt local/path/... | build optimized version (by default @mode/dev)
|
|
buck build -c python.helpers=true //path:target | interactive shell to play with the modules
|
|
... -ipython.par | not sure what this is
|
|
|
|
# Ondeman
|
|
|||
|
|
-|-
|
|
ondemand connect | connect to an ondemand server
|
|
|
|
|
ondemand devdb new | new dev DB
|
|
ondemand devdb list | list dev DBs
|
|
ondemand devdb connect --name <name of the ephemeral xdb shard> | connect to dev DB
|
|
|
|
|
`tail -f /var/facebook/logs/users/svcscm/error_log_svcscm`<br>VSC `slog: open` | slog on ondemand server
|
|
|
|
# MySQL
|
|
|||
|
|
-|-
|
|
SHOW DATABASES; |
|
|
SHOW DATABASES LIKE 'open%'; |
|
|
SHOW SCHEMAS; |
|
|
|
|
|
|
# Systems
|
|
|||
|
|
-|-
|
|
**Data** |
|
|
cdm | dataswarm jobs?
|
|
ODS | tiem series (guts)
|
|
Scribe | log distributor
|
|
Scuba | data in more details (tabular)
|
|
uhaul | data permissining ??
|
|
Warm Storage | HDFS
|
|
presto | in memory
|
|
spark |
|
|
hive | data store / query lang (use spark)
|
|
dataswarm | DAG
|
|
daiquery | simple queries
|
|
gigraph | graph queries
|
|
**Real Time** |
|
|
puma | PQL
|
|
|
|
|
|
|
|
# Bunnylol
|
|
|||
|
|
-|-
|
|
**Network** |
|
|
backbone | network topology
|
|
**Service** |
|
|
smc | service discovery service
|
|
**Sigma** |
|
|
scd | Sigma Context Dashboard
|
|
spd | Sigma Policy Dashboard
|
|
**Misc** |
|
|
slog | some logs?
|
|
@od | on demand sandbox something
|
|
centra <id> | review id to see if user is abusive or benign
|
|
|
|
# Ohno
|
|
ohno - |