Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am imsodin on github.
  • I am imsodin (https://keybase.io/imsodin) on keybase.
  • I have a public key ASAulG7eEdgux4i5DftuBDIv0wMCmFR10xNuTnHaBiYRJwo

To claim this, I am signing this object:

View Dockerfile
FROM openjdk:8
ENV ANDROID_HOME="/media/android-sdk"
ENV ANDROID_NDK_HOME="/media/android-ndk"
ENV GOROOT="/media/go"
RUN mkdir -p $ANDROID_HOME
RUN mkdir -p $ANDROID_NDK_HOME
RUN mkdir -p $GOROOT
@imsodin
imsodin / build
Last active Jun 27, 2018
digikam build dependency metapackage
View build
#!/bin/sh
set -e
equivs-build $1
rm repo/$1_* || :
mv $1*.deb -t repo/
dpkg-scanpackages repo | gzip > repo/Packages.gz
View test.go
package main
import (
"errors"
"fmt"
"os"
"path/filepath"
"runtime"
"strings"
)
View debug.go
package main
import (
"errors"
"fmt"
"os"
"path/filepath"
"runtime"
"strings"
)
View notifyWinSym.go
package main
import (
"path/filepath"
)
var root = `C:\parent\child`
func main() {
fmt.Println(filepath.EvalSymlinks(root))
@imsodin
imsodin / gist:8a40073de6f3192dd1e7c15842b15b7c
Created Jun 17, 2019
Output of ./gradlew --info publishReleaseListing
View gist:8a40073de6f3192dd1e7c15842b15b7c
Initialized native services in: /home/simon/.gradle/native
The client will now receive all logging from the daemon (pid: 4634). The daemon log file: /home/simon/.gradle/daemon/5.4.1/daemon-4634.out.log
Starting 3rd build in daemon [uptime: 8 mins 52.3 secs, performance: 99%, non-heap usage: 24% of 268.4 MB]
Using 4 worker leases.
Starting Build
Settings evaluated using settings file '/media/ext4_data/Coding/syncthing-android/settings.gradle'.
Projects loaded. Root project using build file '/media/ext4_data/Coding/syncthing-android/build.gradle'.
Included projects: [root project 'syncthing-android', project ':app', project ':syncthing']
> Configure project :
View gist:6e6bc1202c4832be00021bf1bdbdc0ec
Oct 17 23:11:09 hyena syncthing[15805]: [2WOFS] 2019/10/17 23:11:09.915318 walk.go:188: DEBUG: real to hash: git/projectA/smsgw/info-failover.txt
Oct 17 23:11:09 hyena syncthing[15805]: [2WOFS] 2019/10/17 23:11:09.915479 walk.go:188: DEBUG: real to hash: git/projectA/testmachine/credentials-simcard-tech.md
Oct 17 23:11:09 hyena syncthing[15805]: [2WOFS] 2019/10/17 23:11:09.915503 walk.go:188: DEBUG: real to hash: git/projectA/testmachine/credentials-simcard-tech.old.txt
Oct 17 23:11:09 hyena syncthing[15805]: [2WOFS] 2019/10/17 23:11:09.915718 walk.go:188: DEBUG: real to hash: git/projectA/testmachine/howto-reset.txt
Oct 17 23:11:09 hyena syncthing[15805]: [2WOFS] 2019/10/17 23:11:09.915837 walk.go:188: DEBUG: real to hash: git/projectA/testmachine/tech-sms-test-documentation.odt
Oct 17 23:11:09 hyena syncthing[15805]: [2WOFS] 2019/10/17 23:11:09.916104 walk.go:166: DEBUG: Walk progress done workfolder [git/projectA/smsgw/info-failover.txt git/projectA/testmachine/credentials-simcard-tech.md git/projectA/test
View indir.patch
diff --git a/lib/db/keyer.go b/lib/db/keyer.go
index bbd2efa29..591d02230 100644
--- a/lib/db/keyer.go
+++ b/lib/db/keyer.go
@@ -325,6 +325,11 @@ func (k defaultKeyer) GenerateFolderMetaKey(key, folder []byte) (folderMetaKey,
return key, nil
}
+type hashKey interface {
+ // Hash returns whatever hash is stored in the particular key implementing this.
You can’t perform that action at this time.