yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install -y ansible
apt update && apt install software-properties-common dirmngr -y
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install -y ansible
apt update && apt install software-properties-common dirmngr -y
groups
usermod -a -G wheel admin
https://superuser.com/questions/547966/whats-the-difference-between-adduser-and-useradd
ls -l $(which adduser)
say -v ? say -v Alex 'I love this game'
#!/bin/bash | |
set -o errexit # set -e | |
set -o pipefail | |
# https://superuser.com/questions/100288/how-can-i-check-the-integrity-of-a-video-file-avi-mpeg-mp4 | |
OPTIONS=dio:v | |
LONGOPTS=debug,info,output:,verbose |
https://unix.stackexchange.com/questions/18506/recursive-statistics-on-file-types-in-directory
find . -type f | sed 's/.*\.//' | sort | uniq -c
find . -type f| ruby -ne 'puts $1 if $_ =~ /.*\.(\S+)/ ' | sort | uniq -c
https://rubular.com/ https://stackoverflow.com/questions/6673847/what-are-rubys-numbered-global-variables https://www.jianshu.com/p/974dee8953e6
cat <<- EOF | ruby -ne ' puts $& if $_ =~ /
.*?</div>/ ' a1test1b1test2c1
https://askubuntu.com/questions/343727/filenames-with-spaces-breaking-for-loop-find-command
touch '1 2.sss' && echo '1 2.sss' > '1 2.sss'
touch '2 1.sss'
touch 1 && echo 1 > 1
touch 2 && echo 2 > 2
find . -name '*.sss' | while read file; do file "$file" ; done
cat <<-EOF | ruby
END { puts 'END block' }
#!/usr/bin/env ruby | |
abort("please spectify a word") unless word = ARGV[0] | |
puts `curl -s 'http://dict-co.iciba.com/api/dictionary.php?key=79085A8D69548E2DC4CBEC053A8124FC&type=json&w=#{word}' | jq -r '.symbols[]?.parts[]?.means[]?'` | |