Based on video by TEEJ or "Boot Dev".
Link: https://www.youtube.com/watch?v=Z9L3r9X349k
Create a file called main.c
:
Based on video by TEEJ or "Boot Dev".
Link: https://www.youtube.com/watch?v=Z9L3r9X349k
Create a file called main.c
:
Note this is fullpathjson2.py from my article http://www.infotinks.com/full-path-json/
To download:
wget https://gist.githubusercontent.com/bhbmaster/b4c2566a3b24f750c631b8b7f71d78e3/raw/fullpathjson.py -O fullpathjson.py
curl https://gist.githubusercontent.com/bhbmaster/b4c2566a3b24f750c631b8b7f71d78e3/raw/fullpathjson.py -o fullpathjson.py
To run (with python3)
#!/bin/bash | |
RUNTIME=60 | |
HOST=$(hostname) | |
OUT="$(hostname)-${RUNTIME}s" # filename prefix | |
echo "(1) 5 compute nodes running at the same time" | |
fio --bs 4k --rw randwrite --numjobs 10 --size 1G --directory /dvs/fio --group_reporting --name fio-${HOST} --direct 1 --runtime ${RUNTIME} --time_based --ioengine libaio --iodepth=1 --output-format=json | jq -c . &> $OUT-j1-w-5cn-io1.json | |
echo "(2) 5 compute nodes running at the same time" |
Generates plots of fragmentation on volumes that support extent analysis with the "filefrag" tool. BTRFS systems like the Netgear ReadyNAS 6 work with this.
# $Id: screen-keys.conf,v 1.7 2010-07-31 11:39:13 nicm Exp $ | |
# | |
# By Nicholas Marriott. Public domain. | |
# | |
# This configuration file binds many of the common GNU screen key bindings to | |
# appropriate tmux key bindings. Note that for some key bindings there is no | |
# tmux analogue and also that this set omits binding some commands available in | |
# tmux but not in screen. | |
# | |
# Note this is only a selection of key bindings and they are in addition to the |
{ | |
"editor.acceptSuggestionOnCommitCharacter": false, | |
"terminal.integrated.shell.osx": "/bin/zsh", | |
"gitlens.currentLine.enabled": false, | |
"window.zoomLevel": -1, | |
"http.proxyAuthorization": null, | |
// "terminal.integrated.shell.osx": "/bin/bash", | |
"git.autofetch": true, | |
"python.pythonPath": "~/.pyenv/shims/python", | |
"editor.columnSelection": false, |
# | |
# | |
# example input: aaaabbcaaa | |
# output: abca | |
# | |
# | |
# req: python 3.5+ | |
# | |
# |
#!/usr/bin/python | |
# | |
# solve string multiplier - google interview question | |
# the numbers are are multiplier preceded by brackets. no number before bracket has an imaginary 1. | |
# input: 3[ab]4[abc] | |
# output: ababababcabcabcabc | |
# input: z2[ab2[xy]a2[2[c]]]2[ko] | |
# output: zabxyxyaccccabxyxyacccckoko | |
# input: 3a or 3 |