This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bashrc | |
show_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
if ${use_color} ; then | |
... | |
if [[ ${EUID} == 0 ]] ; then | |
PS1='\[\033[01;31m\][\h\[\033[01;36m\] \W\[\033[01;31m\]]\$\[\033[00m\] ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM bbsio/synchronet:latest | |
ARG DOSEMU_DEB_URL=http://ftp.us.debian.org/debian/pool/contrib/d/dosemu/dosemu_1.4.0.7+20130105+b028d3f-2+b1_amd64.deb | |
ARG DOSEMU_DEB=dosemu_1.4.0.7+20130105+b028d3f-2+b1_amd64.deb | |
RUN apt-get update \ | |
&& apt-get install -y rsh-redone-client locales locales-all \ | |
mtools dosfstools dos2unix ser2net socat | |
ENV USER=root LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remove ' man' from Makefile.am if the line begins with SUBDIRS | |
sed -i '/^SUBDIRS/s/\ man//' Makefile.am |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Minor adaptation of example at https://stackoverflow.com/a/61634784/6838037 | |
CHECK_CC_FLAGS := -Wall -Wextra -I. --std=gnu89 -fPIC -flto=auto | |
define check_cc_flag | |
$(shell echo 'int main() { return 0; }' | $(CC) $(1) -xc - 2>/dev/null && echo $(1)) | |
endef | |
HAVE_FLAGS += $(foreach flag,$(CHECK_CC_FLAGS),$(call check_cc_flag,$(flag))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From https://github.com/altendky/alqtendpy/blob/b375b1d9189f125828fdabbf2d329e5b1d04ff21/.github/workflows/ci.yml | |
name: CI | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- v* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker images -q -f dangling=true | xargs docker rmi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* mkdir_with_parents() | |
* | |
* Check for the existence of a dir, and create it if not found. | |
* Also creates parent directories. | |
*/ | |
int mkdir_with_parents (const char *dir, mode_t mode) | |
{ | |
if (exists (dir)) | |
return 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | |
It was created by kmod configure 26, which was | |
generated by GNU Autoconf 2.69. Invocation command line was | |
$ ./configure --prefix=/home/andy/Downloads/tmp/kmod-26/tmp/kmod/test | |
## --------- ## | |
## Platform. ## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make --no-print-directory install-exec-hook | |
if test "/home/andy/Downloads/tmp/kmod-26/tmp/kmod/test/lib" != "/home/andy/Downloads/tmp/kmod-26/tmp/kmod/test/lib"; then \ | |
/bin/mkdir -p /home/andy/Downloads/tmp/kmod-26/tmp/kmod/test/lib && \ | |
so_img_name=$(readlink /home/andy/Downloads/tmp/kmod-26/tmp/kmod/test/lib/libkmod.so) && \ | |
so_img_rel_target_prefix=$(echo /home/andy/Downloads/tmp/kmod-26/tmp/kmod/test/lib | sed 's,\(^/\|\)[^/][^/]*,..,g') && \ | |
ln -sf $so_img_rel_target_prefix/home/andy/Downloads/tmp/kmod-26/tmp/kmod/test/lib/$so_img_name /home/andy/Downloads/tmp/kmod-26/tmp/kmod/test/lib/libkmod.so && \ | |
mv /home/andy/Downloads/tmp/kmod-26/tmp/kmod/test/lib/libkmod.so.* /home/andy/Downloads/tmp/kmod-26/tmp/kmod/test/lib; \ | |
fi | |
/bin/mkdir -p '/usr/share/bash-completion/completions' | |
/usr/bin/install -c -m 644 shell-completion/bash/kmod '/usr/share/bash-completion/completions' |
NewerOlder