Skip to content

Instantly share code, notes, and snippets.

View mz0's full-sized avatar
☂️
לֹא הַבַּיְשָׁן לָמֵד‎

Mark Zhitomirski mz0

☂️
לֹא הַבַּיְשָׁן לָמֵד‎
View GitHub Profile
15:33:32.501 [Thread-27] INFO net.corda.behave.rpc.RpcClient - PartyA,37.110.25.110:13001,flow-execute failed with error: currently only 'Enterprise v43' rpc-client can run 'execute' command.
15:33:32.501 [Thread-28] ERROR net.corda.behave.process.Command - java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: currently only 'Enterprise v43' rpc-client can run 'execute' command.
15:33:32.502 [Thread-28] ERROR net.corda.behave.process.Command - at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
15:33:32.502 [Thread-28] ERROR net.corda.behave.process.Command - at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1928)
15:33:32.502 [Thread-28] ERROR net.corda.behave.process.Command - at net.corda.behave.tools.rpcClient.RpcCommand.runRpcCommand(Main.kt:179)
15:33:32.502 [Thread-28] ERROR net.corda.behave.process.Command - at net.corda.behave.tools.rpcClient.FlowExecute.run(GeneralCommands.kt:131)
15:33:32.502 [Thread-28]
@mz0
mz0 / TDIR_Russian_CC_dec2019.srt
Last active January 8, 2020 16:37
Субтитры "The driver is red" www.thedriverisred.com
1
00:00:02,041 --> 00:00:05,083
Водитель - красный
2
00:00:05,509 --> 00:00:09,940
(цикады, птицы)
3
00:00:09,940 --> 00:00:12,020
@mz0
mz0 / pragmatic-git.md
Last active September 6, 2019 08:31
Git crash-course plan

Pragmatic Git

What Git is not? It's not SVN, it's not a lifesaver, it's not a backup, it's not an enigma, it's not a nightmare.

Just the right combination of tiny fractions of all of the above done in the most straightforward way :)

Well I lied you, it's borderline

@mz0
mz0 / ansi2html.sh
Created September 4, 2019 10:38
pixelbeat.org - Convert ANSI (terminal) colours and attributes to HTML
#!/bin/sh
# Convert ANSI (terminal) colours and attributes to HTML
# Licence: LGPLv2
# Author:
# http://www.pixelbeat.org/docs/terminal_colours/
# Examples:
# ls -l --color=always | ansi2html.sh > ls.html
# git show --color | ansi2html.sh > last_change.html
wget https://github.com/adobe/brackets/releases/download/release-1.14/Brackets.Release.1.14.64-bit.deb
curl -L https://github.com/adobe/brackets/releases/download/release-1.14/Brackets.Release.1.14.64-bit.deb > Brackets0.deb
dpkg-deb -R ./Brackets0.deb Brackets
sed -i 's/libcurl3/libcurl3 | libcurl4/' Brackets/DEBIAN/control
dpkg-deb -b Brackets Brackets-fixed.deb
sudo apt install -f ./Brackets-fixed.deb
# https://github.com/adobe/brackets/releases
# https://github.com/adobe/brackets/issues/14786#issuecomment-491285972
@mz0
mz0 / .bashrc
Created April 18, 2019 13:40
Alias quoting
# always enclose alias definintion in single-quotes
# otherwise expect smth. like `alias clan='ip a flu mvl1; kill 8750'`
alias clan='ip a flu mvl1; kill $(ps ax |grep mvl1|grep -v "grep"| sed "s/^[ \t]*//" | cut -f1 -d" ")'
@mz0
mz0 / backdate.sh
Last active April 15, 2019 17:01
Set archive message file date to the value of the "Date:" field of that message
for f in *; do touch -d "$(grep Date $f | sed "s/^Date: //")" $f; done
# push mode will look about like this:
if __name__ == '__main__':
inventory = TomlInventory("inventory/inventory.toml")
inventory.ssh([WebServerRole(), AnotherRole() ])
# if you want to run check mode, you can still access it, though it is not the default:
inventory.ssh([WebServers(), AnotherRole() ], check=True)
@mz0
mz0 / snapshot-notes.md
Last active April 18, 2019 14:46
Notes on FS snapshots, file-system hierarchy, atomic updates w.r.t. ZFS

FHS 3.0 was released June 3, 2015 on /var/lib

APT HOWTO (Obsolete Documentation) How to deal with errors

/srv/ - not part of FHS, site-specific data, served by the system /usr/ - secondary hierarchy for shareable, read-only data, formerly from UNIX source repository, now from UNIX system resources, -- files that are not required to boot or rescue the system. the same debian wiki page](https://wiki.debian.org/FilesystemHierarchyStandard)

Various notes on /usr unification / February 28, 2012 "/usr unification" (or simply "usrmove") is the idea of moving the contents of /bin, /lib, and related root-level directories into their equivalents under /usr.

@mz0
mz0 / inc1.yml
Last active February 5, 2019 14:46
-- Icanhaz mai var, Ansible? -- Not after 2.8 of me!
- name: Return task result in a variable named in 'ret'
debug: msg="My first argument is {{ arg1 | default("undefined!") }}"
register: "{{ ret }}"