Skip to content

Instantly share code, notes, and snippets.

View suryapratap1's full-sized avatar
🎯
Focusing

Surya Pratap Singh suryapratap1

🎯
Focusing
  • Delhi , India
View GitHub Profile
@suryapratap1
suryapratap1 / create genesis block
Created July 22, 2018 09:02
creation of genesis block
how to To create a genesis block
Main.h
Delete Both Main Merkle & Genesis Merkle (example)
Main genesis block
static const uint256 hashGenesisBlock("0x000004611c87517dfd29fe7f34bd6da2e1ad3d305ac12afe80a3229069390f68");
To
@suryapratap1
suryapratap1 / Uninstall just qt creator
Created July 22, 2018 10:39
Uninstall qt creator
sudo apt-get remove qtcreator //This will remove just the qtcreator package itself.
sudo apt-get remove --auto-remove qtcreator //Uninstall qtcreator and its dependencies
sudo apt-get purge qtcreator //If you also want to delete your local/config files for qtcreator then this will work.
sudo apt-get purge --auto-remove qtcreator //Or similarly, like this qtcreator
@suryapratap1
suryapratap1 / installation of qt creator
Created July 22, 2018 10:42
How to install Qt Creator on Ubuntu
sudo apt-get install build-essential
sudo apt-get install qtcreator
sudo apt-get install qt5-default
# Install documentation and examples
//If Qt Creator is installed thanks to the Ubuntu Sofware Center or thanks to the synaptic package manager, documentation for Qt Creator is not installed. Hitting the F1 key will show you the following message : “No documentation available”. This can easily be solved by installing the Qt documentation:
@suryapratap1
suryapratap1 / Steps to Create a New Sudo User
Created July 23, 2018 04:37
Steps to Create a New Sudo User
// Log in to your server as the root user.
local$ ssh root@server_ip_address
//Use the adduser command to add a new user to your system.
// Be sure to replace username with the user that you want to create.
adduser username
@suryapratap1
suryapratap1 / install Qt 5.10.0
Created July 23, 2018 08:57
How to install Qt 5.10.0 released on Ubuntu
$ wget http://download.qt.io/official_releases/qt/5.10/5.10.0/qt-opensource-linux-x64-5.10.0.run
$ chmod +x qt-opensource-linux-x64-5.10.0.run
$ ./qt-opensource-linux-x64-5.10.0.run
@suryapratap1
suryapratap1 / create a Monero command line wallet
Created July 24, 2018 06:06
How to create a Monero command line wallet
# LINUX: Download the Linux 64-bit command line client and extract it
wget https://downloads.getmonero.org/linux64
tar jxvf linux64
# MAC: Download the Mac command line client and extract it
wget https://downloads.getmonero.org/mac64
tar jxvf mac64
# WINDOWS: Create a new folder with Windows File Explorer, and use your web browser to download the following file to the new folder
https://downloads.getmonero.org/win64
@suryapratap1
suryapratap1 / create litecoin genesis block
Created July 28, 2018 08:47
create litecoin genesis block, the missing code
assert(block.hashMerkleRoot == uint256("0x38ca78a781d3c571a681ea2241ffb1e0d89bd1ecd3499f1bf6edeaa8751e7151"));
// If genesis block hash does not match, then generate new genesis hash.
if (false && block.GetHash() != hashGenesisBlock)
{
printf("Searching for genesis block...\n");
// This will figure out a valid hash and Nonce if you're
// creating a different genesis block:
uint256 hashTarget = CBigNum().SetCompact(block.nBits).getuint256();
@suryapratap1
suryapratap1 / chainparams.cpp
Created July 28, 2018 08:50
create litecoin genesis block, the missing code
#include "assert.h"
#include "chainparams.h"
#include "main.h"
#include "util.h"
#include <boost/assign/list_of.hpp>
using namespace boost::assign;
@suryapratap1
suryapratap1 / Create a New Sudo User
Created July 30, 2018 04:58
Steps to Create a New Sudo User
1- Log in to your server as the root user.
2- local$ ssh root@server_ip_address2-2
# Use the adduser command to add a new user to your system.
# Be sure to replace username with the user that you want to create.
adduser username
@suryapratap1
suryapratap1 / dongilead
Created July 30, 2018 06:58
dongilead / gist:45d15d8bf86f6c7077420179eabdf177
=================================================================
https://keybase.io/beepmagnet
--------------------------------------------------------------------
I hereby claim:
* I am an admin of https://beepmagnet.com
* I am beepmagnet (https://keybase.io/beepmagnet) on keybase.
* I have a public key with fingerprint 9E8C FC6E D378 3169 B3A9 C2FA F8DE 9E41 E192 7116