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
# https://tailscale.com/kb/1207/small-tailscale | |
GOOS=linux GOARCH=mips GOMIPS=softfloat go build -trimpath -o tailscale.combined -tags ts_include_cli,ts_omit_aws,ts_omit_bird,ts_omit_tap,ts_omit_kube,ts_omit_completion,ts_omit_ssh,ts_omit_wakeonlan,ts_omit_capture,ts_omit_relayserver,ts_omit_taildrop -ldflags="-s -w" ./cmd/tailscaled | |
file tailscale.combined | |
ls -lah tailscale.combined | |
strip --strip-all tailscale.combined | |
ls -lah tailscale.combined | |
# https://github.com/tailscale/tailscale/issues/15129 | |
# https://openwrt.org/docs/guide-user/services/vpn/tailscale/start#installation_on_storage_constrained_devices | |
# binutils-mips-linux-gnu | |
# strip --strip-all |
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
/* | |
* myDatastore.test.ts - establish how the Datastore works. | |
* | |
* Created by Dr. Maximillian Dornseif 2021-12-12 in huwawi3backend 11.10.0 | |
* Copyright (c) 2021 Dr. Maximillian Dornseif | |
*/ | |
import { Datastore, Key } from "@google-cloud/datastore"; | |
describe("Key", () => { |
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
diff --git i/thexpmap.cxx w/thexpmap.cxx | |
index 118323a..f41f165 100644 | |
--- i/thexpmap.cxx | |
+++ w/thexpmap.cxx | |
@@ -2756,7 +2756,7 @@ thexpmap_xmps thexpmap::export_mp(thexpmapmpxs * out, class thscrap * scrap, | |
thexpmat_station_type_export_mp(TT_DATAMARK_PAINTED,SYMP_STATION_PAINTED) | |
} | |
flagexp = false; | |
-#define thexpmatselected_stationflag(flag,mid) if (((slp->station->flags & flag) == flag) && out->symset->is_assigned(mid)) flagexp = true; | |
+#define thexpmatselected_stationflag(flag,mid) if (((slp->station->flags & flag) == flag)) flagexp = true; |
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
# on the Python side you can not ovbserve a change in type: | |
# https://stackoverflow.com/questions/15254344/db-stringproperty-but-property-is-occasionally-datastore-types-text | |
from google.appengine.ext import ndb | |
from google.appengine.ext.ndb import polymodel | |
class TestModel(ndb.Model): | |
s_ni_nd = ndb.StringProperty(indexed=False) | |
s_ni_du = ndb.StringProperty(indexed=False, default=unicode('ufoo')) |
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
-------> | |
[] | |
'Content-Type' 'image/png' | |
'Content-Length' '89142' | |
'X-AppEngine-Upload-Creation' '2018-06-13 23:05:52.565812' | |
'X-AppEngine-Cloud-Storage-Object' '/gs/eap-dokumente/-/common/dokumente/L2Fw=' | |
-------> 8bit | |
[] |
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
#!/usr/bin/python | |
# encoding: utf-8 | |
# Proof of concept Wordpress.com to Ghost.org converter | |
import urlparse | |
from HTMLParser import HTMLParser | |
from ghost import Ghost # https://github.com/mdornseif/ghost-python | |
from markdownify import markdownify as md | |
from wordpress import API |
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
def versionsverbesserung_fuer_sofort([{'artnr': menge}, ...]): | |
ret = defaultdict(0) | |
erfuellbar = True | |
# wir koennen ja theoretisch mehrfach auf den selben Artikel zugreifen | |
# deswegen merken wir uns, was wir schon an freier menge "verbruacht" | |
# haben. | |
freimengenspeicher = {} | |
for artnr, menge in ...: | |
eap = get_eap(artnr) | |
if eap.fuer_kunde: |
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
diff --git i/modules/market/mk_controllers.py w/modules/market/mk_controllers.py | |
index 6334a83..90903ce 100644 | |
--- i/modules/market/mk_controllers.py | |
+++ w/modules/market/mk_controllers.py | |
@@ -16,6 +16,7 @@ from google.appengine.ext import ndb | |
from huTools import postmark | |
import config | |
+ | |
from modules import bot |
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
diff --git i/modules/market/mk_forms.py w/modules/market/mk_forms.py | |
index dd3646a..e78a8d8 100644 | |
--- i/modules/market/mk_forms.py | |
+++ w/modules/market/mk_forms.py | |
@@ -6,6 +6,8 @@ modules/market/mk_forms.py | |
Created by Christian Klein on 2015-12-01. | |
Copyright (c) 2015 HUDORA GmbH. All rights reserved. | |
""" | |
+import logging | |
+ |
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
mistakenot-2:appengine-toolkit md$ git diff | |
diff --git i/gaetk/handler.py w/gaetk/handler.py | |
index aeb7ebe..e50d63d 100755 | |
--- i/gaetk/handler.py | |
+++ w/gaetk/handler.py | |
@@ -24,10 +24,12 @@ import base64 | |
import datetime | |
import hashlib | |
import os | |
+import string |
NewerOlder