CATF44LT7C-eyJsaWNlbnNlSWQiOiJDQVRGNDRMVDdDIiwibGljZW5zZWVOYW1lIjoiVmxhZGlzbGF2IEtvdmFsZW5rbyIsImFzc2lnbmVlTmFtZSI6IiIsImFzc2lnbmVlRW1haWwiOiIiLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiJGb3IgZWR1Y2F0aW9uYWwgdXNlIG9ubHkiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IklJIiwicGFpZFVwVG8iOiIyMDIwLTAxLTA4In0seyJjb2RlIjoiQUMiLCJwYWlkVXBUbyI6IjIwMjAtMDEtMDgifSx7ImNvZGUiOiJEUE4iLCJwYWlkVXBUbyI6IjIwMjAtMDEtMDgifSx7ImNvZGUiOiJQUyIsInBhaWRVcFRvIjoiMjAyMC0wMS0wOCJ9LHsiY29kZSI6IkdPIiwicGFpZFVwVG8iOiIyMDIwLTAxLTA4In0seyJjb2RlIjoiRE0iLCJwYWlkVXBUbyI6IjIwMjAtMDEtMDgifSx7ImNvZGUiOiJDTCIsInBhaWRVcFRvIjoiMjAyMC0wMS0wOCJ9LHsiY29kZSI6IlJTMCIsInBhaWRVcFRvIjoiMjAyMC0wMS0wOCJ9LHsiY29kZSI6IlJDIiwicGFpZFVwVG8iOiIyMDIwLTAxLTA4In0seyJjb2RlIjoiUkQiLCJwYWlkVXBUbyI6IjIwMjAtMDEtMDgifSx7ImNvZGUiOiJQQyIsInBhaWRVcFRvIjoiMjAyMC0wMS0wOCJ9LHsiY29kZSI6IlJNIiwicGFpZFVwVG8iOiIyMDIwLTAxLTA4In0seyJjb2RlIjoiV1MiLCJwYWlkVXBUbyI6IjIwMjAtMDEtMDgifSx7ImNvZGUiOiJEQiIsI
cat /proc/sys/kernel/random/uuid
https://coderwall.com/p/t_sz3q/generate-uuid-at-shell-prompt
uuidgen
alias uuid="python -c 'import sys,uuid; sys.stdout.write(uuid.uuid4().hex)' | pbcopy && pbpaste && echo"
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "log" | |
| "net" | |
| "time" | |
| ) |
erb context=torrentkitty.html hello.html.erb
| #!/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[]?'` | |
curl -s https://gist.githubusercontent.com/jiahut/25d90714eb9f9181af36559ec4148f51/raw/ | grep -v -E '`|^#' | bash -xe
cat <<-EOF | ruby
END { puts 'END block' }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
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://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
| #!/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 |