Skip to content

Instantly share code, notes, and snippets.

View thymbahutymba's full-sized avatar

Andrea Stevanato thymbahutymba

View GitHub Profile
FROM thymbahutymba/allegro4
COPY . /project/
WORKDIR project
RUN make
CMD ./a.out
@thymbahutymba
thymbahutymba / kdialog_cmus.sh
Last active March 23, 2018 11:50
Cmus current track's display script with kdialog
#!/bin/sh
timeout=2
time=""
# Take input argument
while [ "$1" != "" ]; do
case "$1" in
title)
title="$2" ;;
@thymbahutymba
thymbahutymba / required_by.sh
Last active March 19, 2018 21:43
Find which packages require the list of input packages
#!/bin/sh
[ $# -eq 0 ] && echo "./required_by <list packages>" && exit 1
list_required=();
for package in $*; do
to_sort=($(pacman -Qi $package 2> /dev/null | grep Required | cut -c 19-));
for element in ${to_sort[@]}; do