This file contains 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
#!/bin/bash | |
set -euo pipefail | |
OPUS_FILE=$1 | |
COVER_ART_WEBP=${OPUS_FILE/.opus/.webp} | |
[[ -f "$OPUS_FILE" ]] | |
[[ -f "$COVER_ART_WEBP" ]] | |
FFMETADATA_TMPFILE=$(mktemp --suffix .cover-art.ffmetadata) | |
PNG_COVER_TMPFILE=$(mktemp --suffix .cover-art.png) |
This file contains 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
#!/usr/bin/env python | |
# Based on | |
# https://www.nas.nasa.gov/hecc/support/kb/multiple-cpu-nodes-and-training-in-tensorflow_644.html | |
# edited to use small obtainable data, picking up the code from | |
# https://github.com/https-deeplearning-ai/tensorflow-1-public/blob/main/C1/W4/ungraded_labs/C1_W4_Lab_1_image_generator_no_validation.ipynb | |
# wget https://storage.googleapis.com/tensorflow-1-public/course2/week3/horse-or-human.zip https://storage.googleapis.com/tensorflow-1-public/course2/week3/validation-horse-or-human.zip | |
import os | |
import json |
This file contains 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
diff -r 15c1801e8901 mod_http_upload/mod_http_upload.lua | |
--- a/mod_http_upload/mod_http_upload.lua Mon Nov 13 12:37:21 2023 +0100 | |
+++ b/mod_http_upload/mod_http_upload.lua Mon Nov 13 15:33:32 2023 +0000 | |
@@ -117,7 +117,7 @@ | |
local storage_path = module:get_option_string(module.name .. "_path", join_path(prosody.paths.data, module.name)); | |
lfs.mkdir(storage_path); | |
-local function expire(username, host) | |
+local function expire(username, host, max_age) | |
if not max_age then return true; end |
This file contains 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
#!/bin/bash | |
set -e | |
ORIG_IMAGE="$1" | |
NATURE_M_IN_PIXEL="6.54" | |
SCALE=50000 # Nature meters in map meter | |
SHEET_AVAILABLE_WIDTH_MM=200 | |
SHEET_AVAILABLE_HEIGHT_MM=287 | |
GRID_STEP_M=1000 | |
GRID_THICKNESS=1 |
This file contains 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
set -g default-terminal "screen-256color" | |
# http://superuser.com/a/402084 | |
set-window-option -g xterm-keys on | |
##set -g default-command "reattach-to-user-namespace -l bash" | |
# Start numbering at 1 | |
set -g base-index 1 |
This file contains 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
--- debug.type 2019-01-04 13:25:05.104072678 +0000 | |
+++ gentoo.type 2019-01-04 13:35:29.080370338 +0000 | |
@@ -17322,6 +17322,26 @@ | |
Called from: [3] /usr/share/cmake/Modules/CMakeInitializeConfigs.cmake | |
[2] /usr/share/cmake/Modules/CMakeCInformation.cmake | |
[1] /home/j/work/foss/gentoo/spectrum/spectrum2-2.0.9/CMakeLists.txt | |
+/usr/share/cmake/Modules/CMakeInitializeConfigs.cmake(30): if(NOT ${_BUILD_TYPE} STREQUAL ) | |
+ Called from: [3] /usr/share/cmake/Modules/CMakeInitializeConfigs.cmake | |
+ [2] /usr/share/cmake/Modules/CMakeCInformation.cmake | |
+ [1] /home/j/work/foss/gentoo/spectrum/spectrum2-2.0.9/CMakeLists.txt |
This file contains 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
[ 16%] Building CXX object libtransport/CMakeFiles/transport.dir/PQXXBackend.cpp.o | |
cd /var/tmp/portage/net-im/spectrum2-2.0.9/work/spectrum2-2.0.9_build/libtransport && /usr/x86_64-pc-linux-gnu/gcc-bin/7.3. | |
0/x86_64-pc-linux-gnu-g++ -DBOOST_FILESYSTEM_VERSION=3 -DPURPLE_RUNTIME=0 -DSPECTRUM_VERSION=\"2.0.9\" -DWITH_LIBEVENT -DWI | |
TH_LOG4CXX -DWITH_PQXX -DWITH_PROTOBUF -DWITH_SQLITE -Dtransport_EXPORTS -isystem /usr/include/jsoncpp -I/usr/include/libpu | |
rple -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/var/tmp/portage/net-im/spectrum2-2.0.9/work/spectrum2-2.0.9/i | |
nclude -I/var/tmp/portage/net-im/spectrum2-2.0.9/work/spectrum2-2.0.9/libtransport/../spectrum/src/frontends/xmpp -DNDEBU | |
G -std=c++11 -Os -pipe -fPIC -fPIC -o CMakeFiles/transport.dir/PQXXBackend.cpp.o -c /var/tmp/portage/net-im/spectrum2-2.0 | |
.9/work/spectrum2-2.0.9/libtransport/PQXXBackend.cpp | |
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/experimental/optional:45:0, | |
from /usr/include/pqxx/ |
This file contains 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
$ gdb | |
GNU gdb (Gentoo 8.1 vanilla) 8.1 | |
Copyright (C) 2018 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "x86_64-pc-linux-gnu". | |
Type "show configuration" for configuration details. | |
For bug reporting instructions, please see: |
This file contains 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
--- hostapd-9999.ebuild 2018-07-29 13:25:09.438124204 +0100 | |
+++ hostapd-2.6_p20180728.ebuild 2018-07-29 14:03:32.033015313 +0100 | |
@@ -14,6 +14,14 @@ | |
if [[ $PV == 9999 ]]; then | |
inherit git-r3 | |
EGIT_REPO_URI="https://w1.fi/hostap.git" | |
+elif [[ $PV =~ ^.*_p[0-9]{8}$ ]]; then | |
+ EGIT_REPO_URI="https://w1.fi/hostap.git" | |
+ DATE=${PV/*_p/} | |
+ EGIT_COMMIT_DATE="${DATE:0:4}-${DATE:4:2}-${DATE:6:2}" |
This file contains 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
diff --git a/sh/start-stop-daemon.sh b/sh/start-stop-daemon.sh | |
index 35c642c0..693fe883 100644 | |
--- a/sh/start-stop-daemon.sh | |
+++ b/sh/start-stop-daemon.sh | |
@@ -80,6 +80,12 @@ ssd_stop() | |
pidfile="${startpidfile:-$pidfile}" | |
procname="${startprocname:-$procname}" | |
[ -n "$command" -o -n "$procname" -o -n "$pidfile" ] || return 0 | |
+ | |
+ # Allow restarting a crashed daemon with missing pidfile. |
NewerOlder