Skip to content

Instantly share code, notes, and snippets.

View unkmas's full-sized avatar

Ilya Menshikov unkmas

  • Yekaterinburg, Russia
View GitHub Profile
function felix_pwd_abbr {
base_pwd=$PWD
tilda_notation=${base_pwd//$HOME/\~}
pwd_list=(${(s:/:)tilda_notation})
list_len=${#pwd_list}
if [[ $list_len -le 1 ]]; then
echo $tilda_notation
return
fi
@unkmas
unkmas / README.md
Created February 28, 2021 13:46
Quick watermark for photos

Quick watermark

run `ruby watermark.rb source_file.png output_file.png "My watermark text"

@unkmas
unkmas / Dockerfile
Last active April 4, 2020 02:29
Princeton algs course Dockerfile
FROM openjdk:8
# Install algs4 wrapper
RUN mkdir -p /usr/local/algs4 \
&& cd /usr/local/algs4 \
&& curl -O "https://algs4.cs.princeton.edu/code/algs4.jar" \
&& curl -O "https://algs4.cs.princeton.edu/linux/{javac,java}-{algs4,cos226,coursera}" \
&& find ./ -regextype posix-extended -regex '.*(javac|java)-(algs4|cos226|coursera)' -exec sh -c 'chmod 755 $1 && mv $1 /usr/local/bin' - {} \;
# Install findbugs