Skip to content

Instantly share code, notes, and snippets.

View johnarok's full-sized avatar

johnarok

View GitHub Profile
@johnarok
johnarok / mongo-snippets.md
Last active November 6, 2018 16:30
MongoDB snippets

Installing mongo db client

sudo apt-get install mongodb-clients

Shell

mongo localhost:20710
@johnarok
johnarok / rpms-rhel8-beta.txt
Created November 16, 2018 03:01
rpms on rhel8-beta
acl-2.2.53-1.el8.x86_64
audit-3.0-0.5.20180831git0047a6c.el8.x86_64
audit-libs-3.0-0.5.20180831git0047a6c.el8.x86_64
authselect-1.0-5.el8.x86_64
authselect-libs-1.0-5.el8.x86_64
basesystem-11-5.el8.noarch
bash-4.4.19-6.el8.x86_64
bind-export-libs-9.11.4-14.P2.el8.x86_64
biosdevname-0.7.3-1.el8.x86_64
brotli-1.0.6-1.el8.x86_64
@johnarok
johnarok / proc-on-rhel8-beta.txt
Created November 16, 2018 03:07
proc on rhel8-beta
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 21:52 ? 00:00:01 /usr/lib/systemd/systemd --switched-root --system --deserialize 17
root 2 0 0 21:52 ? 00:00:00 [kthreadd]
root 3 2 0 21:52 ? 00:00:00 [rcu_gp]
root 4 2 0 21:52 ? 00:00:00 [rcu_par_gp]
root 6 2 0 21:52 ? 00:00:00 [kworker/0:0H-kblockd]
root 8 2 0 21:52 ? 00:00:00 [mm_percpu_wq]
root 9 2 0 21:52 ? 00:00:00 [ksoftirqd/0]
root 10 2 0 21:52 ? 00:00:00 [rcu_sched]
root 11 2 0 21:52 ? 00:00:00 [rcu_bh]
@johnarok
johnarok / ContainerImageBuilding.md
Last active December 18, 2018 02:35
Container Image Building

https://docs.google.com/spreadsheets/d/19qit3B2kIjcQrf0w7H5yqeg-so1-pleA9Fs1EBQNvKc/edit?usp=sharing

URL Component Status Notes/Description

https://bugzilla.redhat.com/show_bug.cgi?id=1498628

Centos Open "rhel77-crypto-shadow-utils) shadow-utils: Update to get newuidmap and newgidmap binaries We are seeing a lot of interest in using buildah and podman as non root, withougt the newgimap and newuidmap on RHEL, those users will not be able use this feature. I think we should reconsider not at least adding these two executables "" shadow-utils-4.1.5.1-24.el7.x86_64"""

@johnarok
johnarok / git-cheatsheet.md
Last active December 21, 2018 15:12
git cheatsheet

clean workspace

git clean -df
git reset --hard

pull PR branch

@johnarok
johnarok / youversionlinks.sql
Created December 31, 2018 20:48
Bible Youversion links sql
@johnarok
johnarok / i3-lxqt-config.sh
Created January 2, 2019 18:55
i3-lxqt config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@johnarok
johnarok / certs-cheatsheet.md
Last active January 2, 2019 22:26
certs-cheatsheet

Install CA root cert in Ubuntu

    sudo mkdir /usr/share/ca-certificates/extra
    sudo cp foo.crt /usr/share/ca-certificates/extra/foo.crt # Copy the CA .crt file to this directory:
    sudo update-ca-certificates --fresh # will add the .crt file's path to /etc/ca-certificates.conf
    sudo dpkg-reconfigure ca-certificates # for debug and ux

In case of a .pem file on Ubuntu, it must first be converted to a .crt file: