Skip to content

Instantly share code, notes, and snippets.

--- CMakeLists.txt 2022-02-10 20:55:35.503517231 +0100
+++ CMakeLists.txt.~1~ 2022-02-10 20:55:23.273461350 +0100
@@ -172,9 +172,9 @@
file(GLOB NCCORESRCS CONFIGURE_DEPENDS src/lib/*.c src/lib/*.cpp)
add_library(notcurses-core SHARED ${NCCORESRCS} ${COMPATSRC})
if(${USE_STATIC})
-add_library(notcurses-core-static STATIC ${NCCORESRCS})
+add_library(notcurses-core-static STATIC ${NCCORESRCS} ${COMPATSRC})
else()
-add_library(notcurses-core-static STATIC EXCLUDE_FROM_ALL ${NCCORESRCS})
@kmarius
kmarius / input.c
Last active September 28, 2021 17:54
// gcc input.c -lnotcurses -lnotcurses-core
#include <notcurses/notcurses.h>
#include <poll.h>
struct notcurses *nc;
struct ncplane *n;
int main() {
int ready;
#!/bin/sh
APIKEY=
LOG=/sdcard/Tasker/log/syncthing-once.txt
EVENT_TIMEOUT=15
log() {
printf '%s: %s\n' "$(date +'%b %d %H:%M:%S')" "$*" >> "$LOG"
}
#!/system/bin/sh
APIKEY=get this from syncthing config
# wait for service to start
retries=5
while ! curl -s -L -k -X GET -H "X-API-Key: $APIKEY" "http://localhost:8384/rest/system/ping"
do
sleep 1
if test $retries -eq 0; then
# Contributor: Connor Behan <connor.behan@gmail.com>
# Contributor: Rémy Oudompheng <remy@archlinux.org>
pkgname=macaulay2-git
pkgver=16445.ed52a44c9
pkgrel=6
pkgdesc='Software system for algebraic geometry and commutative algebra'
arch=('x86_64')
url='http://www.math.uiuc.edu/Macaulay2/'
license=('GPL')
@kmarius
kmarius / PKGBUILD
Last active December 17, 2018 14:03
mac2
pkgname=macaulay2-git
pkgver=16445.ed52a44c9
pkgrel=6
pkgdesc='Software system for algebraic geometry and commutative algebra'
arch=('x86_64')
url='http://www.math.uiuc.edu/Macaulay2/'
license=('GPL')
depends=('boost' 'cddlib' 'flex' 'gc' 'gcc' 'gcc-fortran'
'gdbm' 'gfan' 'givaro' 'glpk' 'gmp' 'gtest' 'lapack' 'make' 'mpfr'
'nauty' 'ntl' 'readline' 'time' 'yasm' 'gtest' 'wget')