Skip to content

Instantly share code, notes, and snippets.

View N0rbert's full-sized avatar

N0rbert

View GitHub Profile
@N0rbert
N0rbert / apt-file_ldd_parse.sh
Created November 11, 2021 09:19
Find wrong or local libraries using apt-file and output of ldd
#!/bin/bash
# Program purpose:
# analyze output of `ldd some-program` to find relevant packages in the configured APT repositories.
# To ease the analysis one can run it with filter `$0 ldd_output | grep Warning` to get only missed libraries/packages.
#
# Note: having `linux-vdso.so.1` in the output is normal, it belong C library on the linker level.
if [ "$#" -ne 1 ]; then
echo "This program should be run with one argument - '$0 ldd_output', where ldd_output is output of 'ldd' command for some executable."
exit 1
# -*- coding: utf-8 -*-
# Start Lock Screen menu item for Caja, shown only on ~/Desktop
#
# Copyleft 2021, Norbert
#
# Based on dejadup.py from deja-dup-caja deb-package.
import subprocess, os
# Python 2 or 3
try:
@N0rbert
N0rbert / test-mkl.sh
Last active February 17, 2024 14:55
This test script is a result of a discussion on AskUbuntu (https://askubuntu.com/q/1265756/66509 ) about using Intel MKL in Ubuntu
#!/bin/sh
# This test script is a result of a discussion on AskUbuntu (https://askubuntu.com/q/1265756/66509 ) about using Intel MKL in Ubuntu
#
# Modern Ubuntu versions include Intel MKL libraries since Ubuntu 19.10 (such as https://packages.ubuntu.com/focal/libmkl-full-dev )
# and it is expected that this library may be used by some scientific applicaitons like Octave, Scilab and others.
#
# Test method:
# 1. Execute this script with default mathematical libraries, save the results
# 2. Install the Intel MKL library with `sudo apt-get install libmkl-full-dev` confirming its usage as default math libraries alternative
# 3. Execute this script again after Intel MKL installation to compare the results
@N0rbert
N0rbert / acrordrc2020.pol
Last active March 10, 2023 12:21
PlayOnLinux script to install Adobe Acrobat Reader DC 2020 (should be lauched after installation using script for 2015)
#!/usr/bin/env playonlinux-bash
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Adobe Acrobat Reader DC"
PREFIX="AdobeAcrobatReaderDC"
WINEVERSION="4.0.3"
EDITOR="Adobe Systems Inc."
GAME_URL="https://acrobat.adobe.com/us/en/products/pdf-reader.html"
@N0rbert
N0rbert / meld
Last active October 26, 2020 22:24
Caja-Actions script to compare files or directories by using Meld in Caja, should be placed to `~/.config/caja/scripts`, was found sometime ago on the Deutsch forum
#!/bin/bash
#
# meld script for caja, place it to ~/.config/caja/scripts
#
# Copyright 2014 Norbert ..... <norbert@Entwicklung>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
@N0rbert
N0rbert / Dockerfile
Last active June 4, 2020 18:46
Bash scripts for compilation and packaging of `gtk3-mushrooms` on Ubuntu 18.04 LTS, 19.04 and 19.10 (pre-beta). Based on https://gist.github.com/lah7/a4dec89e61ee2875406731b3cd0ae90d .
# Optional Dockerfile for compilation of gtk3-mushrooms on Ubuntu.
# Change codename to necessary version (this file is for 20.04 LTS *focal*)
#
FROM ubuntu:focal
ENV DEBIAN_FRONTEND noninteractive
RUN echo "deb-src http://archive.ubuntu.com/ubuntu/ focal main multiverse multiverse restricted" >> /etc/apt/sources.list
RUN echo "deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main multiverse multiverse restricted" >> /etc/apt/sources.list