Skip to content

Instantly share code, notes, and snippets.

View Aster89's full-sized avatar
๐Ÿƒ
Foglia nel vento...

Enrico Maria De Angelis Aster89

๐Ÿƒ
Foglia nel vento...
View GitHub Profile
@Aster89
Aster89 / vscode-workspace.json
Created March 22, 2022 12:02
Workspace JSON file used to set up debuggin in VSCode
{
"folders": [
{
"name": "some-name",
"path": "/some/path"
},
{
"name": "src/include",
"path": "/path/to/some/where"
},
2022-03-20 11:40:03,118 - DEBUG - No global extra conf, not calling method YcmCorePreload
2022-03-20 11:40:03,140 - INFO - Completion config: 50, detailing -1 candiates
2022-03-20 11:40:03,140 - INFO - Completion config: 50, detailing -1 candiates
2022-03-20 11:40:03,140 - INFO - Completion config: 50, detailing -1 candiates
2022-03-20 11:40:03,140 - INFO - Completion config: 50, detailing -1 candiates
127.0.0.1 - - [20/Mar/2022 11:40:03] "GET /ready HTTP/1.1" 200 4
2022-03-20 11:40:03,157 - INFO - Completion config: 50, detailing -1 candiates
2022-03-20 11:40:03,157 - DEBUG - Event name: BufferVisit
127.0.0.1 - - [20/Mar/2022 11:40:03] "GET /signature_help_available?subserver=haskell HTTP/1.1" 200 23
127.0.0.1 - - [20/Mar/2022 11:40:03] "POST /event_notification HTTP/1.1" 200 2
2022-03-20 11:40:03,153 - DEBUG - GET b'http://127.0.0.1:42643/ready' (None)
{'content-type': 'application/json', 'x-ycm-hmac': b'dD6REU7whqzrt3bA+OuTyD1L7AnXntE03GOKqlO6oMo='}
2022-03-20 11:40:03,156 - DEBUG - GET b'http://127.0.0.1:42643/signature_help_available?subserver=haskell' ({'subserver': 'haskell'})
{'content-type': 'application/json', 'x-ycm-hmac': b'bKp95jzfyz8i2/6PgW2VoYadd7CtnmWHCvTxUbkFqek='}
2022-03-20 11:40:03,157 - DEBUG - POST b'http://127.0.0.1:42643/event_notification'
{'content-type': 'application/json', 'x-ycm-hmac': b'Wfn4eiDHXgLfS9zwFcWUxT8PbJHiZN95oMo1A2ErgL0='}
b'{"filepath": "/home/enrico/repro.hs", "line_num": 1, "column_num": 1, "working_dir": "/home/enrico", "file_data": {"/home/enrico/repro.hs": {"contents": "import qualified Data.Map as M\\nimport Control.Monad ((<=<))\\nf :: [(k, a)] -> M.Map k a; f = undefined\\ng :: (k,a) -> [(k,a)]; g = undefined\\nh :: M.Map k a -> [(k, a)]; h = undefined\\ni = f . (>>= g) . h\\n", "filetypes": ["haskell"]}}, "event_name": "BufferVis
No 'hie.yaml' found. Try to discover the project type!
Run entered for haskell-language-server-wrapper(haskell-language-server-wrapper) Version 1.6.1.0, Git revision f4022c5bb8530cd306c53b941878244bf27a5d41 (dirty) x86_64 ghc-8.10.7
Current directory: /home/enrico
Operating system: linux
Arguments: ["--lsp"]
Cradle directory: /home/enrico
Cradle type: Default
Tool versions found on the $PATH
cabal: 3.6.2.0
@Aster89
Aster89 / clang
Created November 3, 2021 19:38
apt search clang
Sorting... Done
Full Text Search... Done
afl-clang/oldstable 2.52b-5 amd64
instrumentation-driven fuzzer for binary formats - clang support
arcanist-clang-format-linter/oldstable,oldstable,oldstable 0.git20161021-2 all
clang-format linter for Arcanist
bear/oldstable,oldstable,oldstable 2.3.13-1 all
generate compilation database for Clang tooling
@Aster89
Aster89 / imap.vim
Created October 6, 2021 11:51
Output of :imap
i <C-Space> * <C-R>=<SNR>49_RequestSemanticCompletion()<CR>
i <Nul> <C-Space>
i <C-Y> * <SNR>49_StopCompletion( "\<C-Y>" )
i <Up> * pumvisible() ? "\<C-P>" : "\<Up>"
i <S-Tab> * pumvisible() ? "\<C-P>" : "\<S-Tab>"
i <Down> * pumvisible() ? "\<C-N>" : "\<Down>"
i <C-G>% <Plug>(matchup-c_g%)
i <Plug>(matchup-c_g%) * <C-\><C-O>:call matchup#motion#insert_mode()<CR>
@Aster89
Aster89 / map.vim
Created October 6, 2021 07:34
Output of :map
o % <Plug>(matchup-%)
x % <Plug>(matchup-%)
n % <Plug>(matchup-%)
o [% <Plug>(matchup-[%)
x [% <Plug>(matchup-[%)
n [% <Plug>(matchup-[%)
n \d * :YcmShowDetailedDiagnostic<CR>
o ]% <Plug>(matchup-]%)
@Aster89
Aster89 / au.vim
Created October 6, 2021 07:34
Output of :au
--- Autocommands ---
filetypedetect BufEnter
*.xpm if getline(1) =~ "XPM2" | setf xpm2 | else | setf xpm | endif
*.xpm2 setf xpm2
FileExplorer BufEnter
* sil call s:LocalBrowse(expand("<amatch>"))
Vimball BufEnter
*.vba setlocal bt=nofile fmr=[[[,]]] fdm=marker|if &ff != 'unix'|setlocal ma ff=unix noma|endif|if line('$') > 1|call vimball#ShowMesg(0,"Source this file to extract it! (:so %)")|endif
*.vba.gz setlocal bt=nofile fmr=[[[,]]] fdm=marker|if &ff != 'unix'|setlocal ma ff=unix noma|endif|if line('$') > 1|call vimball#ShowMesg(0,"Source this file to extract it! (:so %)")|endif
$ sudo ausearch -k delete_x11_tmp
----
time->Thu May 20 09:42:39 2021
type=PROCTITLE msg=audit(1621500159.585:133): proctitle=617564697463746C002D6100657869742C616C77617973002D4600646972002F746D702F2E5831312D756E6978002D5300756E6C696E6B2C756E6C696E6B61742C726D646972002D6B0064656C6574655F7831315F746D70
type=SOCKADDR msg=audit(1621500159.585:133): saddr=100000000000000000000000
type=SYSCALL msg=audit(1621500159.585:133): arch=c000003e syscall=44 success=yes exit=1084 a0=4 a1=7ffcd37abac0 a2=43c a3=0 items=0 ppid=103860 pid=103861 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts1 ses=1 comm="auditctl" exe="/usr/bin/auditctl" key=(null)
type=CONFIG_CHANGE msg=audit(1621500159.585:133): auid=1000 ses=1 op=add_rule key="delete_x11_tmp" list=4 res=0
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or