Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<Order>
<Customer>
<Name>Bill Buckram</Name>
<Cardnum>234 234 234 234</Cardnum>
</Customer>
<Manifest>
<Item>
open Lexer
open Core_kernel
module Driver = struct
let print_position outx (lexbuf : Lexing.lexbuf) =
let pos = lexbuf.lex_curr_p in
Printf.fprintf outx "%s:%d:%d" pos.pos_fname pos.pos_lnum
(pos.pos_cnum - pos.pos_bol + 1)
let parse_with_error lexbuf =

Keybase proof

I hereby claim:

  • I am jubnzv on github.
  • I am jubnzv (https://keybase.io/jubnzv) on keybase.
  • I have a public key whose fingerprint is 60DE 2F71 0E73 7E1E D4CD 595D 195B 8622 FE88 ED46

To claim this, I am signing this object:

1. connect to host localhost port 22: Connection refused
Stopping namenodes on [localhost]
localhost: ssh: connect to host localhost port 22: Connection refused
localhost: ssh: connect to host localhost port 22: Connection refused
Stopping secondary namenodes [0.0.0.0]
0.0.0.0: ssh: connect to host 0.0.0.0 port 22: Connection refused
Fix:
thanooj@ubuntu:/$ sudo apt-get install openssh-server
Reading package lists... Done
Rule 12.3: https://github.com/oneoo/alilua/blob/master/deps/yac/yac_storage.c#L288
Rule 12.3: https://github.com/oneoo/alilua/blob/master/src/network.c#L304
Rule 12.3: https://github.com/oneoo/alilua/blob/master/src/worker.c#L272
Rule 12.3: https://github.com/jashmenn/apriori/blob/master/attic/swig/apriori_wrap.c#L433
Rule 12.3: https://github.com/jashmenn/apriori/blob/master/attic/swig/swig2/intexp_wrap.c#L458
Rule 12.3: https://github.com/jashmenn/apriori/blob/master/ext/apriori/src/apriori.c#L440
Rule 12.3: https://github.com/jashmenn/apriori/blob/master/ext/apriori/src/apriori.c#L449
Rule 12.3: https://github.com/jashmenn/apriori/blob/master/ext/apriori/src/apriori.c#L455
Rule 12.3: https://github.com/jashmenn/apriori/blob/master/ext/apriori/src/apriori.c#L456
Rule 12.3: https://github.com/jashmenn/apriori/blob/master/ext/apriori/src/apriori.c#L465
@jubnzv
jubnzv / 1.c
Created December 5, 2019 05:18
tokenizer-str-1.89
int main(int argc, char const* argv[])
{
int i = 1, j = 0;
return 0;
}
@jubnzv
jubnzv / CoreFreq crash
Created December 2, 2019 20:51
cppcheck -j4 --template=daca2 language=c --addon=misra.py --addon=cert.py
Checking /home/jubnzv/Dev/check-sandbox/sandbox/CoreFreq/corefreq-cli-extra.c ...
Checking /home/jubnzv/Dev/check-sandbox/sandbox/CoreFreq/corefreq-cli-json.c ...
Checking /home/jubnzv/Dev/check-sandbox/sandbox/CoreFreq/corefreq-cli-rsc.c ...
Checking /home/jubnzv/Dev/check-sandbox/sandbox/CoreFreq/corefreq-cli.c ...
/home/jubnzv/Dev/check-sandbox/sandbox/CoreFreq/corefreq-cli-extra.h:19:12: style: misra violation (use --rule-texts=<file> to get proper output) [misra-c2012-2.7]
/home/jubnzv/Dev/check-sandbox/sandbox/CoreFreq/corefreq-cli-extra.h:28:13: style: misra violation (use --rule-texts=<file> to get proper output) [misra-c2012-2.7]
/home/jubnzv/Dev/check-sandbox/sandbox/CoreFreq/corefreq-cli-extra.c:1:1: style: misra violation (use --rule-texts=<file> to get proper output) [misra-c2012-3.1]
/home/jubnzv/Dev/check-sandbox/sandbox/CoreFreq/corefreq-cli-extra.c:45:1: style: misra violation (use --rule-texts=<file> to get proper output) [misra-c2012-3.1]
/home/jubnzv/Dev/check-sandbox/sandbox/CoreFreq/core
cppcheck: unusedFunction check can't be used with '-j' option. Disabling unusedFunction check.
app/src/controllers/shortcutSettings/ShortcutSettingsController.cpp:7:29: warning: Member variable 'ShortcutSettingsController::view' is not initialized in the constructor. [uninitMemberVar]
ShortcutSettingsController::ShortcutSettingsController(QObject *parent) : QObject(parent)
^
app/src/controllers/shortcutSettings/ShortcutSettingsController.cpp:7:29: warning: Member variable 'ShortcutSettingsController::model' is not initialized in the constructor. [uninitMemberVar]
ShortcutSettingsController::ShortcutSettingsController(QObject *parent) : QObject(parent)
^
app/src/libraries/ClipboardBranch.cpp:104:42: performance: Function parameter 'parent_id' should be passed by const reference. [passedByValue]
void ClipboardBranch::addBranch( QString parent_id, QMap<QString, QString> branch_fields)
^
#!/usr/bin/env python3
import json
import logging
import subprocess
import threading
import time
from pprint import pformat
from urllib.parse import urlencode
from urllib.request import urlopen
call plug#begin('~/.local/share/nvim/plugged')
Plug 'liuchengxu/vista.vim'
Plug 'itchyny/lightline.vim'
call plug#end()
let g:lightline = {
\ 'colorscheme': 'gruvbox',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'readonly', 'filename', 'modified' ],