This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # routes | |
| oc get routes --all-namespaces | |
| # get the image shas from a release | |
| oc adm release info quay.io/openshift-release-dev/ocp-release:4.14.10-x86_64 --pullspecs | awk '{print " - " $2}' | |
| # use butane for machine configs | |
| https://docs.openshift.com/container-platform/4.8/installing/install_config/installing-customizing.html | |
| # p&f issues |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Sun Jun 18 16:14:39 2017 /var/lib/tendrl/profiling/ceph_integration/last_run_func_stat.pstat | |
| 10682443 function calls (11078493 primitive calls) in 143.184 seconds | |
| Ordered by: cumulative time | |
| ncalls tottime percall cumtime percall filename:lineno(function) | |
| 1623/1624 1.569 0.001 155.177 0.096 /usr/lib/python2.7/site-packages/tendrl/commons/objects/__init__.py:164(NodeContext.load) | |
| 16853/16854 0.897 0.000 84.614 0.005 /usr/lib/python2.7/site-packages/etcd/client.py:550(Client.read) | |
| 17232/17233 0.661 0.000 78.459 0.005 /usr/lib/python2.7/site-packages/etcd/client.py:838(Client.wrapper) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://www.youtube.com/watch?v=kI-KpfQFgug # python coroutines | |
| https://www.youtube.com/watch?v=M_ns_vIshmw # gnu radio | |
| https://www.youtube.com/watch?v=t-TwCLwYIGE # Apache HTrace | |
| https://www.youtube.com/watch?v=aieG8gjpqsw # gimp tricks | |
| https://www.youtube.com/watch?v=jWM3HTwsNE8 # glusterfs @ facebook | |
| https://www.youtube.com/watch?v=4NG1ngz0nnY # BTR'ed ZFS | |
| https://www.youtube.com/watch?v=zkHkrSVHTjA # btrfs dedup | |
| https://www.youtube.com/watch?v=jr4zQc3g1Ts # terryble git ideas | |
| https://www.youtube.com/watch?v=Snr44e7Fjgw # QEMU/libvirt | |
| https://www.youtube.com/watch?v=X1NAJbLqEv8 # SELinux |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=X Virtual Frame Buffer Service | |
| After=network.target | |
| [Service] | |
| ExecStart=/usr/bin/Xvfb :99 -screen 0 1024x768x24 | |
| [Install] | |
| WantedBy=multi-user.target |
Sure, Github wins on the UI. Hands down. But, despite my initial annoyance with Gerrit when I first started using it almost a year ago, I am now a convert. Fully. Let me tell you why.
Note: This is an opinionated (on purpose) piece. I assume your preferences are like mine on certain ideas, such as:
- Fast-forward submits to the target branch are better than allowing merge commits to the target branch. The reason I personally prefer this is that, even if a non-conflicting merge to the target branch is possible, the fact that the review/pull request is not up to date with the latest on the target branch means feature branch test suite runs in the CI pipeline reporting on the review/PR may not be accurate. Another minor point is that forced merge commits are annoying as fuck (opinion) and clutter up Git log histories unnecessarily and I prefer clean histories.
- Atomic/related changes all in one commit is something worth striving for. Having your dev
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """Parse Python source code and get or print docstrings.""" | |
| __all__ = ('get_docstrings', 'print_docstrings') | |
| import ast | |
| from itertools import groupby | |
| from os.path import basename, splitext |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apply plugin: 'groovy' | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| //needed to avoid groovy not on classpath error. | |
| testCompile module('org.codehaus.groovy:groovy:1.8.0') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- that is very similar to that of pandoc's HTML writer. | |
| -- There is one new feature: code blocks marked with class 'dot' | |
| -- are piped through graphviz and images are included in the HTML | |
| -- output using 'data:' URLs. | |
| -- | |
| -- Invoke with: pandoc -t sample.lua | |
| -- | |
| -- Note: you need not have lua installed on your system to use this | |
| -- custom writer. However, if you do have lua installed, you can | |
| -- use it to test changes to the script. 'lua sample.lua' will |
NewerOlder