Posts

Showing posts from 2019

Thoughts Of You (For Joane)

Image
Have you ever been in love? Horrible isn't it? It makes you so vulnerable. It opens your chest and it opens up your heart and it means that someone can get inside you and mess you up. — Neil Gaiman in The Kindly Ones. Is it ok if I took some of your time? Is it ok if I held you awhile For in your arms I’m always home To pull you close and whisper in your ear And tell you our feelings are nothing to fear. Is it ok if I were to replace All the men in your past that just wouldn’t do And vow to be faithful and always be true? Is it ok if I took the part of being your man? Is it ok if I opened my heart? Is it ok if I make you smile? Is it ok if I took some of your time? To tell you there’s nothing I’d rather do Than spend my whole life loving you… Always smile 🙂 Know that when everything crumbles, I will not. Missing you right now.

Biology DNA Some Facts

Image
Software Engineering might be science; but that's not what I do. I'm a hacker, not an engineer. — Jamie Sawinski. Hi guys, a quick fact about me is I’ve studied B.S. Biology before and taken the course of BIO 16N (DNA Structures). One of the most important thing that I’ve learned was DNA will always start at a specific codon which is AUG . The AUG is the start codon otherwise no protein will be synthesized, then there are only 3 types of stop codon which is UAG , UGA , UAA . This has been a short post as I only want to remember this minor detail.

Staring At The Sky

Image
You may not be her first, her last, or her only. She loved before she may love again. But if she loves you now, what else matters? She's not perfect - you aren't either, and the two of you may never be perfect together but if she can make you laugh, cause you think twice, and admit to being human and making mistakes, hold onto her and give her the most you can. She may not be thinking about you every second of the day, but she will give you a part of her that she knows you can break - her heart. So don't hurt her, don't change her, don't analyze and don't expect more than she can give. Smile when she makes you happy, let her know when she makes you mad, and miss her when she's not there. — Bob Marley. Just caught myself smiled again for no reason A smile that could probably mean one thing; Thinking of you my beloved dearest Always on my mind running all day long I wouldn’t mind waking up in morning To check every messages I’ve go

Texting Girls What Did I Learn From It?

Image
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. 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.

Top Three DNS Providers That Provides Good Service in SEA (Southeast Asia)

Image
If you give a hacker a new toy, the first thing he'll do is take it apart to figure out how it works. — Jamie Zawinski. Hi guys, this are my top three good DNS (Domain Name System) providers that are really fast, secure and reliable that can be use in Southeast Asia. Cloudflare Cloudflare Public DNS (IPv4) 1.1.1.1 1.0.0.1 Cloudflare Public DNS (IPv6) 2606:4700:4700::1111 2606:4700:4700::1001 So why Cloudflare 1 ? Choose Cloudflare if you want less than <1ms of domain name resolution. Seriously, they have the fastest name resolution on the internet. Google Google Public DNS (IPv4) 8.8.8.8 8.8.4.4 Google Public DNS (IPv6) 2001:4860:4860::8888 2001:4860:4860::8844 So why Google 2 ? You will use this if you need an old but still good reliable DNS server. Its been used as a primary name resolution on big companies as well as local workstation. Its much more better than your ISP (Internet Service Provider) provided DNS. Yandex Yandex DNS (IPv4

I Will Be Here

Image
You know you're in love when you can't fall asleep because reality is finally better than your dreams. — Dr. Seuss. When your sad and depressed, I will be here to put a smile on your face. When your angry and frustrated, I will be here to calm you down. When your hurt and in tears, I will be here to wipe them away and mend the pain. When your lonely and have no one, I will be here to comfort you. When your feeling unloved and unwanted, I will be here to tell you how very important you are. When your having a bad day and need to lash out, I will be here to let you let off steam, you can yell at me. When there is something on your mind that you need to say, I will be here to listen and understand. When your lost in confusion, I will be here to help you figure things out. When you feel like your going crazy, I will be here to bring you back to sanity. When you are so overwhelmed and need to get away, I will be here with open arms so we ca

Windows Network Discovery Using Built-in Tools

Image
Success is neither magical nor mysterious. Success is the natural consequence of consistently applying basic fundamentals. — E. James Rohn. Hi guys, last week I’ve worked on a vanilla Windows 10 client computer without internet but is connected to a LAN with many computer. I’ve asked myself on how to get all alive computers in the network using only built in tools from Windows. Here are the things I’ve did in order to accomplish this feat. First thing I did was ping all broadcast IP using ping <broadcast ip> -t -i 4 . This will ping the broadcast IP, this action will spread and send all message to all active computers in the network. After that we would wait for around 5-10 seconds, and execute the follow up command which is arp -a . The arp command will check the address resolution protocol and list it down. The -i 4 on the ping command instructs to ping only on IPv4 (Internet Protocol Version 4) network. That’s all there is to it. Kindly check the

I Want To Be With You (For Joane)

Image
She may not be the most popular or prettiest but if you love her and she makes you smile… what else matters? — Bob Marley. Whenever I saw you, is like the stars lighting up my sky You call me and check me everyday, You just don’t know how much I appreciate it You’ve seen my past yet you’d never leave So remove all your worries, for my intention is real If you love me till your last breath, I assure you that I’ll never leave your side And I will love you 'til the rest of my life I love you. Always do smile. When you think you have nothing left, I swear to you, I’ll always be by your side.

Gimp Automating Image Processing with Python Fu

Image
What a large volume of adventures may be grasped within the span of his little life by him who interests his heart in everything. — Laurence Sterne. Hi guys, one night I decided to create an online store and sell some drop ship products. I grab some pictures from the wholesale seller and planned to customize those images (just to put some store branding). There were a hundred images that I want to customize, by hand it would take ages so I decided to create a batch script. My first thought was to use Gimp (an open source image manipulator) and Script-Fu. After trying out what the result would be on Python-Fu console, I settled with this. It was a simple design but I was satisfied. Here is the script that I use. Try it out on Python-Fu console and call it convert_to_poster(n) , where n is the image number in the image list inside Gimp. You could for loop it for faster batch processing. First we set the variables. current_image = gimp . image_list ( ) [ n ]

For Her Smile (For Joane)

Image
If she’s amazing, she won’t be easy. If she’s easy, she won’t be amazing. If she’s worth it, you won’t give up. If you give up, you’re not worthy. … Truth is, everybody is going to hurt you; you just gotta find the ones worth suffering for. — Bob Marley. I saw a lovely lady outside the door. She always wave and smile at me. When I am with her, Her smile warms my very soul. To see that gorgeous smile, That always makes me fall. As she gave me a puzzle, We played it for a few Joy whenever I finish the puzzle, As I would see her smile once more As I walk on the first level, I bump my feet as I saw her upstairs. Like an angel going down, To save me from despair. Hoping that day wouldn’t end. As she’d smile and laugh with me. If ever I were given a chance, I’d protect that smile. That smile that change, My whole perspective in life. When you think you have nothing left, I swear to you, I’ll always be there beside you. Thank you! And always smile.

Using Vim Hex Editor To View Keyboard Key Hex Code

Image
The best way to predict the future is to create it. — Anonymous. Hi guys, in this TIL (Today I Learned), we will review a way on how to view keyboard key hex code. As I modify my iTerm2 (a popular terminal emulator for macOS) key shortcuts to map my tmux Ctrl + b keys, I wonder how to get the keyboard key hex codes easily. Then I remembered that there is the xxd (a command line hex viewer and editor which is part of the vim package) command which can process keys and convert them to hex code. To start off, we run xxd from the terminal. It will wait for a read line. Execute your keystrokes (e.g. Ctrl - b ) then press enter to create a new line. After the new line add EOF (End Of File) which would corresponds to the keyboard keys Ctrl + d . After doing the process above xxd would output a hex representation of the keyboard key code that you desire. 1 Another trick using xxd command is to reverse hex string like this. echo < hex code > | xxd -revert -plain

Ten Techniques to Build Rapport

Image
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. Establish artificial time constraints. Allow the potential source to feel that there is an end in sight. Remember non-verbals. Ensure that both your body language and voice are nonthreatening. Speak slower. Do not oversell and talk too fast. You lose credibility quickly and appear too strong and threatening. 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. 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. Validate oth

Checkout Specific Directory Within Git Repo

Image
I believe that the first test of a truly great man is his humility. Really great men have a curious feeling that the greatness is not in them but through them. And they see something divine in every other man and are endlessly, incredibly merciful. — John Ruskin. Hi guys, one day I was working on a driver port to macOS (Apple Macintosh OS) and the only opensource code for it can be found on Linux kernel. Heck! The Linux kernel repository is around 2GB including all history and I only needed a specific directory inside the repository. After searching the whole internet I found an answer 1 . Here are the steps to clone a specific directory from a git repository: First and foremost you need to create a local blank repository on your workstation. git init < repo-url > Inside the created bare repository, map the remote URL of the remote repository you want to clone. cd < repo-name > git remote add origin < remote-repo-url > Then, setup the git

Naughty Stories Night

Image
Perhaps the best thing about the future is that it comes one day at a time. — Dean Acheson. Hi guys, this is one personal journal/memo for me a SOL (Slice Of Life). So to start one evening on clear night sky, my girlfriend who was currently staying on province said she’s on the mood. At the time, where far from each others place and we only message each other through couple’s app. She asked if I could give her a naughty story of what I would do to her when we see each other (that’ll be happening in 2 days time). I imagined doing her in multiple places and events. After that, I tried to jack off while creating a surreal story of what I would do to her. Piece by piece sending her the story through the app, she read it and guess what she fell asleep. LOL (Laugh Out Loud) and I don’t know if the story was kinda bit boring though. Anyways, imagining her makes me feel horny again. I’ll just call it a day.

How to Have a Good Conversation

Image
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. Hi guys, 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

Turning Off Completely macOS Mojave Bluetooth

Image
We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths. — Walt Disney. Hi guys, recently as you may have notice from my post. I’ve tried to build a hackintosh 1 but my WiFi and BT (Bluetooth) card are not compatible or does not have compatible Kexts (stands for kernel extensions which is a driver module for macOS). As the BT card installed in my laptop still consumes power, I did become curious on how to disable it. I have tried many ways that are not destructive which corresponds to software config modification. There are success in destructive way according to some forum but I don’t like those (e.g. like soldering certain part of the half-mini PCI-E or PCI Express board and or removing completely the PCI-E board) . I’ll try to explain what works for me in disabling the BT without touching the internals of the laptop. First and foremost, you need to disable the power state of the BT driver.

Disable mDNS and SSDP Discovery in Google Chrome

Image
We're born alone, we live alone, we die alone. Only through our love and friendship can we create the illusion for the moment that we're not alone. — Orson Welles. Hi guys, if you ever check your task manager you’ll notice chrome is listening to port 5353 on Linux. Did you know you could stop it? as what this sub-process is specifically doing – listening and doing some device probing like an auto discovery which is similar to avahi . In order to disable this Chrome functionality you need to first create a directory and policy file. You could do this by executing the command below. sudo mkdir -p /etc/opt/chrome/policies/managed/ sudo touch /etc/opt/chrome/policies/managed/block_mdns_ssdp.json What this does is first create a directory inside the /etc/opt/chrome which will be used to store manage policies and create the initial policy file that we would be editing. Then we edit the block_mdns_ssdp.json file that we created earlier and then we put the contents

Output File from PSQL Command

Image
She had an immense curiosity about life, and was constantly staring and wondering. — Henry James in The Portrait of a Lady. Hi guys, if one day your on a vacation on a remote island and can’t access your workstation. And the only access you can get due to slow internet speed is SSH (Secure Shell). You tried to access the remote production database using a rented computer and an SSH client, the tools inside the server is only compose of a psql command. Don’t panic and don’t worry we got you covered, the psql saves your day if you’ll just gonna be exporting SQL schema layouts. First and foremost, we fire up and execute the psql command. Inside the psql environment execute the commands below: \o dump.txt SELECT 'postgresql' AS dbms,t.table_catalog,t.table_schema,t.table_name,c.column_name,c.ordinal_position,c.data_type,c.character_maximum_length,n.constraint_type,k2.table_schema,k2.table_name,k2.column_name FROM information_schema.tables t NATURAL LEFT JOIN i

C# .NET Projects Can Be Compiled and Run in MacOS or Linux

Image
My primary goal of hacking was the intellectual curiosity, the seduction of adventure. — Kevin Mitnick. Hi guys, before I never thought that a .NET solution project can be compiled and run on Linux. But as I’ve checked the GitHub of dotnet-core , there are many ways to do it. First is through Mono , which is a compatible open source alternative to the .NET Framework (the latter is a proprietary of Microsoft). You can create WPF (Windows Presentation Foundation) forms using it and other UI intensive .NET projects. Mono is sponsored by Microsoft, but it is unofficially supported. The other solution is, if your working on a .NET core project you’ll be using a dotnet-core . Microsoft published last 2014 an open source .NET SDK (Software Development Kit) (bare bones) which was derived from ASP.NET , they’ve called it dotnet-core . Basically, it is a stripped down version of .NET framework without all the heavy UI and forms. The project itself is modular and can be compiled in

Check Total File Size of Files with Specific File Extension

Image
It is simply this: do not tire, never lose interest, never grow indifferent—lose your invaluable curiosity and you let yourself die. It's as simple as that. — Tove Jansson in Fair Play. Hi guys, I’ve recently wondered on how to check the file size of all files with a specific file extension on a folder / project. This is what I’ve found out after several experimentation using command line tools in Linux, this specific task could be accomplish with just one line of command. Check below for the actual command: find . -name "*.dart" | xargs cat | wc -c What this command does, is first find all file with the dart extension. Then pipe the output of that command in xargs converts the standard input to command arguments. After that pipe the output of xargs again to our favorite word counter wc . Here are the command line tools use in the process. xargs is a command on Unix and most Unix-like operating systems used to build and execute commands from stan

Learning Git Shortcuts By Examples

Image
Together we can change the world, just one random act of kindness at a time. — Ron Hall. Hi guys, I’ve been wondering before on how to create aliases in git (a version control system) but after reading and delving more into some documents. I found out that this is possible and can be done with a few global configs. Check out the commands below for some sample. git config --global alias.co checkout git config --global alias.br branch git config --global alias.ci commit git config --global alias.st status This commands will emulate an SVN (subversion) like keywords and can be called on command line like git ci to commit your changes. Additionally, here are some useful aliases that I’ve found while exploring the internet. git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short" git config --global alias.type 'cat-file -t' git config --global alias.dump 'cat-file -p' To conclude there are man

Creating Bootable ISO from macOS Installer

Image
If the freedom of speech is taken away then dumb and silent we may be led, like sheep to the slaughter. — George Washington. Hi guys, I’ve been in a situation on where I want to create a separate portable macOS Mojave 1 installer but I don’t know how. I’ve compiled this steps which I gathered from multiple sources to create a boot-able macOS installer. This article will assume you are running on macOS system. First and foremost, we download the macOS installer that we want to use from the Apple App Store. I pick the latest one (at this time of writing) which is Mojave. After that export an environment variable to hold the output ISO filename that we will be consuming. export ISO_PATH = "mac_installer.iso" Then we create a blank dmg volume using the command hdiutil 2 . This command will create a HFS+J filesystem table to store the installer data with the capacity of 6GB. hdiutil create -o " $ISO_PATH .cdr" -size 6g -layout SPUD -fs HFS+J`

Running Seeds After Edeliver Deploy

Image
Success is neither magical nor mysterious. Success is the natural consequence of consistently applying basic fundamentals. — E. James Rohn. Hi guys, after deploying your application to production or staging server, have you ever wondered on how you can import your seed data. This post is specifically targeted to elixir web apps only. Assuming you haven’t already started the migration process and migrated all the tables. Go to the built edeliver release folder and run ./bin/my_app_name remote_console to access iex console for this web OTP (Open Telecom Platform) app. When you’re inside the iex console, enter this command: :code.priv_dir ( :my_app_name ) | > Path.join ( "repo/seeds.exs" ) | > Code.require_file ( ) The command above will be evaluated by the console interpreter and run the seeds file. This would access the file from priv directory and execute seeds.exs . After that, check your database if all the migrations has been executed. That’s

Fixing GTK Dark Themes on Firefox

Image
The world is a comedy to those that think; a tragedy to those that feel. — Horace Walpole. Hi guys, if your using Linux and run Firefox 1 . One thing you will notice on Firefox when on a dark themed GTK 2 based environment in Linux is the HTML content would adapt to the theme color. And for some reason I don’t know why Firefox still doesn’t fix this stuff. Here is the link related to the issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1527048 UPDATE: Seems this problem has been fixed in Version 67 of Firefox. Here is the workaround for it: Open about:config inside Firefox. You should type this in the URL bar. Right click on the content and click New > String with key widget.content.gtk-theme-override and value Arc-Darker . Restart Firefox. The steps above would set Firefox content to adapt to white based theme while retaining chroma theme dark. You could also use Adwaita as value. So guys, have you ever encountered this bug specifically in Gnome 3 while us

How To Earn Passive Income (Asian Version)

Image
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 affiliate links Spreading links across the internet with your affiliate url is one way to earn money. By spreading your af

Disable Snap Daemon in Archlinux

Image
Carry out a random act of kindness, with no expectation of reward, safe in the knowledge that one day someone might do the same for you. — Princess Diana. Hi guys, one day I woke up and I just don’t want to use Snap apps anymore. So how do I remove it from my workstation? Here are the things I’ve did to completely removed it from my workstation. In order to disable Snap apps on your workstation you must first list all snap services and the included PID (Process Identifier) sockets running. systemctl list-unit-files | grep snap After you listed all of it, you must disable all known snap services. Below is just a gist of running snap services on my workstation (on Fedora Linux). sudo systemctl disable snapd.service sudo systemctl disable snapd.seeded.service sudo systemctl disable snapd.socket sudo systemctl disable var-lib-snapd-snap-core-6130.mount After you completed the steps above you must then restart your workstation for a much more cleaner startup. So

Debugging PHP with Xdebug over SSH

Image
The pessimist sees difficulty in every opportunity. The optimist sees opportunity in every difficulty. — Winston Churchill. Hi guys, back in days before Xdebug 1 came to light, debugging PHP 2 was pretty simple like in C 3 on which you use print or var_dump . Today with improving tools and setup, PHP can now be debugged remotely with the help of ssh + xdebug . To do this first you must connect to the remote development station on where PHP server is located (e.g. PHP direct dynamic server, Nginx, Apache HTTP). ssh -R 9000:localhost:9000 username_goes_here@hostname_goes_here The -R stands for return remote callback connection on SSH on which server --(poll)--> host (xdebug server) . After running a remote port forwarding you will need to setup xdebug on the remote server, point it on which address it would bind and listen. For my use case I’d point mine to the loopback address 127.0.0.1 (as I’d only use it for development purposes) on which we setup remote port f