Just add the following function to your .bashrc
or equivalent. Tested on Ubuntu 24.04 with Bash.
Note
This is the English version of the article available at https://hidakatsuya.dev/2024/12/09/how-the-fixtures-work.html.
This article explores how fixtures :users
loads data in Rails tests. The investigation is based on the latest master
branch of Redmine.
To analyze the behavior, two test files, ATest
and BTest
, are added:
https://github.com/hidakatsuya/redmine/commit/36c68804179eea117ac6eb1ea57ac4d2eb898ca4
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
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "rubocop -aD", | |
"type": "shell", | |
"command": "redmined bundle exec rubocop -aD ${relativeFile}", | |
"presentation": { | |
"echo": true, | |
"reveal": "always", |
getent passwd
root:x:0:0 ...
...
getent passwd root
root:x:0: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
url=http://<url> | |
while true; do TZ=JST-9 date; curl $url; sleep 1s; done |
$ localectl status
System Locale: LANG=en_US.UTF-8
LANGUAGE=en_US:en
VC Keymap: us
X11 Layout: us
X11 Model: pc105
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
# Prerequistes | |
# * OS is Ubuntu 22.04 | |
# * Nvim is installed with AppImage | |
# Usage | |
# nvim /path/to/your/project/directory | |
function nvim() { | |
path=$1 | |
if [ -d "$path" ]; then | |
cd $path |
gh browse --branch $(git branch --show-current)
--show-current
https://www.git-scm.com/docs/git-branch#Documentation/git-branch.txt---show-current
realpath path/to/file
NewerOlder