Skip to content

Instantly share code, notes, and snippets.

@amitkumarj441
amitkumarj441 / fluent.log
Created August 25, 2017 13:38
Fluentd Pod log
[root@viaq ~]# oc logs -f logging-fluentd-lqf3n
+ fluentdargs=-vv
+ echo '>>>>>> ENVIRONMENT VARS <<<<<'
+ env
+ sort
>>>>>> ENVIRONMENT VARS <<<<<
DATA_VERSION=1.6.0
ES_CA=/etc/fluent/keys/ca
ES_CLIENT_CERT=/etc/fluent/keys/cert
ES_CLIENT_KEY=/etc/fluent/keys/key
@amitkumarj441
amitkumarj441 / openvpn.log
Created August 26, 2017 11:28
openvpn connection failing
ith@ith-ThinkPad-W520:~$ openvpn --verb 5 --dev tun ~/Downloads/unhiol_opnfv.conf
Sat Aug 26 16:55:00 2017 us=257036 Current Parameter Settings:
Sat Aug 26 16:55:00 2017 us=257110 config = '[UNDEF]'
Sat Aug 26 16:55:00 2017 us=257143 mode = 0
Sat Aug 26 16:55:00 2017 us=257170 persist_config = DISABLED
Sat Aug 26 16:55:00 2017 us=257193 persist_mode = 1
Sat Aug 26 16:55:00 2017 us=257217 show_ciphers = DISABLED
Sat Aug 26 16:55:00 2017 us=257238 show_digests = DISABLED
Sat Aug 26 16:55:00 2017 us=257257 show_engines = DISABLED
Sat Aug 26 16:55:00 2017 us=257279 genkey = DISABLED
@amitkumarj441
amitkumarj441 / tests.log
Last active September 16, 2017 07:57
Stress Testing
ith@ith-ThinkPad-W520:~$ ssh [email protected]
Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 4.2.0-27-generic x86_64)
* Documentation: https://help.ubuntu.com/
System information as of Wed Sep 13 07:54:16 BST 2017
System load: 4.1
Usage of /: 36.7% of 730.35GB
Memory usage: 43%
@amitkumarj441
amitkumarj441 / v.py
Created January 28, 2018 16:47
Make vyper easy
from web3 import Web3, HTTPProvider
from viper import compiler
from web3.contract import ConciseContract
from time import sleep
example_contract = open('./path/to/contract.v.py', 'r')
contract_code = example_contract.read()
example_contract.close()
cmp = compiler.Compiler()
@amitkumarj441
amitkumarj441 / lsa_log.txt
Last active April 16, 2018 11:23
LSA_log.txt
ith@ith-ThinkPad-W520:~$ ssh -i /home/ith/Downloads/cloud_mining.pem [email protected]
The authenticity of host '35.174.105.75 (35.174.105.75)' can't be established.
ECDSA key fingerprint is SHA256:Q4iQXcdjrdt3YKd9A8zhBz3cpEkw9rAgjSJcnkZ2dRs.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '35.174.105.75' (ECDSA) to the list of known hosts.
Welcome to Ubuntu 16.04.4 LTS (GNU/Linux 4.4.0-1052-aws x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
@amitkumarj441
amitkumarj441 / ner.md
Last active July 14, 2018 15:54
Named entity recognition stuffs

CoNLL-2003 Shared Task: Language-Independent Named Entity Recognition

The CoNLL-2003 (Sang et al. 2003) shared task deals with language-independent named entity recognition as well (English and German).

Dataset

The CoNLL-2003 shared task data files contain four columns separated by a single space. Each word has been put on a separate line and there is an empty line after each sentence. The first item on each line is a word, the second a part-of-speech (POS) tag, the third a syntactic chunk tag and the fourth the named entity tag. The chunk tags and the named entity tags have the format I-TYPE which means that the word is inside a phrase of type TYPE. Only if two phrases of the same type immediately follow each other, the first word of the second phrase will have tag B-TYPE to show that it starts a new phrase. A word with tag O is not part of a phrase.

The English data is a collection of news wire articles from the Reuters Corpus. The annotation has been done

@amitkumarj441
amitkumarj441 / gist:f4e2cee2b389a711fd8b4be94e93aa16
Created July 15, 2018 15:06 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@amitkumarj441
amitkumarj441 / contract.txt
Created August 23, 2018 20:26
Testing contract
```
ith@ith-ThinkPad-W520:~/Practice/BCP2P$ truffle compile
Compiling ./contracts/Admin.sol...
Compiling ./contracts/FlightInsurance.sol...
Compiling ./contracts/FlightInterface.sol...
Compiling ./contracts/InsuranceInterface.sol...
Compiling ./contracts/Migrations.sol...
Compiling ./contracts/OraclizeTest.sol...
Compiling installed_contracts/SafeMath.sol...
Compiling installed_contracts/StringUtils.sol...
@amitkumarj441
amitkumarj441 / h2o.txt
Last active December 15, 2018 23:33
Spin H2O πŸš€
`````````````````````````````````````````````````````````
ith@ith-ThinkPad-W520:~$ pip install h2o
Collecting h2o
Downloading https://files.pythonhosted.org/packages/6e/e4/1b34202b4887f8187f72acaa178eb4ff87982a9583008c78e1929d8a5e23/h2o-3.22.0.2.tar.gz (120.6MB)
100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 120.6MB 344kB/s
Requirement already satisfied: requests in ./anaconda3/lib/python3.6/site-packages (from h2o) (2.11.1)
Collecting tabulate (from h2o)
Downloading https://files.pythonhosted.org/packages/12/c2/11d6845db5edf1295bc08b2f488cf5937806586afe42936c3f34c097ebdc/tabulate-0.8.2.tar.gz (45kB)
100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 51kB 5.3MB/s
Requirement already satisfied: future in ./anaconda3/lib/python3.6/site-packages (from h2o) (0.16.0)
For LGBM on F1 set
``````````````
working fold 0
fold 0
Training until validation scores don't improve for 200 rounds.
[1000] training's l1: 2.13847 valid_1's l1: 2.31434
[2000] training's l1: 1.81812 valid_1's l1: 1.90579
[3000] training's l1: 1.60539 valid_1's l1: 1.73527
[4000] training's l1: 1.43323 valid_1's l1: 1.64906
[5000] training's l1: 1.28761 valid_1's l1: 1.58606