Skip to content

Instantly share code, notes, and snippets.

@everdark
everdark / .screenrc
Last active May 17, 2020 04:10
Bash shell automation cheat sheet
# save as ~/.screenrc
startup_message off
caption always "%{=u .r} %-w%<%{=ub .Y}%n %t%{=u .r}%+w "
hardstatus alwaysignore
hardstatus alwayslastline "%{= .K} [%l]%<%=%{= .Y}$USER%{= .R}@%H %=%{= .m} %Y/%m/%d%{= .M} %0c "
defutf8 on
#caption always "%{= wk} %{= KY} [%n]%t @ %H %{-} %= %{= KR} %l %{-} | %{= KG} %Y-%m-%d %{-} "
#hardstatus alwayslastline " %-Lw%{= Bw}%n%f %t%{-}%+Lw %=| %0c:%s "
defscrollback 20480
@everdark
everdark / tank.simul.R
Last active December 11, 2015 22:38
Baysian simulation for the German tank problem
### Baysian estimate simulation of the "German tank problem"
### Coded by everdark, since 2013-01-30
## Simple simulation
set.seed(12345)
j <- 1000
range <- c(14:50)