profile
viewpoint

NightMachinary/betterborg 6

My fork of uniborg, which is a pluggable Telegram bot and userbot based on Telethon. Gives you a unix shell in Telegram!

NightMachinary/.shells 4

My scripts and dotfiles.

NightMachinary/.spacemacs 2

My old .spacemacs config. See NightMachinary/doom.d for my new, refactored emacs config.

NightMachinary/brish 1

A bridge between Python and any interpreter, but with special support for zsh. Shell out without forking, and easily interpolate Python expressions into your shell code.

NightMachinary/ddg 1

Artworks I have produced by utilizing neuralstyle.

NightMachinary/doom.d 1

My emacs config, refactored into different modules. Mostly usable without doom, too.

NightMachinary/Anime4KCPP 0

A high performance implementation of Anime4K in C++ with both GUI and CLI, support video processing and GPU acceleration

NightMachinary/aparat-dl 0

Download from aparat

startedyuuiko/AquaTouch

started time in 44 minutes

startedkoekeishiya/yabai

started time in 2 hours

push eventNightMachinary/.shells

NightMachinary

commit sha bfa751d9a6aa620334da355e479e6e3cf224a28a

.

view details

NightMachinary

commit sha 44e9edcb95da90c04caba84d469799bc61a46f53

Merge branch 'master' of gitlab.com:NightMachinary/night.sh

view details

push time in 14 hours

push eventNightMachinary/.shells

NightMachinary

commit sha 5070c8a349071809bde3f7a5c791cadba8529af8

.

view details

push time in 14 hours

push eventNightMachinary/.shells

NightMachinary

commit sha a436608a25e56f1e7a8dea1abfdbaee9467138b5

.

view details

NightMachinary

commit sha 7d719c33ce0d7347441b0773b1648aaed91422a7

.

view details

NightMachinary

commit sha 39390f66f2bfca64aebcba4a5ff1b2af7051931d

Merge branch 'master' of gitlab.com:NightMachinary/night.sh

view details

push time in 17 hours

startedbash-lsp/bash-language-server

started time in 19 hours

startedvasa81/vscode-dumb-jump

started time in 19 hours

push eventNightMachinary/.shells

NightMachinary

commit sha f1cf647786bd38d7df11b2291f145fccfca05800

.

view details

NightMachinary

commit sha 9aab534157b25ddcb0048bf852ddbf6e3534ef56

.

view details

NightMachinary

commit sha c023bf9d80510ec6fcc40a44cef8e50b4e56acf6

Merge branch 'master' of gitlab.com:NightMachinary/night.sh

view details

push time in 20 hours

startedraquo/hnapp

started time in 21 hours

push eventNightMachinary/readability-cli

NightMachinary

commit sha 458b77af6629460f16e6898bbe146a7eac90e08f

improved error messages

view details

push time in 21 hours

push eventNightMachinary/.shells

NightMachinary

commit sha f170eda32db532c278b3f3853017e058bffeea34

.

view details

NightMachinary

commit sha 73efcab11c99c366a0fe0865efb5fb17c4fd6b51

.

view details

NightMachinary

commit sha a1a49fc26ce6e5ead3a4f5345949b1203b232d0b

Merge branch 'master' of gitlab.com:NightMachinary/night.sh

view details

push time in 2 days

startedmammuth/kindle-clippings

started time in 2 days

startedplibither8/refined-hacker-news

started time in 3 days

startedfacebookincubator/retrie

started time in 3 days

issue commentrclone/rclone

Tab-completion for remote paths

@ncw

In theory rclone genautocomplete zsh should work. In practice it has some shortcomings I believe (not a zsh user).

It completes the options, but not the remote paths.

Is there a standard way of caching completions?

I don't know, I am not familiar with the completion systems. I just wrote a custom script for myself that caches rclone lsf --recursive and use fzf together with the cache to copy files to my local machine.

# eval-memoi caches the command in redis
rclonef () {
	local paths=("${(@f)$(memoi_expire=${rfExpire:-$((3600*24))} eval-memoi rclone lsf --recursive "${1}:" | fzf)}")
	local i
	for i in $paths[@]
	do
		rclone copy "${1}:$i" "$2"
	done
}
adamboche

comment created time in 4 days

push eventNightMachinary/.shells

NightMachinary

commit sha 4107c4f38cbf2969b3a88dfe953994ae9a180dd4

.

view details

NightMachinary

commit sha 27841df3135d0180bb9e532cfda5a714b83f1a6a

.

view details

push time in 4 days

issue openedlibgit2/rugged

rugged.so: undefined symbol: SSL_load_error_strings

❯ github-linguist a
/home/linuxbrew/.linuxbrew/opt/ruby/bin/ruby: symbol lookup error: /home/eva/.gem/gems/rugged-1.0.1/lib/rugged/rugged.so: undefined symbol: SSL_load_error_strings

❯ ldd /home/eva/.gem/gems/rugged-1.0.1/lib/rugged/rugged.so
        linux-vdso.so.1 (0x00007ffc0ab79000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f9318920000)
        libssh2.so.1 => /usr/lib/x86_64-linux-gnu/libssh2.so.1 (0x00007f93188f1000)
        libssl.so.1.1 => /home/linuxbrew/.linuxbrew/opt/openssl@1.1/lib/libssl.so.1.1 (0x00007f931865c000)
        libcrypto.so.1.1 => /home/linuxbrew/.linuxbrew/opt/openssl@1.1/lib/libcrypto.so.1.1 (0x00007f931817c000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f9318160000)
        libruby.so.2.7 => /home/linuxbrew/.linuxbrew/Cellar/ruby/2.7.1_3/lib/libruby.so.2.7 (0x00007f9317c0b000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9317a19000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f9318ac7000)
        libgcrypt.so.20 => /usr/lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f93178fb000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f93178f5000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f93178e8000)
        libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f93178ad000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f931775e000)
        libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f931773b000)

I tried upgrading ruby and reinstalling rugged and github-linguist, to no avail.

created time in 4 days

push eventNightMachinary/.shells

NightMachinary

commit sha 5761b4048e78ca91ab88bdf1b7dcbf23e172e298

.

view details

push time in 4 days

push eventNightMachinary/.shells

NightMachinary

commit sha 3ba400cf4c4fc3f2b9b7a545c8b97c37f066f4e1

.

view details

NightMachinary

commit sha 5aabbcab4b23f67dc618e71277b5f8513e46a1a9

Merge branch 'master' of gitlab.com:NightMachinary/night.sh

view details

push time in 4 days

push eventNightMachinary/.shells

NightMachinary

commit sha 1e6f28c251bd4740613a4b001320727b3a3e7b83

.

view details

push time in 4 days

push eventNightMachinary/.shells

NightMachinary

commit sha 3a4f06cb0a90cc316e70be39bfc0c4178fafd2d1

.

view details

NightMachinary

commit sha cf589cd3f667c47cf6f89c5b3d268851704f89ec

.

view details

push time in 4 days

push eventNightMachinary/.shells

NightMachinary

commit sha 8c36724a6ca67ba1906d19e053f4950b8baa10d7

.

view details

push time in 4 days

issue commentrclone/rclone

Tab-completion for remote paths

In bash, the completions don't seem to cache. Which makes it very slow.

adamboche

comment created time in 4 days

issue commentrclone/rclone

Tab-completion for remote paths

It seems this feature is not supported for zsh autocompletion?

adamboche

comment created time in 4 days

create barnchNightMachinary/BTT

branch : master

created branch time in 5 days

created repositoryNightMachinary/BTT

created time in 5 days

created repositoryNightMachinary/BetterTouchTool

created time in 5 days

push eventNightMachinary/.shells

NightMachinary

commit sha 0a996612146353118b5e801e8156e57464b6b0d5

.

view details

NightMachinary

commit sha c57bcb4f146cf676051fbb0958b56cac48564713

.

view details

push time in 5 days

startedstps/mpv-ios-scripts

started time in 5 days

push eventNightMachinary/.shells

NightMachinary

commit sha 862188c9436968192e953a1043e0b71f11bed27e

.

view details

push time in 6 days

startedrushilsrivastava/image_search

started time in 6 days

push eventNightMachinary/.shells

NightMachinary

commit sha 801339e921d5f9112c766156d23400053b4d035b

.

view details

NightMachinary

commit sha 316f06c59e662b600f489e4b49b559a00673c6e0

Merge branch 'master' of gitlab.com:NightMachinary/night.sh

view details

push time in 6 days

push eventNightMachinary/.shells

NightMachinary

commit sha 5be1b4d792916a266d12a8902685d39170b2dfce

.

view details

push time in 6 days

push eventNightMachinary/.shells

NightMachinary

commit sha bef1d33c895e412e8347f4fb32f8e80acfd87a88

.

view details

NightMachinary

commit sha f88f8d70be376b0353787bb0f2e4393e45cdf706

Merge branch 'master' of gitlab.com:NightMachinary/night.sh

view details

push time in 6 days

startedminimaxir/gpt-3-experiments

started time in 6 days

push eventNightMachinary/.shells

NightMachinary

commit sha 9a621ff1d128cb006b3ea364fff3be7912b58ba2

.

view details

NightMachinary

commit sha 129f96fb8aeeed9562eef174a8e536d751f43cf5

.

view details

NightMachinary

commit sha 4106f698ea5f604fdb8fe3c9ce4e0fc772c0cae4

Merge branch 'master' of gitlab.com:NightMachinary/night.sh

view details

push time in 6 days

issue commentwenhaoz-fengcai/wkdict

TypeError: Unknown color 'bright_magenta'

So this is still unsolved ...

NightMachinary

comment created time in 6 days

push eventbatbone/stochastic

NightMachinary

commit sha 24ae21800fd628af0b8f8669ae6b0cbf102c4a25

added missing files

view details

push time in 6 days

push eventNightMachinary/.shells

NightMachinary

commit sha b51ea8f8f0945c7016953f986a2f32df0eb5bd36

.

view details

NightMachinary

commit sha 43e400d33a039f0d6a137dafc79154946488bd85

Merge branch 'master' of gitlab.com:NightMachinary/night.sh

view details

push time in 6 days

push eventNightMachinary/.shells

NightMachinary

commit sha 67cc75afc1a08477cf18529f50aa6c86e7234ed9

.

view details

push time in 6 days

issue openedTortugaPower/BookPlayer

[FR] Support streaming from cloud providers

Considering that our mobile devices have rather limited storage, and we switch between devices frequently, I feel a strong need to stream audio content from cloud storage (Google Drive, Dropbox, or even a simple HTTP static file server in some cases.). Ideally, the resume information would get saved near the file being played, so it can be played from another device, but just streaming from the cloud is a huge value.

created time in 6 days

startedjaysonvirissimo/primary-data

started time in 8 days

issue commentigor-petruk/scriptisto

Add package to Homebrew

It seemed to work fine on my mac machine. Since Homebrew works on Linux, too, I assume it should be possible to do this on Linux.

NightMachinary

comment created time in 8 days

push eventNightMachinary/.shells

NightMachinary

commit sha fae105f56b296eb1ef20fd2be55d7ce6c74a7f14

.

view details

push time in 8 days

push eventNightMachinary/.shells

NightMachinary

commit sha fc3552ddf2d4f7d865b8d674f78a2655f43f1fe6

.

view details

push time in 8 days

push eventNightMachinary/.shells

NightMachinary

commit sha fb7319689e8d0996595acfff0ed4dedb2766b96e

.

view details

push time in 8 days

push eventNightMachinary/.shells

NightMachinary

commit sha c2e3e411682cc1abdc8183263c2f3923c8503a01

.

view details

push time in 8 days

push eventNightMachinary/.shells

NightMachinary

commit sha 859ddda0fe82734e965e86512d7705eae9c1bb05

.

view details

NightMachinary

commit sha 37e68ac896553fd9afb7ea2357f25db3fddc6fb1

Merge branch 'master' of gitlab.com:NightMachinary/night.sh

view details

push time in 8 days

push eventNightMachinary/.shells

NightMachinary

commit sha 663f40605ad81c5d00c749cd68787c9cd16dd7bd

.

view details

NightMachinary

commit sha 2b9440e834e243ee5af173e51a95c4eb633b51c1

.

view details

NightMachinary

commit sha 84eb7e9a387a644c0c2693c1a96a9f371fb78e38

.

view details

NightMachinary

commit sha 52a967c4f5f3c5b977e913c1fddd4e064fa5004b

Merge branch 'master' of gitlab.com:NightMachinary/night.sh

view details

push time in 8 days

push eventNightMachinary/.shells

NightMachinary

commit sha a6ec1f016fcc087ed8eea162b99510ca9d16408c

.

view details

NightMachinary

commit sha 1b15a8296a2a995f31b1e5234f1b68350e95ac34

.

view details

NightMachinary

commit sha 9109f2bb90aff3f8cd87b71c13661a3f7ff933f6

Merge branch 'master' of gitlab.com:NightMachinary/night.sh

view details

push time in 9 days

issue commentajeetdsouza/zoxide

Add zsh completion

@fourjay Perhaps send a PR?

Lugoues

comment created time in 9 days

startedmaximousblk/piracy

started time in 9 days

startedrclone/rclone-webui-react

started time in 9 days

push eventNightMachinary/.shells

NightMachinary

commit sha 9d0667c36ee919d43bd05d41d4c8813709d27907

.

view details

push time in 9 days

push eventNightMachinary/.shells

NightMachinary

commit sha 2731ff7aa8c71df33d46d517793f155bc3fb8fe8

.

view details

push time in 9 days

push eventNightMachinary/.shells

NightMachinary

commit sha be5ee5218bdab224e663c3195c6d32be5b813e9d

.

view details

NightMachinary

commit sha 63cb4991d56c5ca42112c9adba9a783b3e380020

Merge branch 'master' of gitlab.com:NightMachinary/night.sh

view details

push time in 9 days

issue commentMobileOrg/mobileorg

Allow git as the sync backend

@gitonthescene Great! There are other apps though! iSH provides a partial Linux environment that can run git and rclone. ShellFish provides SFTP and some other methods. Cloud drive apps (Dropbox, Gdrive, etc) provide cloud storage.

I’m looking forward to the update. :D

NightMachinary

comment created time in 9 days

issue commentsyl20bnr/spacemacs

Clojure layer's fancify symbols messes up indentation

@eggsyntax

Try Julia. It supports Unicode aliases natively. Its macro system also is the most intuitive one I have ever seen.

NightMachinary

comment created time in 10 days

push eventbatbone/stochastic

NightMachinary

commit sha 3aee1b2287375192246b1d44a6f267fba1b9b9ba

Inventory Model added

view details

push time in 10 days

issue commentMobileOrg/mobileorg

Allow git as the sync backend

@gitonthescene I have written why I want git on my first post, plus a very easy way to add support for it using other apps. But to reiterate, git is the only sync option that gives me all the power. I can self-host it (on multiple locations), I can edit files offline, I’ll never fear for a merge conflict leading to data loss, I have my files versioned and can go back in their history if needed, I can use an SSH session to edit my notes easily, and I’ll not be worried that a cloud storage will disappear from under my feet. (Once upon a time, I backuped my photos to Flickr. Then one day I saw a spammy email saying Flickr is discontinuing their free cloud storage. If I hadn’t seen that, I’d have been in for a big treat.)

I agree that simple users won’t find git support useful, but this a FOSS app for Org mode. Simple users aren’t going to use this anyways. They have great options a dozen.

On your questions of how the git support should work.

  1. Using external apps such as Working Copy: In this case MobileOrg does no syncing whatsoever. It just uses the file from that external location and edits them normally.

  2. Internal git client: This should be a real git client (i.e., just using normal “git pull” and stuff), but it need not have GUI support for solving conflicts. I solve conflicts manually by vim all the time. If you really want full GUI support, option 1 is much more attractive.

NightMachinary

comment created time in 10 days

push eventbatbone/stochastic

NightMachinary

commit sha efddfa2406a1117ff95037f6ecd31e72ee576bd4

Series+parallel+multicore servers tested

view details

push time in 11 days

push eventbatbone/stochastic

NightMachinary

commit sha 150fa586b520c98d5bd5f755afe46f8ef4c68c23

from='###' to='##' agr

view details

NightMachinary

commit sha 47b9082a0e0602a003b7b117f3a146d107fac734

Basic compositable server simulation achieved!

view details

push time in 11 days

issue commentJuliaCollections/DataStructures.jl

Should PriorityQueue allow duplicates?

I am using the PriorityQueue to simulate a stochastic event loop. I need to be able to put events with the same priority ("being at the same time").

ararslan

comment created time in 11 days

issue commentJuliaCollections/DataStructures.jl

Should PriorityQueue allow duplicates?

I am using the PriorityQueue to simulate a stochastic event loop. I need to be able to put events with the same priority ("being at the same time").

ararslan

comment created time in 11 days

push eventNightMachinary/.shells

NightMachinary

commit sha eb7d6321dba50d5561441195a3b8062f0bae0b6e

.

view details

NightMachinary

commit sha b71fcca21b9a245d1a9fe0d57c0dfb08215b1dcd

made pipefail the default

view details

push time in 11 days

issue openedTelegramMessenger/Telegram-iOS

Use background download API

Telegram downloads don’t seem to use the background download API and so do not progress unless Telegram is in the foreground.

created time in 11 days

startedHomebrew/homebrew-command-not-found

started time in 12 days

push eventNightMachinary/.shells

NightMachinary

commit sha f7aa9a28a05a139103fbf17484fb2380b489a809

.

view details

NightMachinary

commit sha 6999466c0bea272a1f35e9040f3a0239da8db89f

.

view details

NightMachinary

commit sha cdd1321036606cbaf0495b7d63984e0120df09ab

.

view details

NightMachinary

commit sha 24878e6354432979d4c4ad8dd38f188f881f49ca

.

view details

NightMachinary

commit sha ebe7af5caaffe206102fe4b46e3566725369c362

.

view details

NightMachinary

commit sha c2fb1ef8152d7affa66aa425237c006bce30b0d0

.

view details

NightMachinary

commit sha 9ec254685fb74172e460c405e8062252c76ae6a4

.

view details

NightMachinary

commit sha ffa3aff64c21aebb10cd765c5524812d16afc79e

.

view details

NightMachinary

commit sha c47dbc4e35fae48a23cd86237a2c5d04c291d10c

.

view details

NightMachinary

commit sha 2b17c5cdc601a07d9a4d894b6301b8a7a63c0fc0

.

view details

NightMachinary

commit sha 4c9a44a1edb1eecf63e88c4265d9e29b65505c1f

.

view details

push time in 12 days

issue commentjulia-vscode/julia-vscode

Execute Code Cell : Add delimiter ## in docs

@pfitzseb Thanks, that works. It will be much better if the API keeps backward-compatibility in mind. Today I updated VSCode and without warning, some command IDs of the Julia extension were changed (on which I had custom hotkeys defined), and ### no longer worked as a cell boundary. Tools need stability.

LodrikMtl

comment created time in 12 days

push eventbatbone/stochastic

NightMachinary

commit sha d73672417e51629261d29f22d80ef3e233937ee0

.

view details

push time in 12 days

issue commentjulia-vscode/julia-vscode

Execute Code Cell : Add delimiter ## in docs

@davidanthoff This feature seems to have regressed? language-julia.executeCellAndMove now executes all of my file (###s do not act as delimiters).

LodrikMtl

comment created time in 12 days

issue commentjakubroztocil/httpie

[Q] How do I get the final URL after all redirects?

I think I got this, feel free to close the issue:

url-final-hp () {
local out="$(2>&1 http --all --follow --headers "$1" )"
local res

 res="$(<<<"$out" command rg --only-matching --replace '$1' 'Location: (.*)'  | tail -n1 )"
test -n "$res" && echo $res || echo "$1"
}
NightMachinary

comment created time in 12 days

issue openedjakubroztocil/httpie

[Q] How do I get the final URL after all redirects?

I want to get the URL after all redirects (presumably with a limit to disallow infinite loops). I don’t want the URL to actually be downloaded (a small <1MB download is fine, but not more than that). How do I do using httpie?

My wget solution (in zsh):

[[ "$(2>&1 wget --no-verbose --spider "$1" )" =~ '.* URL: (.*) 200 .*' ]] && print -r -- "$match[1]"

created time in 12 days

startedkapitainsky/RcloneBrowser

started time in 13 days

startedlearn-anything/documentaries

started time in 13 days

issue commentsvenstaro/miniserve

Size of directories is not calculated

The timeout can be cached as “-1”. Or “NA.” I personally don’t have that many files.

NightMachinary

comment created time in 15 days

startedgeorgjaehnig/webpages-to-ebook

started time in 15 days

startedthesephist/unim.press

started time in 16 days

startedmaxgoedjen/secretive

started time in 16 days

startedfoambubble/foam

started time in 16 days

issue commentsyl20bnr/spacemacs

Evil search bug breaks Spacemacs

@allentiak I have switched to Doom, and have workarounds in my Spacemacs config regardless. Feel free to close the issue, someone will just comment if the issue still persists.

NightMachinary

comment created time in 16 days

startedchubin/wttr.in

started time in 17 days

startedriceissa/ea-forum-reader

started time in 18 days

startedrtcharity/eahub.org

started time in 18 days

issue commentsvenstaro/miniserve

URLs are wrong in the UI

It’s Ubuntu 20, served from ~/Downloads . I switched to Caddy, so feel free to close the issue.

NightMachinary

comment created time in 18 days

issue commentterrycojones/daudin

I have implemented the persistent subshell part

I don't understand the question. brish launches one instance of the shell server as a new process, and communicates with it using that process's file descriptors (stdin and stdout). The shell server runs the command using eval and returns their results in a simple format that brish parses. There is also no async support.

NightMachinary

comment created time in 21 days

startedArkoniak/Telegram.jl

started time in 22 days

issue commentcaddyserver/caddy

Size of directories not shown in static file browser

@hairyhenderson I personally, in this instance, want the directory sizes so that I can sort by it, because I have a lot of unimportant files/directories with small sizes. This usecase can benefit from inaccurate info. This can be made into an optional feature to enable in the config, so only people who benefit from it enable it.

In my case, I have so few files that I am happy to just pay the performance penalty for a complete calculation of size. So there will be no inaccuracies. This can be another option in the config.

The solution of indexing the sizes also works pretty accurately. The inaccuracies will be if the user changed files after the index was created. Perhaps this can be fixed by hooking into appropriate OS events? (I’m no expert on this.)

On the topic of mainstream tools not having this feature; Well, if they did have all the features, there would be no point in having new contenders like Caddy.

NightMachinary

comment created time in 22 days

issue commentcaddyserver/caddy

Size of directories not shown in static file browser

@francislavoie I think building a simple index (preferably in the background) should solve the performance problem of recursively determining size? I know there will be inaccuracies, but why let the perfect be the enemy of the good? Not showing the sizes is just erasing the problem. I think most users will benefit from an incomplete solution. This is especially true for users with modest directories, who can even go along with an on-the-fly calculation of recursive size.

NightMachinary

comment created time in 22 days

startedcaddyserver/caddy

started time in 22 days

issue commentjoseluisq/static-web-server

Add screenshots of the UI

I want to see the frontend this tool generates for browsing directory listings.

NightMachinary

comment created time in 22 days

issue openedsilverwind/droppy

Add screenshots of the UI

created time in 22 days

issue openedjoseluisq/static-web-server

Add screenshots of the UI

created time in 22 days

issue openedcodeskyblue/gohttpserver

Add sort by size and moddate

created time in 22 days

issue commentsvenstaro/miniserve

URLs are wrong in the UI

This problem went away by itself, but it has now returned. Restarting miniserve didn’t solve the problem in both instances.

NightMachinary

comment created time in 22 days

more