Skip to content

Instantly share code, notes, and snippets.

View daGrevis's full-sized avatar
⌨️
Keyboard operator

Raitis Stengrevics daGrevis

⌨️
Keyboard operator
View GitHub Profile
aux() {
ps aux | head -n 1
ps aux | grep -i $@ | grep -v 'grep -i'
}
auxpid() {
aux $@ | awk '{print $2}' | tail -n 1
}
process.on('SIGTERM', async () => {
logger.info(`Received SIGTERM, quitting connections...`)
const state = store.getState()
_.forEach(state.ircClients, ircClient => {
ircClient.quit()
})
await pollUntil(async () => {
function closeNotifications()
local s = [[
tell application "System Events"
tell process "NotificationCenter"
set numwins to (count windows)
repeat with i from numwins to 1 by -1
click button "Close" of window i
end repeat
end tell
end tell
tell application "System Events"
tell process "NotificationCenter"
set numwins to (count windows)
repeat with i from numwins to 1 by -1
click button "Close" of window i
click button "Mark as Read" of window i
end repeat
end tell
end tell
UPDATE "messages"
SET
"meta" = jsonb_set("meta", '{mode}', concat('"', "text", '"')::jsonb),
"text" = concat("nick", ' set ', "text", ' on ', "meta"->>'param');
UPDATE "messages"
SET
"meta" = jsonb_set("meta", '{mode}', concat('"', "text", '"')::jsonb),
"text" = concat("nick", ' set ', "text", ' on ', "meta"->>'param');
" VimL source.
Plug 'Shougo/neco-vim'
Plug 'https://github.com/neoclide/coc-neco'
" CSS source.
Plug 'neoclide/coc-css', {'do': 'yarn install --frozen-lockfile --force'}
" JSON source.
Plug 'neoclide/coc-json', {'do': 'yarn install --frozen-lockfile --force'}
call coc#config('coc.preferences', {
\ 'suggest.enablePreview': 1,
\ 'diagnostic.errorSign': 'E',
\ 'diagnostic.warningSign': 'W',
\ 'diagnostic.infoSign': 'I',
\ 'diagnostic.hintSign': 'H',
\ 'eslint.packageManager': 'yarn',
\ 'eslint.filetypes': ['javascript', 'javascriptreact', 'typescript'],
\ 'javascript.suggest.enabled': 1,
\ })
for (let i = 0; i < 10; i++) {
for (let j = 0; j < 10; j++) {
const isFilled =
i === 0 ||
i === 9 ||
j === 0 ||
j === 9 ||
i === j ||
i === 9 - j
process.stdout.write(isFilled ? '#' : ' ')
" VimL source.
Plug 'Shougo/neco-vim'
Plug 'https://github.com/neoclide/coc-neco'
" CSS source.
Plug 'neoclide/coc-css', {'do': 'yarn install --frozen-lockfile --force'}
" JSON source.
Plug 'neoclide/coc-json', {'do': 'yarn install --frozen-lockfile --force'}