profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/sergey-dryabzhinsky/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Sergey Dryabzhinsky sergey-dryabzhinsky Rusoft Zelenograd, Moscow, Russian Federation https://dryabzhinsky.noip.me I'm any-admin and web/software developer in @rusoft . I just want things working fine. And that mean a lot things need to be working fine. Damn recursion.

sergey-dryabzhinsky/nginx-rtmp-module 831

NGINX-based Media Streaming Server

sergey-dryabzhinsky/python-zstd 87

Simple python bindings to Yann Collet ZSTD compression library

sergey-dryabzhinsky/qt-webkit-kiosk 45

This is simple browser application written on Qt & QtWebkit.

sergey-dryabzhinsky/dedupsqlfs 18

Deduplicating filesystem via Python3, FUSE and SQLite

sergey-dryabzhinsky/options_per_feed 16

Tiny-Tiny-RSS plugin - proxy settings per feed

sergey-dryabzhinsky/LXC-Web-Panel 5

LXC Web Panel repository

sergey-dryabzhinsky/rtmpdump 3

Git clone of git.ffmpeg.org/rtmpdump to do some patches

sergey-dryabzhinsky/idle_master_py 2

The Python version of Idle Master

rusoft/php-templates 1

Compiled PHP module to process template files.

sergey-dryabzhinsky/rockmongo-php7 1

RockMongo is a MongoDB administration tool, written in PHP 7, adapted to MongoDB driver and compatible with MongoDB 3.4

issue commentsergey-dryabzhinsky/dedupsqlfs

Common block/hash tables across many backups

For MySQL/PgSQL - need to startup two instances: for block/hash, and for node backup.

sergey-dryabzhinsky

comment created time in a day

issue commentsergey-dryabzhinsky/dedupsqlfs

Add support for PgSQL as storage DB

Still there is complication with PgSQL instance startup with local storage path. Probably before it will be done - need to learn to create config-files for MySQL too.

sergey-dryabzhinsky

comment created time in a day

issue openedsergey-dryabzhinsky/dedupsqlfs

Common block/hash tables across many backups

Allow store one copy of tables hash, block for many node backups.

Outcomes:

Cleanup-defragment complicated

This setup will NOT clean these tables as it not possible to figure on-the-fly which is empty.

For cleanups such setup need to create two-pass tool:

  • fetch all hash IDs in each node backup
  • filter current hash IDs that not in nodes-hash IDs

Vacuum

Vacuum of mega-block-hash tables will take eternity.

Search of hash/block

To speedup things - need to split hash/block tables in partitions. Preferably by ~2Gb (1950Mb) file size. If create new big partition file - need to resync data between all partitions. Or resync on-the-fly.

created time in a day

issue commentmtorromeo/r8168

Potential data loss and security breach when used with nfs server

Any updates with new drivers? Is it still hurts NFS?

petterreinholdtsen

comment created time in 2 days

Pull request review commentgo-gitea/gitea

Add Visible modes function from Organisation to Users too

 func GetInfo(ctx *context.APIContext) { 	//     "$ref": "#/responses/notFound"  	u := GetUserByParams(ctx)+	if !u.IsVisibleToUser(ctx.User) {+		ctx.JSON(http.StatusNotFound, nil)

Done

sergey-dryabzhinsky

comment created time in a month

PullRequestReviewEvent

Pull request review commentgo-gitea/gitea

Add Visible modes function from Organisation to Users too

 func (u *User) IsPasswordSet() bool { 	return len(u.Passwd) != 0 } +// IsVisibleToUser check if viewer is able to see user profile+func (u *User) IsVisibleToUser(viewer *User) bool {+	switch u.Visibility {+	case structs.VisibleTypePublic:+		return true+	case structs.VisibleTypeLimited:+		if viewer == nil || viewer.IsRestricted {+			return false+		}+		return true+	case structs.VisibleTypePrivate:+		if viewer == nil || viewer.IsRestricted {+			return false+		}+		// if private user if follow the viewer he know each other ...+		return IsFollowing(u.ID, viewer.ID) || viewer.IsAdmin

Still not enough. Tried to roundup that.

sergey-dryabzhinsky

comment created time in a month

PullRequestReviewEvent

push eventsergey-dryabzhinsky/gitea

Sergey Dryabzhinsky

commit sha 89255e93f5a30b7d107b28c560b34424b6ad8002

Fix visibility check for api get user info: - check for teams intersection - fix context output - right fake 404 if not visible

view details

push time in a month

push eventsergey-dryabzhinsky/gitea

Sergey Dryabzhinsky

commit sha f24d3bc54710b48b9db73fd8cdfbb7c6face0171

Append simple visibility check to user GetInfo api

view details

push time in a month

Pull request review commentgo-gitea/gitea

Add Visible modes function from Organisation to Users too

 func (u *User) IsPasswordSet() bool { 	return len(u.Passwd) != 0 } +// IsVisibleToUser check if viewer is able to see user profile+func (u *User) IsVisibleToUser(viewer *User) bool {+	switch u.Visibility {+	case structs.VisibleTypePublic:+		return true+	case structs.VisibleTypeLimited:+		if viewer == nil || viewer.IsRestricted {+			return false+		}+		return true+	case structs.VisibleTypePrivate:+		if viewer == nil || viewer.IsRestricted {+			return false+		}+		// if private user if follow the viewer he know each other ...+		return IsFollowing(u.ID, viewer.ID) || viewer.IsAdmin

Is it legitimate? Isn't here org membership must be checked?

sergey-dryabzhinsky

comment created time in a month

PullRequestReviewEvent

pull request commentgo-gitea/gitea

Add Visible modes function from Organisation to Users too

@noerw By new code idea it should not.

sergey-dryabzhinsky

comment created time in a month

pull request commentgo-gitea/gitea

Hide users from explore page

@6543 I think this issue need to be renamed corresponding to new changes.

sergey-dryabzhinsky

comment created time in a month

push eventsergey-dryabzhinsky/gitea

Sergey Dryabzhinsky

commit sha d04c7280b6f63cdb987251f580fdffe3815561c0

Respect current User in list search

view details

push time in a month

pull request commentgo-gitea/gitea

Hide users from explore page

Found new bug: if you make organization non-public - then you can't see it in admin panel - admin/orgs. Even if you admin.

sergey-dryabzhinsky

comment created time in a month

push eventsergey-dryabzhinsky/gitea

Sergey Dryabzhinsky

commit sha f768063f28f306d4067bb2f68693df5003fccd68

Fix user_test - need to check with app-default value, fix selected value in templates

view details

push time in a month

pull request commentgo-gitea/gitea

Hide users from explore page

@6543 I have doubts that it is simple as it sounds

sergey-dryabzhinsky

comment created time in a month

pull request commentgo-gitea/gitea

Hide users from explore page

@noerw

Also a suggestion: Shouldn't users be able to select default (server-wide preference: $DEFAULT_USER_VISIBILITY) from the dropdowns too?

You mean to mark app-default level in selects?

sergey-dryabzhinsky

comment created time in a month

push eventsergey-dryabzhinsky/gitea

Sergey Dryabzhinsky

commit sha 7c95a0659e35ee9dfef879b1130f8c26813788f8

Small fixes as suggested

view details

push time in a month

Pull request review commentgo-gitea/gitea

Hide users from explore page

 					<input id="location" name="location"  value="{{.SignedUser.Location}}"> 				</div> -					<div class="field">-						<label for="language">{{.i18n.Tr "settings.language"}}</label>-						<div class="ui language selection dropdown" id="language">-							<input name="language" type="hidden" value="{{.SignedUser.Language}}">-							{{svg "octicon-triangle-down" 14 "dropdown icon"}}-							<div class="text">{{range .AllLangs}}{{if eq $.SignedUser.Language .Lang}}{{.Name}}{{end}}{{end}}</div>-							<div class="menu">-							{{range .AllLangs}}-								<div class="item{{if eq $.SignedUser.Language .Lang}} active selected{{end}}" data-value="{{.Lang}}">{{.Name}}</div>-							{{end}}-							</div>+				<div class="field">+					<label for="language">{{.i18n.Tr "settings.language"}}</label>+					<div class="ui language selection dropdown" id="language">+						<input name="language" type="hidden" value="{{.SignedUser.Language}}">+						{{svg "octicon-triangle-down" 14 "dropdown icon"}}+						<div class="text">{{range .AllLangs}}{{if eq $.SignedUser.Language .Lang}}{{.Name}}{{end}}{{end}}</div>+						<div class="menu">+						{{range .AllLangs}}+							<div class="item{{if eq $.SignedUser.Language .Lang}} active selected{{end}}" data-value="{{.Lang}}">{{.Name}}</div>+						{{end}} 						</div> 					</div>+				</div>++				<div class="ui divider"></div>+				<!-- private block -->++				<div class="field">+					<label for="security-private"><strong>{{.i18n.Tr "settings.privacy"}}</strong></label>+				</div>++				<div class="inline field {{if .Err_Visibility}}error{{end}}">+					<span class="inline required field"><label for="visibility">{{.i18n.Tr "settings.visibility"}}</label></span>+					<div class="ui selection type dropdown">+						<input type="hidden" id="visibility" name="visibility" value="{{.visibility}}">

Yes, it's should be something like .SignedUser.Visibility

sergey-dryabzhinsky

comment created time in a month

PullRequestReviewEvent

Pull request review commentgo-gitea/gitea

Hide users from explore page

           "format": "int64",           "x-go-name": "StarredRepos"         },+        "visibility": {+          "description": "User visibility level option: public (default), limited, private",

Probably yes, do not need to mention it as default.

sergey-dryabzhinsky

comment created time in a month

PullRequestReviewEvent

pull request commentgo-gitea/gitea

Hide users from explore page

@6543 I mean I would like to leave this code in this state.

Do you have something greater in mind and based on this code? I think it should be merged first or backed for future.

sergey-dryabzhinsky

comment created time in a month

pull request commentsergey-dryabzhinsky/python-quicklz

Update quicklzpy.c: fix compile error on mac

Thanks.

jixiangqd

comment created time in a month

push eventsergey-dryabzhinsky/python-quicklz

jixiangqd

commit sha 3e525665043072abeb0053fcc170f55a99a7f534

Update quicklzpy.c quicklzpy.c:465:9: error: void function 'initquicklz' should not return a value [-Wreturn-type] return NULL; ^ ~~~~ quicklzpy.c:467:9: error: void function 'initquicklz' should not return a value [-Wreturn-type] return NULL;

view details

Sergey Dryabzhinsky

commit sha 2626e1735088fa56abeac41a35512ef4c2b2680d

Merge pull request #1 from jixiangqd/master Update quicklzpy.c: fix compile error on mac

view details

push time in a month

PR merged sergey-dryabzhinsky/python-quicklz

Update quicklzpy.c: fix compile error on mac
quicklzpy.c:465:9: error: void function 'initquicklz' should not return a value [-Wreturn-type]
        return NULL;
        ^      ~~~~
quicklzpy.c:467:9: error: void function 'initquicklz' should not return a value [-Wreturn-type]
        return NULL;
+2 -2

0 comment

1 changed file

jixiangqd

pr closed time in a month

pull request commentgo-gitea/gitea

Hide users from explore page

@6543 Yeah, I prefer to keep things simple. There is enough complexity already.

sergey-dryabzhinsky

comment created time in a month

push eventsergey-dryabzhinsky/gitea

Sergey Dryabzhinsky

commit sha 06e1e736b511bcbab8f0482630d75329fd519b65

Fix swagger template

view details

push time in a month