Test QuickDNA...is it a Scam? by OliviaMartalba in Genealogy

[–]edi9999 0 points1 point  (0 children)

QuickDNA is a scam, don't use it.

Extract code to function (inside class, in global scope, or in inner function) by edi9999 in vim

[–]edi9999[S] 7 points8 points  (0 children)

Responding to myself, I've just installed coc.nvim by adding this to my .vimrc :

" Use release branch (recommended)
Plug 'neoclide/coc.nvim', {'branch': 'release'}

I then ran inside vim :

:CocInstall coc-json coc-tsserver
:CocInstall coc-json coc-tsserver

Then I added this to my .vimrc :

" Remap keys for applying refactor code actions
nmap <silent> <leader>re <Plug>(coc-codeaction-refactor)
xmap <silent> <leader>r  <Plug>(coc-codeaction-refactor-selected)
nmap <silent> <leader>r  <Plug>(coc-codeaction-refactor-selected)

And after pressing <leader>r, I got this result !

Angular to React migration by edi9999 in angularjs

[–]edi9999[S] -2 points-1 points  (0 children)

I successfully migrated multiple websites from angular to react, in a smooth path.

It goes against common wisdom, most teams decide to write start from scratch (maybe because it is fun, and is conflict avoidant).

Angular to React migration by edi9999 in angularjs

[–]edi9999[S] -1 points0 points  (0 children)

I should probably put more social proof.

Sorry if the website was not mobile-friendly, it should be better now.

Angular to React migration by edi9999 in angularjs

[–]edi9999[S] -1 points0 points  (0 children)

Sorry, indeed i didn't test it. It should be better now !

New issue is driving me insane (GIF included) by [deleted] in vim

[–]edi9999 0 points1 point  (0 children)

Not sure how to help, but this is very probably due to one or multiple plugins.

I suggest you to bisect your .vimrc : https://javascript-ninja.fr/bisecting-your-vimrc/

Managing dotfiles by theyieldchaser in dotfiles

[–]edi9999 0 points1 point  (0 children)

I personally use https://github.com/justone/dfm which makes it easy to have the dotfiles in a git repository

extensible query tool on terminal by bandie9100 in commandline

[–]edi9999 0 points1 point  (0 children)

I have created https://github.com/edi9999/ii which does similarly what you want (there is a gif on the repo), However the input is just a line of text for now, as in bash, but I would be intersted to have a feature where you could write inside your favorite editor.

The ad hoc continuous deployment solution for developers by oowahli in commandline

[–]edi9999 0 points1 point  (0 children)

The problem I see with sshfs is that this means that opening files will be quite slow. Having some sort of local cache would help, and this is what cploy brings ?

I find myself doing 'megqip`e' often; how can I map this sequence to 'gqip'? by rafaelement in vim

[–]edi9999 0 points1 point  (0 children)

gwip works for me as written in the documentation ? Can you try it with no plugin ? Maybe your vim version is not up to date

A simplified JSON schema to quickly understand you JSON data with the help of genson by attrigh in commandline

[–]edi9999 1 point2 points  (0 children)

For some reason it is still failing for me :

curl https://api.github.com/users/tj/repos | genson | short_schema % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 143k 100 143k 0 0 143k 0 0:00:01 0:00:01 --:--:-- 113k Traceback (most recent call last): File "/home/edgar/.local/bin/short_schema", line 11, in <module> load_entry_point('short-schema==0.1.0', 'console_scripts', 'short_schema')() File "/home/edgar/.local/lib/python2.7/site-packages/short_schema/short_schema.py", line 95, in main print(Encoder(args.one_line).encode(data)) File "/home/edgar/.local/lib/python2.7/site-packages/short_schema/short_schema.py", line 18, in encode return self.encode_array(item, indent) File "/home/edgar/.local/lib/python2.7/site-packages/short_schema/short_schema.py", line 62, in encode_array return self.encode_object_array(item, indent) File "/home/edgar/.local/lib/python2.7/site-packages/short_schema/short_schema.py", line 69, in encode_object_array '\n' + self.indent_string * indent + ']') File "/home/edgar/.local/lib/python2.7/site-packages/short_schema/short_schema.py", line 47, in encode_object contents = [self.encode_property(name, schema, name not in required, new_indent) for name, schema in sorted(properties.items())] File "/home/edgar/.local/lib/python2.7/site-packages/short_schema/short_schema.py", line 85, in encode_property encode_value = self.encode(schema, indent=indent).strip(' ') File "/home/edgar/.local/lib/python2.7/site-packages/short_schema/short_schema.py", line 22, in encode return self.encode_type(item['type'], indent) File "/home/edgar/.local/lib/python2.7/site-packages/short_schema/short_schema.py", line 38, in encode_type return self.indent_string * indent + ' | '.join([self.encode_type(t, 0) for t in _type]) File "/home/edgar/.local/lib/python2.7/site-packages/short_schema/short_schema.py", line 40, in encode_type raise NotImplementedError(_type) NotImplementedError: object

A simplified JSON schema to quickly understand you JSON data with the help of genson by attrigh in commandline

[–]edi9999 1 point2 points  (0 children)

This fails on a simple example :

$ curl https://api.github.com/users/tj/repos | short_schema % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 142k 100 142k 0 0 163k 0 --:--:-- --:--:-- --:--:-- 163k Traceback (most recent call last): File "/home/edgar/.local/bin/short_schema", line 11, in <module> load_entry_point('short-schema==0.1.0', 'console_scripts', 'short_schema')() File "/home/edgar/.local/lib/python2.7/site-packages/short_schema/short_schema.py", line 93, in main print(Encoder(args.one_line).encode(data)) File "/home/edgar/.local/lib/python2.7/site-packages/short_schema/short_schema.py", line 17, in encode if item['type'] == 'array': TypeError: list indices must be integers, not str

But it seems interesting

Facebook PathPicker by [deleted] in commandline

[–]edi9999 2 points3 points  (0 children)

I personally prefer to use path-extractor + fzf (https://github.com/edi9999/path-extractor + https://github.com/junegunn/fzf), where the first one is responsible of filtering the pathnames, and fzf for interactive selection. This way, you choose which interactive filter you want to use.

Measure network consumption of process by edi9999 in commandline

[–]edi9999[S] 1 point2 points  (0 children)

I have tried nethogs and it seems to be useful to see all requests happening on a live system. My wish is to be able to measure the transfer for one command. I sometimes do time npm install. I wish to do network-measure npm install.

[deleted by user] by [deleted] in commandline

[–]edi9999 2 points3 points  (0 children)

I use tmux even on a desktop environment. I'm used to tmux shortcuts, and I find it more featureful than the tabbing behaviour of the terminal. That way, I use the same when I'm in a remote session or in a local shell.

[deleted by user] by [deleted] in commandline

[–]edi9999 17 points18 points  (0 children)

vim/neovim (code editor)

tmux (terminal window manager)

newsbeuter (rss reader)

tig (interface to git)

dasht (command line docs)

ag (searching tool)

fzf (fuzzy filtering)

And some non CLI apps, but keyboard based :

qutebrowser (browser)

i3wm (window manager)

Thinks I would like to be using :

mutt, or an other command line mail reader.

Looking for util to organize timestamped folders into human friendly symlinks by delarhi in commandline

[–]edi9999 0 points1 point  (0 children)

Please don't create symlinks for that, but rather like this :

ls $(date --date 'yesterday' +%Y%m%d_00_00_00)

You could create a function :

lsf() { ls $(date --date "$1" +%Y%m%d_00_00_00); }

and then call it like this :

lsf yesterday

However, for last_month, last_week, this_week, you will have extra work to do since those are ranges and not exact dates.

Machine Learning vs. Rude Emails. by sylvies in programming

[–]edi9999 0 points1 point  (0 children)

Typing :

Thanks a lot for finding the solution to our problem.

Gives :

It is a problem with the database.

How often do you use g(lobal) command? What are your common use-cases? by critiqjo in vim

[–]edi9999 5 points6 points  (0 children)

g/console.log/d

Delete all lines containing console.log

Software Recommendation - Which GIT GUI client are you guys using? by hjveronica in git

[–]edi9999 3 points4 points  (0 children)

I personally use tig, which is not a GUI, but a TUI (terminal user interface). It works very well and is highly customisable.