getent passwd
root:x:0:0 ...
...
getent passwd root
root:x:0:0 ...
getent passwd
root:x:0:0 ...
...
getent passwd root
root:x:0:0 ...
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
# 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
Show task usage details
./gradlew -q help --task tasks
https://docs.gradle.org/current/userguide/command_line_interface.html
ruby -rsecurerandom -e "puts SecureRandom.alphanumeric(16)" | pbcopy
ruby -rsecurerandom -e "puts SecureRandom.random_number(10000)" | pbcopy
$ gem i webrick
$ ruby -run -e httpd -- --port 8000 .
[2023-05-17 22:52:46] INFO WEBrick 1.8.1
[2023-05-17 22:52:46] INFO ruby 3.2.1 (2023-02-08) [x86_64-linux]
[2023-05-17 22:52:46] INFO WEBrick::HTTPServer#start: pid=70048 port=8000
[2023-05-17 22:52:46] INFO To access this server, open this URL in a browser:
[2023-05-17 22:52:46] INFO http://127.0.0.1:8000