Skip to content

Instantly share code, notes, and snippets.

View mtomov's full-sized avatar

Martin Tomov mtomov

View GitHub Profile
@mtomov
mtomov / journalctl.dump.log
Created September 30, 2021 19:33
Dump of journalctl just before pressing Sleep
-- Logs begin at Thu 2021-09-30 20:26:29 BST, end at Thu 2021-09-30 20:30:26 BST. --
Sep 30 20:26:29 Dell-Precision-M3800-f2886894 systemd-journald[405]: System Journal (/var/log/journal/85b6839d195648f995ab7ef7611787f4) is 360.1M, max 4.0G, 3.6G free.
Sep 30 20:26:29 Dell-Precision-M3800-f2886894 sudo[2682]: pam_unix(sudo:session): session closed for user root
Sep 30 20:26:31 Dell-Precision-M3800-f2886894 systemd[1]: systemd-localed.service: Succeeded.
Sep 30 20:26:31 Dell-Precision-M3800-f2886894 systemd[1]: systemd-hostnamed.service: Succeeded.
Sep 30 20:26:33 Dell-Precision-M3800-f2886894 sudo[2692]: martin : TTY=pts/0 ; PWD=/home/martin ; USER=root ; COMMAND=/usr/bin/journalctl --vacuum-time=1s
Sep 30 20:26:33 Dell-Precision-M3800-f2886894 sudo[2692]: pam_unix(sudo:session): session opened for user root by (uid=0)
Sep 30 20:26:33 Dell-Precision-M3800-f2886894 sudo[2692]: pam_unix(sudo:session): session closed for user root
Sep 30 20:26:38 Dell-Precision-M3800-f2886894 systemd-timesyncd[847]: Timed out
@mtomov
mtomov / rails_inline.rb
Created July 19, 2022 16:41
Inline Rails Application example
# from https://github.com/rails/rails/issues/42835#issuecomment-884768835
# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }