Skip to content

Instantly share code, notes, and snippets.

Rushal Verma rusrushal13

Block or report user

Report or block rusrushal13

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rusrushal13
rusrushal13 / app.js
Created Oct 23, 2019
react google analytics
View app.js
#hook for initializing react google analytics
useEffect(() => {
initGA(Config.googleTrackingGAID);
if (
window.performance &&
performance.navigation.type === performance.navigation.TYPE_NAVIGATE
) {
PageView();
}
history.listen(location => {
View CurlExercisesSolutions.md

Solution to Curl Excersises

  • Request https://httpbin.org

curl https://httpbin.org

<!DOCTYPE html>
<html lang="en">
@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.

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 / 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
@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""
View Verifying onename
Verifying that "rusrushal13.id" is my Blockstack ID. https://onename.com/rusrushal13
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)
You can’t perform that action at this time.