Skip to content

Instantly share code, notes, and snippets.

View commel's full-sized avatar

Bernd Ritter commel

View GitHub Profile
@commel
commel / repo-update.sh
Created October 26, 2020 14:34
opensuse local mirror
#!/bin/bash
echo "Sync für openSUSE Leap 15.2"
mkdir -p repo/oss repo/non-oss repo/oss update/non-oss update/oss
mkdir -p packman/essentials packman/extra packman/games packman/multimedia
# Sync OSS
rsync -rltpv rsync://ftp.gwdg.de/pub/opensuse/distribution/leap/15.2/repo/oss/ repo/oss/
@commel
commel / gitea.log
Created February 13, 2020 08:20
Gitea issue 10258 logfile
2020/02/13 09:05:14 ...dules/setting/log.go:276:newLogService() [I] Gitea Log Mode: File(File:info)
2020/02/13 09:05:14 ...les/setting/cache.go:45:newCacheService() [I] Cache Service Enabled
2020/02/13 09:05:14 ...s/setting/session.go:44:newSessionService() [I] Session Service Enabled
2020/02/13 09:05:14 routers/init.go:59:initDBEngine() [I] Beginning ORM engine initialization.
2020/02/13 09:05:14 routers/init.go:66:initDBEngine() [I] ORM engine initialization attempt #1/10...
2020/02/13 09:05:14 ...rm.io/xorm/engine.go:351:Ping() [I] PING DATABASE mssql
2020/02/13 09:05:14 routers/init.go:72:initDBEngine() [E] ORM engine initialization attempt #1/10 failed. Error: Login error: mssql: Fehler bei der Anmeldung für den Benutzer 'gitea'.
2020/02/13 09:05:14 routers/init.go:73:initDBEngine() [I] Backing off for 3 seconds
2020/02/13 09:05:17 routers/init.go:66:initDBEngine() [I] ORM engine initialization attempt #2/10...
2020/02/13 09:05:17 ...rm.io/xorm/engine.go:351:Ping() [I] PING DATABASE mssql
@commel
commel / TextLib.csproj
Created August 15, 2018 08:43
msbuild example
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<AssemblyName>TextLib</AssemblyName>
</PropertyGroup>
<ItemGroup>
<Compile Include="TextLib.cs" />
</ItemGroup>
<Target Name="Build">
<MakeDir Directories="$(OutputPath)" Condition="!Exists('$(OutputPath)')" />
<Csc Sources="@(Compile)" TargetType="library" OutputAssembly="$(OutputPath)$(AssemblyName).dll" />
### Keybase proof
I hereby claim:
* I am commel on github.
* I am comrad (https://keybase.io/comrad) on keybase.
* I have a public key whose fingerprint is 87A8 A3A8 1B49 55E2 1570 4767 C35B 7C8B 784C 3438
To claim this, I am signing this object:
@commel
commel / main.cpp
Created October 15, 2014 20:02
Partial implemented interface in C++
#include <iostream>
using namespace std;
class Base {
virtual void one() const = 0;
virtual void two() const = 0;
};
class First : public Base {
@commel
commel / Main.hx
Created October 14, 2014 19:59
C++11 Functional parameter vs Haxe
package app;
class Sayer {
public function new() {}
public function say(func: String->Void, text:String) {
func(text);
}
}
class Main {
@commel
commel / Clojure
Last active August 29, 2015 14:06
Function parameters in several languages
(defn handle [func text]
(func text)
)
(println (handle clojure.string/upper-case "hallo welt"))
@commel
commel / Main.hx
Last active August 29, 2015 14:06
Example of Static Extension in Haxe , see also http://haxe.org/manual/lf-static-extension.html
using Main.StringExtender;
class Main {
static function main() {
trace("hallo".makeUp());
}
}
class StringExtender {
static function makeUp(s:String) {