Skip to content

Instantly share code, notes, and snippets.

View mekanix's full-sized avatar

Goran Mekić mekanix

View GitHub Profile
@mekanix
mekanix / install-user.sh
Created May 17, 2021 07:09
FreeBSD pkg install as user
mkdir /tmp/pkgdb; xzcat /var/backups/pkg.sql.xz | sqlite3 -bail /tmp/pkgdb/local.sqlite; env INSTALL_AS_USER=1 PKG_DBDIR=/tmp/pkgdb pkg info -r libXft
env INSTALL_AS_USER=1 PKG_DBDIR=/tmp/pkgdb pkg info
#!/usr/local/bin/bash
deploy_challenge() {
local DOMAIN="${1}" TOKEN_FILENAME="${2}" TOKEN_VALUE="${3}"
lexicon $PROVIDER create ${DOMAIN} TXT --name="_acme-challenge.${DOMAIN}." --content="${TOKEN_VALUE}"
sleep 30
# This hook is called once for every domain that needs to be
{
"data": {
"input_valid_from": "2017-08-31T03:10:05.325",
"input_valid_to": "2017-08-31T03:11:05.325",
"data": [
{
"valid_from": "2017-08-31T03:10:00",
"data": [],
"valid_to": "2017-08-31T03:11:00"
}
{
"services": [
{
"name": "demo-geoserver",
"last_check": "2017-08-22T03:05:40.674",
"host": "localhost",
"check_interval": 60,
"type": "geoserver",
"id": 4
},
~/repos/geonode ♦ python manage.py migrate
Operations to perform:
Synchronize unmigrated apps: tasks, floppyforms, modeltranslation, django_extensions, djcelery, polymorphic, treebeard, corsheaders, django_forms_bootstrap, catalogue, humanize, geoserver, storages, mptt, friendlytagloader, staticfiles, metadataxsl, geoexplorer, sitemaps, proxy, gis, pinax_theme_bootstrap, pagination, autocomplete_light, messages, leaflet, api, social, security
Apply all migrations: dialogos, people, tastypie, agon_ratings, documents, actstream, sites, maps, contenttypes, announcements, user_messages, layers, sessions, guardian, auth, base, kombu_transport_django, groups, services, oauth2_provider, account, admin, upload, avatar, taggit
Synchronizing apps without migrations:
Creating tables...
Creating table celery_taskmeta
Creating table celery_tasksetmeta
Creating table djcelery_intervalschedule
Creating table djcelery_crontabschedule
django.core.exceptions.ImproperlyConfigured: Unable to load the SpatiaLite library extension "libspatialite.so.7" because: Undefined symbol "sqlite3_spatialite_init"
~/repos/geonode ♦ python manage.py migrate
Operations to perform:
Synchronize unmigrated apps: tasks, floppyforms, modeltranslation, django_extensions, djcelery, polymorphic, treebeard, corsheaders, django_forms_bootstrap, catalogue, humanize, geoserver, storages, mptt, friendlytagloader, staticfiles, metadataxsl, geoexplorer, sitemaps, proxy, gis, pinax_theme_bootstrap, pagination, autocomplete_light, messages, leaflet, api, social, security
Apply all migrations: dialogos, people, tastypie, agon_ratings, documents, actstream, sites, maps, contenttypes, announcements, user_messages, layers, sessions, guardian, auth, base, kombu_transport_django, groups, services, oauth2_provider, account, admin, upload, avatar, taggit
Synchronizing apps without migrations:
Creating tables...
Running deferred SQL...
Installing custom SQL...
Running migrations:
Rendering model states... DONE
python manage.py migrate monitoring
CommandError: App 'monitoring' does not have migrations (you cannot selectively sync unmigrated apps)
In file included from libxx_eabi_atexit.cxx:41:
/usr/home/meka/repos/nuttx/nuttx_libcxx/include/libcxx/cstdlib:106:9: error: no member named 'atof' in the global namespace
using ::atof;
~~^
/usr/home/meka/repos/nuttx/nuttx_libcxx/include/libcxx/cstdlib:107:9: error: no member named 'atoi' in the global namespace
using ::atoi;
~~^
/usr/home/meka/repos/nuttx/nuttx_libcxx/include/libcxx/cstdlib:108:9: error: no member named 'atol' in the global namespace
using ::atol;
~~^
#ifdef __FreeBSD__
#error "FreeBSD"
#endif