Where It All Started.

Where It All Started.

Life, Stock Trading, Investments, Business and Startup. Most are programming stuff.

Category: Self Development

Create Solana Validator RPC Only Node Part 2

This image has an empty alt attribute; its file name is image.png

If you haven’t checked out yet the first part, make sure to check it out on this link.

Setup the Solana Validator

Before you start, make sure you install the solana cli first which you can find the information on how to install the latest package here. Reboot your computer to make sure everything is going okay.

On this config we will connect directly as a validator (non-voting) for Solana mainnet-beta. First configure the Solana tools that you installed.

solana config set --url https://api.mainnet-beta.solana.com

Then run the sys-tuner for one time, this is to configure your computers internals to the recommended setup.

sudo $(command -v solana-sys-tuner) --user $(whoami) > sys-tuner.log 2>&1 &

This will run one-time, you need to run it after you reboot your system. There is also another way, on which you need to configure a systemd service. To configure a systemd service, create a file named solana-sys-tuner.service in the directory /etc/systemd/system.

sudo cat > /etc/systemd/system/solana-sys-tuner.service << EOF
Description=Solana System Tuner



This will create the service and now you can run sudo systemctl enable --now solana-sys-tuner.service to enable it at boot and start the service right now. You can also do the manual way without having to run the solana-sys-tuner binary, just follow this tutorial from the official documentation here.

Also don’t forget to create the solana-sys-tuner.sh on your user home root directory.

cat > ~/solana-sys-tuner.sh << EOF
#!/usr/bin/env bash
set -ex

exec /home/ubuntu/.local/share/solana/install/active_release/bin/solana-sys-tuner --user ubuntu

Now you can now start the validator, to start prepare first a validator keypair.

solana-keygen new -o ~/validator-keypair.json

This will create a validator keypair at your user home directory. Don’t forget to save the output generated BIP39 seedphrase. DON’T FORGET. Once done, if you forgot your public key, you can view it using the command solana-keygen pubkey ~/validator-keypair.json. You will need the public key for later commands.

Set the validator keypair in your Solana cli tool:

solana config set --keypair ~/validator-keypair.json

That’s all for configuration, we can now start the validator. Create an simple shell script to contain the run parameters of the solana-validator command, so it will be easier to modify and adjust later on.

cat > validator.sh << EOF
#!/usr/bin/env bash

set -e

exec solana-validator \
    --no-voting \
    --identity ~/validator-keypair.json \
    --known-validator 7Np41oeYqPefeNQEHSv1UDhYrehxin3NStELsSKCT4K2 \
    --known-validator GdnSyH3YtwcxFvQrVVJMm1JhTS4QVX7MFsX56uJLUfiZ \
    --known-validator DE1bawNcRJB9rVm3buyMVfr8mBEoyyu73NBovf2oXJsJ \
    --known-validator CakcnaRDHka2gXyfbEd2d3xsvkJkqsLw2akB3zsN1D2S \
    --only-known-rpc \
    --ledger /mnt/disks/solana-ledger \
    --accounts /mnt/disks/solana-account \
    --rpc-port 8899 \
    --rpc-bind-address \
    --dynamic-port-range 8000-8020 \
    --entrypoint entrypoint.mainnet-beta.solana.com:8001 \
    --entrypoint entrypoint2.mainnet-beta.solana.com:8001 \
    --entrypoint entrypoint3.mainnet-beta.solana.com:8001 \
    --entrypoint entrypoint4.mainnet-beta.solana.com:8001 \
    --entrypoint entrypoint5.mainnet-beta.solana.com:8001 \
    --expected-genesis-hash 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d \
    --wal-recovery-mode skip_any_corrupted_record \
    --limit-ledger-size \
    --no-port-check \
    --enable-rpc-transaction-history \
    --full-rpc-api \
    --log /mnt/disks/solana-spare/logs/solana-validator.log

This validator flags specify that RPC is open to public, and its only rpc-mode due to the --no-voting flag. The flags also specify that the RPC transaction history is enabled which will make the ledger disk be big, check the flag --enable-rpc-transaction-history. Read every flags from the solana-validator binary by executing the --help flag.

Wait for a while, it will download a very big snapshot so you could catch up at the latest transactions. The ledger will only contain all the latest transaction history of the Solana chain. This will take time depending on the speed of your machine and speed of network. Once you see there are no percentage or anything, then its good to go.

Make sure its on the list of validator nodes using the solana gossip command.

solana gossip | grep <pubkey>

That’s all, now you’re part of the validators. Another thing, in order to run it on reboot add the systemd service file, create the file using the command below on same directory as the solana-sys-tuner.service.

sudo cat > /etc/systemd/system/sol.service << EOF
Description=Solana Validator



Then enable it at boot using the command sudo systemctl enable --now sol.service. Make sure that it doesn’t have errors by checking the service status. Last thing to mention regarding logs as it can become large quickly, make sure to create a logrotate rule, the command below which I grabbed from the official documentation.

cat > logrotate.sol <<EOF
/home/sol/solana-validator.log {
  rotate 7
    systemctl kill -s USR1 sol.service

sudo cp logrotate.sol /etc/logrotate.d/sol
systemctl restart logrotate.service

That’s all, reboot and celebrate 🎉! Don’t forget to share and leave a comment if you like this kind of articles.

Winnie The Pooh Quotes That Inspires Me

Hey guys, been back after a few months since COVID-19 started. So what am I up to recently? Currently started writing in Medium, but still this blog will be my main blog. I’ll duplicate my post here and put as canonical link to my medium article. You’re braver than you believe, stronger than you seem, smarter than you think, and loved more than you’ll ever know.

Yes you are! a great motivation quote to love yourself more. A friend is one of the nicest things you can have and one of the best things you can be.

Sometimes, a friend is all you need. A friend can help you lift up your mood, but still its your life that depends on your own action. How do you spell love? You don’t spell it, you feel it.

I agree with this one, loving don’t come with a plan you just go with it and feel it. Life is a journey to be experienced, not a problem to be solved.

Go on road trips, and long beach walks. Some people think they’re job is all, for me I only work to live not the other way around. If there ever comes a day that we cannot be together, keep me in your heart, I’ll stay there forever.

For me this is more like a love quote, but here depicts a lifelong friendship.
You know lifelong friend is hard to find especially when you are going to adulthood. As soon as I saw you, I knew an adventure was going to happen.

Sometimes, sometimes not. It all depends on the person POV. How lucky I am to have something that makes saying goodbye so hard.

Can be said on a lover, rather than a friend. As a true friend will always be there and sometimes they don’t say goodbye, most probably see you when I see you. Any day spent with you is my favorite day. So today is my new favorite day.

Sometimes I think Winnie the Pooh is in love with Christopher Robin. Am I right? The story of the hundred acre wood. If you live to be 100, I want to be 100 minus 1 day so I would never have to live a day without you.

Same as the above, most of this is a quote that can be said to a lover rather than a friend. Sometimes the smallest things take up the most room in your heart.

Yes, I’ve experienced this personally smallest things make the most value.
Sometimes. One of the advantages of being disorganized is that one is always having surprising discoveries.

Ahaha. Clutter and dirt on attic. Being disorganized means probably you don’t have a plan and will just go with it. We didn’t realize we were making memories, we just knew we were having fun.

Time spent having fun, is time well spent. Experience life no just on a small smartphone screen. Go out with your love ones and enjoy. I think we dream so we don’t have to be apart so long. If we’re in each other’s dreams, we can be together all the time.

Sometimes its NSFW dreams. Always keep safe guys.

That’s all I have guys, hopefully this quotes will also inspire you. Follow me on twitter, instagram, also subs if you like.

Texting Girls What Did I Learn From It?

I was fascinated with the phone system and how it worked; I became a hacker to get better control over the phone company.

— Kevin Mitnick.

Hi guys, in this TIL (Today I Learned) article I’ll talk about what are the things I’ve learned from texting girls. This would mostly give you some profound knowledge on what I did try and some conclusions.

  1. Giving up too easily on your texts to a girl One mistake guys make when texting girls is giving up too easily. They’ll text a girl, and if they don’t hear anything back (or just get a brief reply) they’ll assume the girl isn’t interested and give up. But this is often a big mistake. After all, the reasons a girl won’t respond to a text sometimes have nothing to do with whether or not she’s interested. For instance, she may be busy, in a bad mood, or is simply unsure of how she wants to respond to your text. The point is you don’t always know what’s going on in a girl’s head, so there’s no point in assuming the worst. And even if you’re right and she isn’t interested at that moment, that doesn’t mean she won’t change her mind. But if you’re going to get her to change her mind (and get her to start texting you), you’ve got to stay engaged. So if a girl doesn’t text you back or doesn’t seem that interested, but you want to stay engaged, here’s what you can do: Give her some time (a few days… it can even be weeks) and then re-engage the girl with a text. Like all texts, you want the re-engaging text to the girl to be light, fun, and playful. Also, you’ll have better odds of getting her to respond to your text if you ask a question that compels her to reply. Altogether, here’s a real life example from The Text Book of what a good re-engaging text to a girl may look like: Hey crazy face…are you still alive? Should I send a search party of midget ninja’s (or minjas as they prefer to be called) to come rescue you?! Keeping this light, fun, playful tone in your texts to a girl will get her smiling and put her in a good mood. If you can get her to smile, you’ll likely get a text from her soon.
  2. Texting a girl too much Nothing can kill attraction and ruin your chances of seeing a girl again quite like texting a girl too much. It makes a guy look needy and provides no challenge for the girl (which means she may quickly get bored and move on). To avoid the common mistake guys make of sending a girl too many messages, here are a few simple rules for texting girls that will help you text a girl the right amount:
    • When texting a girl, keep the text ratio close to 1:1. You want to send her about as many texts as she sends you (and look to keep them roughly the same length).
    • Cut out needless texts. Don’t text a girl in situations where a response isn’t necessary. For example, you don’t need to reply to her “have a good night!” text if you’re just going to say “you too!” At that point the conversation is already over. Let it end with her.
    • Keep an abundance mentality. Over-texting a girl tends to be the result of scarcity and neediness. That it, guys feel they need things to go well with her because they are afraid it’s the only opportunity they’ll have with a girl for a long time. To avoid this, you want to have an abundance mentality when texting women. Simply imagine that you have a hundred other amazing girls that are actively interested in you. This will help you from getting too hung up on that one girl and prevent you from texting her too much.
  3. Taking your texts to a girl too seriously There’s a time and place for serious conversation with a girl, and texting is NOT it. Trying to have a serious conversation over text is exhausting and nobody likes doing it. So keep the serious “let’s-get-to-know-each-other” conversations to live interactions. When texting a girl, you instead want to focus on having fun and keeping it light. Now, a great way to make sure you keep things light in your texts to girls is by using emoticons. Lots of guys shy away from emoticons and think they’re “girly”. But guess what? You’re texting a girl and girls like that stuff. Plus, they ensure that she won’t take what you say out of context. She won’t have to guess what your mood is because the emoticon conveys that for you. As a result they help you avoid misunderstandings and unnecessary drama.
  4. Not texting enough women When a guy is just texting one girl at a time, it’s easy for him to get wrapped up in that “scarcity” mentality mentioned earlier. If you want to get out of that mindset for good and become a master at texting girls, then you should be texting lots of women. Texting a lot of women will help that abundance mentality develop naturally. Once you have that, you’ll bring a fun, care-free attitude to all your texts and interaction with women – which is going to make you that much more attractive. Plus, with all that practice, you’ll gain an intuitive knowledge of what to text a girl. You’ll transform into a texting master who knows and naturally follows all the rules for texting girls.
  5. Missing the big picture in your texts to women Sometimes guys forget just why they are texting a girl. They get wrapped up in idle chit chat and completely lose track of the big picture. The big picture of course, is to get the girl to meet up through text. Now, this doesn’t mean that texting girls is all logistics and planning. See, the fun, playful texts like the one mentioned earlier still play a role. Fun texts are key to re-establishing that attraction which will make her want to meet up. But from there, remember that the purpose of your texts to a girl is to keep moving the interaction forward. Therefore, your texts to women should be about building attraction and planning to meet-up. If your texts to a girl don’t have purpose and direction, it’s likely she’ll get bored and her attraction may begin to fade.

To wrap this up, the most important part is to believe in your self. This is just an update re-post to fix some wordings.

❌ Originally posted on August 22, 2019.

Ten Techniques to Build Rapport

We can all fight against loneliness by engaging in random acts of kindness.

— Gail Honeyman.

Hello guys, in life no one lives alone, and no one can live alone. In this TIL (Today I Learned) we will discuss the things I’ve learned when trying to socialize with other people building rapport and connections.

  1. Establish artificial time constraints. Allow the potential source to feel that there is an end in sight.
  2. Remember non-verbals. Ensure that both your body language and voice are nonthreatening.
  3. Speak slower. Do not oversell and talk too fast. You lose credibility quickly and appear too strong and threatening.
  4. Have a sympathy or assistance theme. Human beings want to provide assistance and help. It also appeals to their ego that they may know more than you.
  5. Suspend your ego. This probably represents the hardest technique but, without a doubt, is the most effective. Do not build yourself up—build someone else up, and you will have strong rapport.
  6. Validate others. Human beings crave feeling connected and accepted. Validation feeds this need, and few offer it. Be the great validator and have instant, valuable rapport.
  7. Ask “how, when, and why” questions. When you want to dig deep and make a connection, asking these questions serves as the safest, most effective way. People will tell you what they are willing to talk about.
  8. Connect using quid pro quo. Some people are more guarded than others. Allow them to feel comfortable by sharing a little about yourself if needed. Do not overdo it.
  9. Give gifts (reciprocal altruism). Human beings reciprocate gifts given. Give a gift, either intangible or material, and seek a conversation and rapport in return.
  10. Manage expectations. Avoid feeling and embodying disappointment by ensuring that your methods focus on benefiting the targeted individual, not you. Ultimately, you will win, but your mind-set needs to focus on the other person.

Humans will be humans and humans are very dependent creature. That’s all for it thanks for reading. Follow me on my social media accounts and also on my podcasts.

How to Have a Good Conversation

Everything about Mark Zuckerberg is pure hacker. Hackers don’t take realities of the world for granted; they seek to break and rebuild what they don’t like. They seek to outsmart the world.

— Sarah Lacy.

Sometimes I need to talk to someone about some things and sometimes the conversation and rapport part doesn’t work out. Here are the things I’ve learned on how to have a good conversation to anyone.

  • Don’t multitask. Be present.
    If you’re the one talking, would you be happy if the listener is doing many things and like don’t care? So be present and active.
  • Don’t pontificate (meaning – express one’s opinions in a way considered annoyingly pompous and dogmatic.).
    Don’t just butt in when someone is speaking with their mind. Its considered rude to just cut someone who is talking, I think its same for every culture.
  • Use open-ended question.
    Go with questions that will create discussion not just question with a single word could answer.
  • Go with the flow.
    Follow the flow of the dialogues, and if you don’t like the subject of the discussion you can always say what you have in mind.
  • If you don’t know, say that you don’t know.
    Don’t be the all-knowing guy. Nobody likes the person who knows and pretend to know everything. Just say you don’t know if you really don’t know, and say no to smarty-pants.
  • Don’t equate your experience with theirs.
    Experience vary from person to person. It has different levels of emotions involved, don’t try.
  • Try not to repeat yourself.
    Speak clearly and with proper tone so the listener will know the intention.
  • Listen.
    Always listen, a great listener can be the most reliable person.
  • Be brief.
    Get to the point and don’t confuse the listener of what you want to say.

That’s all the things I’ve learned with having conversation to different people and walk of life.
Hope you guys, enjoyed this article and as always live life!

How To Earn Passive Income (Asian Version)

It’s how you deal with failure that determines how you achieve success.

— David Feherty.

Hi guys, working 9-5 jobs is hard especially if its your only source of income. And almost every time, its not enough.

So here, will list down what are the best way to earn passive income (the Asian version).

What are the ways for a better future?

Here are the ways to make passive income even if you have 9-to-5 job. I know its never easy, and never will so we must’ve strive harder and think of more ways to earn.

Creating a mobile app

Making mobile app and deploying it to app store or play store can earn you passive income. Believe me there are ways, first is running mobile ads to your app. Another way is selling premium features of your app, but one thing is for sure — once the app’s deployed it will be like a cash cow sending you money.

Spreading links across the internet with your affiliate url is one way to earn money. By spreading your affiliate url, you earn commission for every user that would buy a product. This needs good marketing strategy, in order to earn more money in minimum amount of time.

Making Youtube videos

Many vloggers right now in YouTube are earning money from the videos they make. Post a video wait for viewers to view your content then instant money. But there is a threshold before you can earn money from this and mostly you have a lot of competitor. But sincerely its one of the best passive income generator.

Make a blog

Earning through a blog may take years, but it pays off when you have lot of readers. Also may take time before you get big. So start now! One of the ways you could earn money from it is sharing your affiliate link and giving reviews. As well as accepting ads or earning revenues from ads. If you don’t want to start from scratch you could buy a blog.

Creating online course materials and webinar

Online course is booming since 2015, and its expected to grow more. This is the best way to earn passive income, just create a content you want to teach and deploy it multiple times in sites like Udemy and Teachable. Once all your resources done, all you need to do is relax and wait for it to earn money. Similar to webinar, schedule webinar and deploy your pre-made course every now and then.

Creating e-books

With the increasing popularity of digital books, its now considered as one way to earn passive income. Authors now bypass publishers when publishing their own books. You could check out my article on using ascii doctor to create an e-book using opensource tools here. Selling those ebooks in sites like Amazon KDP, other way is sell it on your own store.

Selling photos

Photographs, selling photographs that has deep meaning or has an artistic side could earn you some bucks. Posting it to stock photos site like Pexel as many companies or individual that are searching for the right photo.

Becoming an early stage

One word risky, investing in early stage startup has many pros and cons. Being a seed investor gets you a lot of perks as you can join the startup and promote it. But one thing you should only invest in a startup you believe in.

Buying bluechip

Buying stocks is one of the best way to earn passive incomes, but you gotta have years of patience waiting for it to grow. Also picking the right stocks to invest could make you a millionair in just 5-8 years. Investing into it needs also large sum of money to gain large position increase.


In this day of age, there are ways now to earn passive income. Probably not so passive but still you’ll only need to put 20% and earn 80% from it. This posts will get updates from time to time as it is still incomplete. Stay tune for more updates.