Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Rushal Verma rusrushal13

🏠
Working from home
View GitHub Profile
View gist
(zenodo) rushal@rushal-Lenovo-B560:~/src/zenodo$ ./scripts/setup-assets.sh
/usr/local/lib/python2.7/dist-packages/dojson/contrib/to_marc21/model.py:22: UserWarning: MARC21 undo feature is experimental
warnings.warn('MARC21 undo feature is experimental')
Warn: 'angular-loading-bar' version ['~0.9.0', '~0.9.0'] resolved to: '~0.9.0'
Warn: 'almond' version ['~0.3.1', '~0.3.1', '~0.3.1', '~0.3.1', '~0.3.1'] resolved to: '~0.3.1'
Warn: 'bootstrap-switch' version ['~3.0.2', '~3.0.2', '~3.0.2', '~3.0.2'] resolved to: '~3.0.2'
Warn: 'font-awesome' version ['~4.4.0', '~4.4.0'] resolved to: '~4.4.0'
No handlers could be found for logger "semver"
Warn: u'prismjs' version [u'1.4.1', u'1.4.1'] resolved to: u'1.4.1'
Warn: 'angular-sanitize' version ['~1.4.9', '~1.4.10', '~1.4.10'] resolved to: '~1.4.9'
View gist
rushal@rushal-Lenovo-B560:~$ pip freeze | grep invenio
invenio-access==1.0.0a11
invenio-accounts==1.0.0b1
invenio-admin==1.0.0a3
invenio-assets==1.0.0b4
invenio-base==1.0.0a14
invenio-celery==1.0.0b1
invenio-communities==1.0.0a13
invenio-config==1.0.0b1
invenio-csl-rest==1.0.0a1
View gist
rushal@rushal-Lenovo-B560:~/src/zenodo$ docker-compose up es db cache mq
Traceback (most recent call last):
File "/usr/local/bin/docker-compose", line 7, in <module>
from compose.cli.main import main
File "/usr/local/lib/python2.7/dist-packages/compose/cli/main.py", line 17, in <module>
from . import errors
File "/usr/local/lib/python2.7/dist-packages/compose/cli/errors.py", line 10, in <module>
from docker.errors import APIError
File "/usr/local/lib/python2.7/dist-packages/docker/__init__.py", line 2, in <module>
from .api import APIClient
View g
rushal@rushal-Lenovo-B560:~/src/zenodo$ sudo pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
adium-theme-ubuntu (0.3.4)
appdirs (1.4.3)
backports.ssl-match-hostname (3.5.0.1)
cached-property (1.3.0)
colorama (0.3.7)
Django (1.10.6)
docker (2.1.0)
docker-compose (1.11.2)
View Verifying onename
Verifying that "rusrushal13.id" is my Blockstack ID. https://onename.com/rusrushal13
@rusrushal13
rusrushal13 / Crypto_Mining_XMR_script
Created Aug 14, 2017
I am using it on free servers to get some Monero(XMR) using cryptonight algorithm.
View Crypto_Mining_XMR_script
sudo apt-get update -y && sudo apt-get install git -y make automake screen libcurl4-openssl-dev && sudo apt-get install -y gcc
git clone https://github.com/wolf9466/cpuminer-multi && cd cpuminer-multi && ./autogen.sh && CFLAGS="-march=native" ./configure --disable-aes-ni && make
screen -S miner ./minerd -a cryptonight -o stratum+tcp://xmr.pool.minergate.com:45560 -u rusrushal13@gmail.com -p x -t 2""
crontab -e
2
@reboot screen -S miner ./minerd -a cryptonight -o stratum+tcp://xmr.pool.minergate.com:45560 -u rusrushal13@gmail.com -p x -t 2""
@rusrushal13
rusrushal13 / Update.sh
Created Aug 14, 2017
my updation script
View Update.sh
#!/bin/bash
# My update script
clear
sudo apt-get update && sudo apt-get upgrade -y && sudo apt full-upgrade -y
sudo apt autoremove
View "Learning never exhausts the mind." - Leonardo da Vinci.py
import requests
req = requests.json("http://api.open-notify.org/iss-now.json")
print(req.json()['iss_position'])
@rusrushal13
rusrushal13 / DISTRIBUTEDC.md
Created Jun 29, 2018 — forked from yclim95/DISTRIBUTEDC.md
DistributedComputing
View DISTRIBUTEDC.md

##Map Reduce

  1. Map/Reduce Library partitions the input data into M pieces of typically 16-64 MB.

    True.

  2. If there are M partitions of the input, there are M map workers running simultaneously.

    False. There are generally less worker nodes than partitions.